ms7722se.c 750 B

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