X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=board%2Fsc520_cdp%2Fsc520_cdp.c;h=f6f0e7244377e282ddcfdccce3f8cd7785f87185;hb=a0dd99d51efa55fe023e19c97ead92683725eb11;hp=cd523248268556ef0f7bbbea46cac1d91a89c846;hpb=bdccc4fedcf9c5fc1f06e8f833d792198c9d04ae;p=oweals%2Fu-boot.git diff --git a/board/sc520_cdp/sc520_cdp.c b/board/sc520_cdp/sc520_cdp.c index cd52324826..f6f0e72443 100644 --- a/board/sc520_cdp/sc520_cdp.c +++ b/board/sc520_cdp/sc520_cdp.c @@ -30,6 +30,8 @@ #include #include +DECLARE_GLOBAL_DATA_PTR; + #undef SC520_CDP_DEBUG #ifdef SC520_CDP_DEBUG @@ -481,8 +483,6 @@ int pci_enable_legacy_video_ports(struct pci_controller *hose) int board_init(void) { - DECLARE_GLOBAL_DATA_PTR; - init_sc520(); bus_init(); irq_init(); @@ -507,6 +507,7 @@ int dram_init(void) void show_boot_progress(int val) { + if (val < -32) val = -1; /* let things compatible */ outb(val&0xff, 0x80); outb((val&0xff00)>>8, 0x680); }