From e4bb284a67608bd10539bcd6a1f8e09c908acf7e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20Fr=C3=B6schle?= Date: Wed, 17 Oct 2012 05:29:25 +0000 Subject: [PATCH] added missing call to init_pll() --- sources/sysinit.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/sources/sysinit.c b/sources/sysinit.c index a7d6d7e..5895879 100644 --- a/sources/sysinit.c +++ b/sources/sysinit.c @@ -214,6 +214,8 @@ static volatile uint8_t *pll_base = (volatile uint8_t *) 0xf0000600; void init_pll(void) { + uart_out_word('PLL '); + * (volatile uint16_t *) (pll_base + 0x48) = 0x27; /* loopfilter r */ wait_pll(); * (volatile uint16_t *) (pll_base + 0x08) = 1; /* charge pump 1 */ @@ -255,20 +257,28 @@ void init_pll(void) void init_video_ddr(void) { * (uint16_t *) 0xf0000400 = 0xb; /* set cke = 1, cs=1, config = 1 */ NOP(); + _VRAM = 0x00050400; /* IPALL */ NOP(); + _VRAM = 0x00072000; /* load EMR pll on */ NOP(); + _VRAM = 0x00070122; /* load MR: reset pll, cl=2, burst=4lw */ NOP(); + _VRAM = 0x00050400; /* IPALL */ NOP(); + _VRAM = 0x00060000; /* auto refresh */ NOP(); + _VRAM = 0x00060000; /* auto refresh */ NOP(); + _VRAM = 0000070022; /* load MR dll on */ NOP(); + * (uint32_t *) 0xf0000400 = 0x01070002; } @@ -699,6 +709,7 @@ void initialize_hardware(void) { init_PCI(); init_fpga(); + init_pll(); init_video_ddr(); dvi_on();