X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=board%2Fm5271evb%2Fm5271evb.c;h=e089d5f02f1ff7c473d90d884c4207ca99dbc49e;hb=9973e3c614721bbf169882ffc3be266a6611cd60;hp=d364bd612c987b958f8fcb3617c6bffb9a8fc548;hpb=ae53c8a705bf6e57bcb70e69fdba77a6707e3632;p=people%2Fms%2Fu-boot.git diff --git a/board/m5271evb/m5271evb.c b/board/m5271evb/m5271evb.c index d364bd612c..e089d5f02f 100644 --- a/board/m5271evb/m5271evb.c +++ b/board/m5271evb/m5271evb.c @@ -22,15 +22,14 @@ */ #include -#include -#include +#include int checkboard (void) { puts ("Board: Freescale M5271EVB\n"); return 0; }; -long int initdram (int board_type) { +phys_size_t initdram (int board_type) { int i; @@ -53,10 +52,9 @@ long int initdram (int board_type) { * Check to see if the SDRAM has already been initialized * by a run control tool */ - if (!(mbar_readLong(MCF_SDRAMC_DACR0) & MCF_SDRAMC_DACRn_RE)) - { + if (!(mbar_readLong(MCF_SDRAMC_DACR0) & MCF_SDRAMC_DACRn_RE)) { /* Initialize DRAM Control Register: DCR */ - mbar_writeShort(MCF_SDRAMC_DCR, + mbar_writeShort(MCF_SDRAMC_DCR, MCF_SDRAMC_DCR_RTIM(0x01) | MCF_SDRAMC_DCR_RC(0x30)); @@ -74,7 +72,7 @@ long int initdram (int board_type) { | MCF_SDRAMC_DACRn_PS(0)); /* Initialize DMR0 */ - mbar_writeLong(MCF_SDRAMC_DMR0, + mbar_writeLong(MCF_SDRAMC_DMR0, MCF_SDRAMC_DMRn_BAM_16M | MCF_SDRAMC_DMRn_V);