vision2: Remove unused get_board_rev function
[oweals/u-boot.git] / board / gth2 / gth2.c
index 9bc4d3fe5e84b630e70a7a65888fc72e827e1665..8c3b55af42909fa18b83c15d143a6ba19b0000e3 100644 (file)
@@ -36,7 +36,7 @@ static int wdi_status = 0;
 #define SDRAM_SIZE ((64*1024*1024)-(12*4096))
 
 
-#define SERIAL_LOG_BUFFER KSEG1ADDR(SDRAM_SIZE + (8*4096))
+#define SERIAL_LOG_BUFFER CKSEG1ADDR(SDRAM_SIZE + (8*4096))
 
 void inline log_serial_char(char c){
        char *serial_log_buffer = (char*)SERIAL_LOG_BUFFER;
@@ -83,7 +83,7 @@ void hw_watchdog_reset(void){
        }
 }
 
-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 */
@@ -93,7 +93,7 @@ long int initdram(int board_type)
        return (SDRAM_SIZE);
 }
 
-/* In cpu/mips/cpu.c */
+/* In arch/mips/cpu/cpu.c */
 void write_one_tlb( int index, u32 pagemask, u32 hi, u32 low0, u32 low1 );
 
 void set_ledcard(u32 value){
@@ -154,19 +154,19 @@ int checkboard (void)
           We need to map it into a 32 bit addresses */
        write_one_tlb(20,                 /* index */
                      0x01ffe000,         /* Pagemask, 16 MB pages */
-                     CFG_PCMCIA_IO_BASE, /* Hi */
+                     CONFIG_SYS_PCMCIA_IO_BASE, /* Hi */
                      0x3C000017,         /* Lo0 */
                      0x3C200017);        /* Lo1 */
 
        write_one_tlb(21,                   /* index */
                      0x01ffe000,           /* Pagemask, 16 MB pages */
-                     CFG_PCMCIA_ATTR_BASE, /* Hi */
+                     CONFIG_SYS_PCMCIA_ATTR_BASE, /* Hi */
                      0x3D000017,           /* Lo0 */
                      0x3D200017);          /* Lo1 */
 
        write_one_tlb(22,                   /* index */
                      0x01ffe000,           /* Pagemask, 16 MB pages */
-                     CFG_PCMCIA_MEM_ADDR,  /* Hi */
+                     CONFIG_SYS_PCMCIA_MEM_ADDR,  /* Hi */
                      0x3E000017,           /* Lo0 */
                      0x3E200017);          /* Lo1 */
 
@@ -209,7 +209,7 @@ do                              \
 static void write_bootdata (volatile u16 * addr, u8 System, u8 Count)
 {
        u16 data;
-       volatile u16 *flash = (u16 *) (CFG_FLASH_BASE);
+       volatile u16 *flash = (u16 *) (CONFIG_SYS_FLASH_BASE);
 
        switch(System){
        case FAILSAFE_BOOT:
@@ -302,7 +302,7 @@ static void check_boot_tries (void)
        u8 system = FAILSAFE_BOOT;
        u8 count;
 
-       addr = (u16 *) (CFG_FLASH_BASE + BOOTDATA_OFFSET);
+       addr = (u16 *) (CONFIG_SYS_FLASH_BASE + BOOTDATA_OFFSET);
 
        if (*addr == 0xFFFF) {
                printf ("*** No bootdata exists. ***\n");