X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;ds=sidebyside;f=cpu%2Fi386%2Fsc520.c;h=b958f8dc043606b079a9dd3a25a0bed03f38b1bd;hb=14209ac13ff631e36c9a9dd426c59c2e2f5dab00;hp=8bcb979c15050f8385a437a91361f406dcf29be9;hpb=f82642e33899766892499b163e60560fbbf87773;p=u-boot diff --git a/cpu/i386/sc520.c b/cpu/i386/sc520.c index 8bcb979c15..b958f8dc04 100644 --- a/cpu/i386/sc520.c +++ b/cpu/i386/sc520.c @@ -25,14 +25,11 @@ * but idependent of implementation */ #include - -#ifdef CONFIG_SC520 - #include #include #include #ifdef CONFIG_SC520_SSI -#include +#include #endif #include #include @@ -344,7 +341,7 @@ void pci_sc520_init(struct pci_controller *hose) SC520_PCI_MEMORY_BUS, SC520_PCI_MEMORY_PHYS, SC520_PCI_MEMORY_SIZE, - PCI_REGION_MEM | PCI_REGION_MEMORY); + PCI_REGION_MEM | PCI_REGION_SYS_MEMORY); /* PCI memory space */ pci_set_region(hose->regions + 1, @@ -507,4 +504,13 @@ u8 ssi_rx_byte(void) return read_mmcr_byte(SC520_SSIRCV); } -#endif /* CONFIG_SC520 */ +#ifdef CONFIG_SYS_RESET_SC520 +void reset_cpu(ulong addr) +{ + printf("Resetting using SC520 MMCR\n"); + /* Write a '1' to the SYS_RST of the RESCFG MMCR */ + write_mmcr_word(SC520_RESCFG, 0x0001); + + /* NOTREACHED */ +} +#endif