ms7722se.c 753 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. /*
  2. * Copyright (C) 2007,2008
  3. * Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
  4. *
  5. * Copyright (C) 2007
  6. * Kenati Technologies, Inc.
  7. *
  8. * board/ms7722se/ms7722se.c
  9. *
  10. * SPDX-License-Identifier: GPL-2.0+
  11. */
  12. #include <common.h>
  13. #include <netdev.h>
  14. #include <asm/io.h>
  15. #include <asm/processor.h>
  16. #define LED_BASE 0xB0800000
  17. int checkboard(void)
  18. {
  19. puts("BOARD: Hitachi UL MS7722SE\n");
  20. return 0;
  21. }
  22. int board_init(void)
  23. {
  24. /* Setup PTXMD[1:0] for /CS6A */
  25. outw(inw(PXCR) & ~0xf000, PXCR);
  26. return 0;
  27. }
  28. void led_set_state(unsigned short value)
  29. {
  30. writew(value & 0xFF, LED_BASE);
  31. }
  32. #ifdef CONFIG_CMD_NET
  33. int board_eth_init(bd_t *bis)
  34. {
  35. int rc = 0;
  36. #ifdef CONFIG_SMC91111
  37. rc = smc91111_initialize(0, CONFIG_SMC91111_BASE);
  38. #endif
  39. return rc;
  40. }
  41. #endif