1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24#include <common.h>
25#include <asm/io.h>
26#include <asm/processor.h>
27
28DECLARE_GLOBAL_DATA_PTR;
29
30#define CPU_CMDREG 0xB1000006
31#define PDCR 0xffef0006
32#define PECR 0xffef0008
33#define PFCR 0xffef000a
34#define PGCR 0xffef000c
35#define PHCR 0xffef000e
36#define PJCR 0xffef0012
37#define PKCR 0xffef0014
38#define PLCR 0xffef0016
39#define PMCR 0xffef0018
40#define PSEL1 0xffef0072
41#define PSEL2 0xffef0074
42#define PSEL3 0xffef0076
43
44int checkboard(void)
45{
46 puts("BOARD: Renesas SH7763 RDP\n");
47 return 0;
48}
49
50int board_init(void)
51{
52 vu_short dat;
53
54
55 writew(inw(CPU_CMDREG)|0x0001, CPU_CMDREG);
56
57
58 dat = inw(PSEL1);
59 writew(((dat & ~0xff00) | 0x2400), PSEL1);
60 writew(0, PFCR);
61 writew(0, PGCR);
62 writew(0, PHCR);
63
64 return 0;
65}
66
67int dram_init(void)
68{
69 gd->bd->bi_memstart = CONFIG_SYS_SDRAM_BASE;
70 gd->bd->bi_memsize = CONFIG_SYS_SDRAM_SIZE;
71 printf("DRAM: %dMB\n", CONFIG_SYS_SDRAM_SIZE / (1024 * 1024));
72 return 0;
73}
74
75void led_set_state(unsigned short value)
76{
77}
78