sh7763rdp.c 1.1 KB

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