sh7763rdp.c 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // SPDX-License-Identifier: GPL-2.0+
  2. /*
  3. * Copyright (C) 2008 Renesas Solutions Corp.
  4. * Copyright (C) 2008 Nobuhiro Iwamatsu <iwamatsu.nobuhiro@renesas.com>
  5. * Copyright (C) 2007 Kenati Technologies, Inc.
  6. *
  7. * board/sh7763rdp/sh7763rdp.c
  8. */
  9. #include <common.h>
  10. #include <asm/io.h>
  11. #include <asm/processor.h>
  12. #define CPU_CMDREG 0xB1000006
  13. #define PDCR 0xffef0006
  14. #define PECR 0xffef0008
  15. #define PFCR 0xffef000a
  16. #define PGCR 0xffef000c
  17. #define PHCR 0xffef000e
  18. #define PJCR 0xffef0012
  19. #define PKCR 0xffef0014
  20. #define PLCR 0xffef0016
  21. #define PMCR 0xffef0018
  22. #define PSEL1 0xffef0072
  23. #define PSEL2 0xffef0074
  24. #define PSEL3 0xffef0076
  25. int checkboard(void)
  26. {
  27. puts("BOARD: Renesas SH7763 RDP\n");
  28. return 0;
  29. }
  30. int board_init(void)
  31. {
  32. vu_short dat;
  33. /* Enable mode */
  34. writew(inw(CPU_CMDREG)|0x0001, CPU_CMDREG);
  35. /* GPIO Setting (eth1) */
  36. dat = inw(PSEL1);
  37. writew(((dat & ~0xff00) | 0x2400), PSEL1);
  38. writew(0, PFCR);
  39. writew(0, PGCR);
  40. writew(0, PHCR);
  41. return 0;
  42. }
  43. void led_set_state(unsigned short value)
  44. {
  45. }