summaryrefslogtreecommitdiffstats
path: root/board/eNET/eNET.c
diff options
context:
space:
mode:
authorGraeme Russ <graeme.russ@gmail.com>2011-02-12 15:11:35 +1100
committerGraeme Russ <graeme.russ@gmail.com>2011-02-12 15:11:35 +1100
commit0ea76e92e989ce292f1eeadc0754b3ab9a50df16 (patch)
tree58a5d6f50479fe10dea06112462fb9ec97bce9f2 /board/eNET/eNET.c
parent4e33467d44620edf224aad03c2c7396fb4918696 (diff)
downloadtalos-obmc-uboot-0ea76e92e989ce292f1eeadc0754b3ab9a50df16.tar.gz
talos-obmc-uboot-0ea76e92e989ce292f1eeadc0754b3ab9a50df16.zip
x86: Make cpu init functions weak
Diffstat (limited to 'board/eNET/eNET.c')
-rw-r--r--board/eNET/eNET.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/board/eNET/eNET.c b/board/eNET/eNET.c
index 7f0e2577f1..30d8750d76 100644
--- a/board/eNET/eNET.c
+++ b/board/eNET/eNET.c
@@ -48,33 +48,11 @@ unsigned long monitor_flash_len = CONFIG_SYS_MONITOR_LEN;
static void enet_timer_isr(void);
static void enet_toggle_run_led(void);
-void init_sc520_enet (void)
-{
- /* Set CPU Speed to 100MHz */
- writeb(0x01, &sc520_mmcr->cpuctl);
-
- /* wait at least one millisecond */
- asm("movl $0x2000,%%ecx\n"
- "0: pushl %%ecx\n"
- "popl %%ecx\n"
- "loop 0b\n": : : "ecx");
-
- /* turn on the SDRAM write buffer */
- writeb(0x11, &sc520_mmcr->dbctl);
-
- /* turn on the cache and disable write through */
- asm("movl %%cr0, %%eax\n"
- "andl $0x9fffffff, %%eax\n"
- "movl %%eax, %%cr0\n" : : : "eax");
-}
-
/*
* Miscellaneous platform dependent initializations
*/
int board_early_init_f(void)
{
- init_sc520_enet();
-
writeb(0x01, &sc520_mmcr->gpcsrt); /* GP Chip Select Recovery Time */
writeb(0x07, &sc520_mmcr->gpcspw); /* GP Chip Select Pulse Width */
writeb(0x00, &sc520_mmcr->gpcsoff); /* GP Chip Select Offset */
OpenPOWER on IntegriCloud