]> git.sur5r.net Git - u-boot/blobdiff - board/dbau1x00/dbau1x00.c
FSL DDR: Convert MPC8560ADS to new DDR code.
[u-boot] / board / dbau1x00 / dbau1x00.c
index a13eeeb1232306ed84b219493d4367a50d071f4c..629dc317e090589b1d193ceb8cf5fb4019ef7c2c 100644 (file)
@@ -27,7 +27,7 @@
 #include <asm/mipsregs.h>
 #include <asm/io.h>
 
-long int initdram(int board_type)
+phys_size_t initdram(int board_type)
 {
        /* Sdram is setup by assembler code */
        /* If memory could be changed, we should return the true value here */
@@ -52,7 +52,7 @@ int checkboard (void)
 
        *sys_counter = 0x100; /* Enable 32 kHz oscillator for RTC/TOY */
 
-       proc_id = read_32bit_cp0_register(CP0_PRID);
+       proc_id = read_c0_prid();
 
        switch (proc_id >> 24) {
        case 0: