s5pc110: universal: remove unused codes
authorMinkyu Kang <mk7.kang@samsung.com>
Thu, 14 Oct 2010 04:43:02 +0000 (13:43 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Thu, 14 Oct 2010 04:43:02 +0000 (13:43 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
board/samsung/universal_c110/universal.c
include/configs/s5pc110_universal.h

index be8ad5a..cdffc67 100644 (file)
@@ -691,14 +691,10 @@ static void check_hw_revision(void)
        board_rev |= get_hw_revision(&gpio->j0, hwrev3);
 
        /* Set machine id */
-       if (board < MACH_PSEUDO_END) {
-               if (cpu_is_s5pc110())
-                       arch_number = C110_MACH_START + board;
-               else
-                       arch_number = C100_MACH_START + board;
-       } else {
+       if (board < MACH_PSEUDO_END)
+               arch_number = C110_MACH_START + board;
+       else
                arch_number = board;
-       }
 }
 
 static void show_hw_revision(void)
@@ -719,10 +715,8 @@ static void show_hw_revision(void)
 
        if (mach_is_goni() || mach_is_aquila())
                board = arch_number;
-       else if (cpu_is_s5pc110())
-               board = arch_number - C110_MACH_START;
        else
-               board = arch_number - C100_MACH_START;
+               board = arch_number - C110_MACH_START;
 
        check_board_revision(board, board_rev);
 
@@ -753,8 +747,7 @@ static void show_hw_revision(void)
                s5p_set_cpu_rev(0);
        }
 
-       if (cpu_is_s5pc110())
-               writel(0xc1100000 | (0xffff & (s5p_get_cpu_rev() ? 1 : 0)),
+       writel(0xc1100000 | (0xffff & (s5p_get_cpu_rev() ? 1 : 0)),
                                S5PC110_INFORM3);
 
        empty_device_info_buffer();
@@ -1449,9 +1442,6 @@ static void into_charge_mode(void)
                                char *argv[] = {"0", "0"};
                                wakeup_stat = do_sleep(&ctt, 0, 1, argv);
                        }
-               } else {
-                       puts("\n\n\nERROR: this is not S5PC110.\n\n\n");
-                       return;
                }
 
                /* Check TEMP HIGH/LOW */
@@ -2492,16 +2482,6 @@ int misc_init_r(void)
        check_reset_status();
        show_dump_msg();
 
-       /* Architecture Common settings */
-       if (cpu_is_s5pc110()) {
-               setenv("mtdparts", MTDPARTS_DEFAULT_4KB);
-       } else {
-               setenv("bootk", "onenand read 0x30007FC0 0x60000 0x300000; "
-                               "bootm 0x30007FC0");
-               setenv("updatek", "onenand erase 0x60000 0x300000; "
-                               "onenand write 0x31008000 0x60000 0x300000");
-       }
-
 #ifdef CONFIG_LCD
        /* It should be located at first */
        lcd_is_enabled = 0;
index 71509a8..fa20e7a 100644 (file)
 
 /* Actual modem binary size is 16MiB. Add 2MiB for bad block handling */
 #define MTDIDS_DEFAULT         "onenand0=samsung-onenand"
-#define MTDPARTS_DEFAULT       "mtdparts=samsung-onenand:1m(bootloader)"\
-                               ",128k(params)"\
-                               ",2816k(config)"\
-                               ",8m(csa)"\
-                               ",7m(kernel)"\
-                               ",1m(log)"\
-                               ",12m(modem)"\
-                               ",60m(qboot)"\
-                               ",-(UBI)\0"
 
 #ifdef CONFIG_SBOOT
-#define MTDPARTS_DEFAULT_4KB   "mtdparts=samsung-onenand:"\
+#define MTDPARTS_DEFAULT       "mtdparts=samsung-onenand:"\
                                "256k(s-boot)"\
                                ",512k(bootloader)"\
                                ",256k(params)"\
                                ",60m(qboot)"\
                                ",-(UBI)\0"
 #else
-#define MTDPARTS_DEFAULT_4KB   "mtdparts=samsung-onenand:"\
+#define MTDPARTS_DEFAULT       "mtdparts=samsung-onenand:"\
                                "768k(bootloader)"\
                                ",256k(params)"\
                                ",2816k(config)"\