Skip to content
Snippets Groups Projects
Commit 26209e48 authored by Nobuhiro Iwamatsu's avatar Nobuhiro Iwamatsu Committed by Nobuhiro Iwamatsu
Browse files

sh: Cleanup source code of SH7763RDP

parent 5cd5b2c9
No related branches found
No related tags found
No related merge requests found
...@@ -49,19 +49,20 @@ int board_init(void) ...@@ -49,19 +49,20 @@ int board_init(void)
{ {
vu_short dat; vu_short dat;
*(vu_short *)(CPU_CMDREG) |= 0x0001; /* Enable mode */
writew(inw(CPU_CMDREG)|0x0001, CPU_CMDREG);
/* GPIO Setting (eth1) */ /* GPIO Setting (eth1) */
dat = *(vu_short *)(PSEL1); dat = inw(PSEL1);
*(vu_short *)PSEL1 = ((dat & ~0xff00) | 0x2400); writew(((dat & ~0xff00) | 0x2400), PSEL1);
*(vu_short *)PFCR = 0; writew(0, PFCR);
*(vu_short *)PGCR = 0; writew(0, PGCR);
*(vu_short *)PHCR = 0; writew(0, PHCR);
return 0; return 0;
} }
int dram_init (void) int dram_init(void)
{ {
DECLARE_GLOBAL_DATA_PTR; DECLARE_GLOBAL_DATA_PTR;
...@@ -71,6 +72,6 @@ int dram_init (void) ...@@ -71,6 +72,6 @@ int dram_init (void)
return 0; return 0;
} }
void led_set_state (unsigned short value) void led_set_state(unsigned short value)
{ {
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment