[S5PC100] configs setting and delete unnesseary configs
authorMinkyu Kang <mk7.kang@samsung.com>
Thu, 21 May 2009 06:53:09 +0000 (15:53 +0900)
committerMinkyu Kang <mk7.kang@samsung.com>
Thu, 21 May 2009 06:53:09 +0000 (15:53 +0900)
Signed-off-by: Minkyu Kang <mk7.kang@samsung.com>
include/configs/s5pc100_tt.h

index 9ad8d46..0a1774b 100644 (file)
  ***********************************************************/
 #include <config_cmd_default.h>
 
+#undef CONFIG_CMD_LOADB
+#undef CONFIG_CMD_LOADS
+#undef CONFIG_CMD_BOOTD
+#undef CONFIG_CMD_FPGA
+#undef CONFIG_CMD_XIMG
+#undef CONFIG_CMD_NAND
+#undef CONFIG_CMD_IMLS
+#undef CONFIG_CMD_FLASH
+#undef CONFIG_CMD_IMLS
 #define CONFIG_CMD_CACHE
 #define CONFIG_CMD_REGINFO
-#define CONFIG_CMD_LOADS
-#define CONFIG_CMD_LOADB
-#define CONFIG_CMD_SAVEENV
-#define CONFIG_CMD_NAND
-#if defined(CONFIG_BOOT_ONENAND)
 #define CONFIG_CMD_ONENAND
-#endif
-#define CONFIG_CMD_PING
 #define CONFIG_CMD_ELF
 #define CONFIG_CMD_FAT
-//#define CONFIG_CMD_EXT2
+#define CONFIG_CMD_JFFS2
+#define CONFIG_JFFS2_CMDLINE
 
 #define CONFIG_BOOTDELAY       3
 
  * Miscellaneous configurable options
  */
 #define CONFIG_SYS_LONGHELP                            /* undef to save memory       */
-#define CONFIG_SYS_PROMPT              "SMDK6400 # "   /* Monitor Command Prompt     */
+#define CONFIG_SYS_PROMPT              "TT # "         /* Monitor Command Prompt     */
 #define CONFIG_SYS_CBSIZE              256             /* Console I/O Buffer Size    */
 #define CONFIG_SYS_PBSIZE              384             /* Print Buffer Size          */
 #define CONFIG_SYS_MAXARGS             16              /* max number of command args */
 #define PHYS_SDRAM_1           CONFIG_SYS_SDRAM_BASE   /* SDRAM Bank #1        */
 #define PHYS_SDRAM_1_SIZE      0x08000000      /* 128 MB in Bank #1    */
 
-#define CONFIG_SYS_FLASH_BASE          0x10000000
 #define CONFIG_SYS_MONITOR_BASE        0x00000000
 
 /*-----------------------------------------------------------------------
  * FLASH and environment organization
  */
-#define CONFIG_SYS_MAX_FLASH_BANKS     1       /* max number of memory banks   */
-/* AM29LV160B has 35 sectors, AM29LV800B - 19 */
-#define CONFIG_SYS_MAX_FLASH_SECT      40
-
-//#define CONFIG_SYS_NO_FLASH          1       
-
-#define CONFIG_AMD_LV800
-#define CONFIG_SYS_FLASH_CFI           1       /* Use CFI parameters (needed?) */
-/* Use drivers/cfi_flash.c, even though the flash is not CFI-compliant */
-#define CONFIG_FLASH_CFI_DRIVER        1
-#define CONFIG_SYS_FLASH_CFI_WIDTH     FLASH_CFI_16BIT
-#define CONFIG_FLASH_CFI_LEGACY
-#define CONFIG_SYS_FLASH_LEGACY_512Kx16
+#define CONFIG_SYS_NO_FLASH            1
 
 /* **** PISMO SUPPORT *** */
 
 #define CONFIG_SYS_FLASH_ERASE_TOUT    (5 * CONFIG_SYS_HZ) /* Timeout for Flash Erase  */
 #define CONFIG_SYS_FLASH_WRITE_TOUT    (5 * CONFIG_SYS_HZ) /* Timeout for Flash Write  */
 
-#define CONFIG_ENV_SIZE                0x4000  /* Total Size of Environment Sector */
+#define CONFIG_ENV_SIZE                0x20000 /* Total Size of Environment Sector */
+#define CONFIG_ENV_ADDR                0x40000
 
 /*
  * SMDK6400 board specific data
  */
 
-#define CONFIG_IDENT_STRING    " for SMDK6400"
+#define CONFIG_IDENT_STRING    " for TT"
 
 /* base address for uboot */
 #define CONFIG_SYS_PHY_UBOOT_BASE      (CONFIG_SYS_SDRAM_BASE + 0x07e00000)
 
 #define CONFIG_ENV_OFFSET              0x0040000
 
-/* NAND configuration */
-#define CONFIG_SYS_MAX_NAND_DEVICE     1
-#define CONFIG_SYS_NAND_BASE           0x70200010
-#define CONFIG_SYS_S3C_NAND_HWECC
-
-#define CONFIG_SYS_NAND_SKIP_BAD_DOT_I 1  /* ".i" read skips bad blocks              */
-#define CONFIG_SYS_NAND_WP             1
-#define CONFIG_SYS_NAND_YAFFS_WRITE    1  /* support yaffs write                     */
-#define CONFIG_SYS_NAND_BBT_2NDPAGE    1  /* bad-block markers in 1st and 2nd pages  */
-
-#define CONFIG_SYS_NAND_U_BOOT_DST     CONFIG_SYS_PHY_UBOOT_BASE       /* NUB load-addr      */
-#define CONFIG_SYS_NAND_U_BOOT_START   CONFIG_SYS_NAND_U_BOOT_DST      /* NUB start-addr     */
-
-#define CONFIG_SYS_NAND_U_BOOT_OFFS    (4 * 1024)      /* Offset to RAM U-Boot image */
-#define CONFIG_SYS_NAND_U_BOOT_SIZE    (252 * 1024)    /* Size of RAM U-Boot image   */
-
-/* NAND chip page size         */
-#define CONFIG_SYS_NAND_PAGE_SIZE      2048
-/* NAND chip block size                */
-#define CONFIG_SYS_NAND_BLOCK_SIZE     (128 * 1024)
-/* NAND chip page per block count  */
-#define CONFIG_SYS_NAND_PAGE_COUNT     64
-/* Location of the bad-block label */
-#define CONFIG_SYS_NAND_BAD_BLOCK_POS  0
-/* Extra address cycle for > 128MiB */
-#define CONFIG_SYS_NAND_5_ADDR_CYCLE
-
-/* Size of the block protected by one OOB (Spare Area in Samsung terminology) */
-#define CONFIG_SYS_NAND_ECCSIZE        CONFIG_SYS_NAND_PAGE_SIZE
-/* Number of ECC bytes per OOB - S3C6400 calculates 4 bytes ECC in 1-bit mode */
-#define CONFIG_SYS_NAND_ECCBYTES       4
-/* Number of ECC-blocks per NAND page */
-#define CONFIG_SYS_NAND_ECCSTEPS       (CONFIG_SYS_NAND_PAGE_SIZE / CONFIG_SYS_NAND_ECCSIZE)
-/* Size of a single OOB region */
-#define CONFIG_SYS_NAND_OOBSIZE        64
-/* Number of ECC bytes per page */
-#define CONFIG_SYS_NAND_ECCTOTAL       (CONFIG_SYS_NAND_ECCBYTES * CONFIG_SYS_NAND_ECCSTEPS)
-/* ECC byte positions */
-#define CONFIG_SYS_NAND_ECCPOS         {40, 41, 42, 43, 44, 45, 46, 47, \
-                                48, 49, 50, 51, 52, 53, 54, 55, \
-                                56, 57, 58, 59, 60, 61, 62, 63}
-
 /* Boot configuration (define only one of next 3) */
-//#define CONFIG_BOOT_NAND
+#define CONFIG_BOOT_ONENAND
 /* None of these are currently implemented. Left from the original Samsung
  * version for reference
+#define CONFIG_BOOT_NAND
 #define CONFIG_BOOT_NOR
 #define CONFIG_BOOT_MOVINAND
-#define CONFIG_BOOT_ONENAND
 */
 
+#define CONFIG_ONENAND
+/* Unimplemented or unsupported. See comment above.
 #define CONFIG_NAND
 #define CONFIG_NAND_S3C64XX
-/* Unimplemented or unsupported. See comment above.
-#define CONFIG_ONENAND
 #define CONFIG_MOVINAND
 */
 
+#define CONFIG_USE_ONENAND_BOARD_INIT
+#define CONFIG_SYS_ONENAND_BASE                0x00000000
 /* Settings as above boot configuration */
-#define CONFIG_ENV_IS_IN_NAND
+#define CONFIG_ENV_IS_IN_ONENAND
 #define CONFIG_BOOTARGS                "console=ttySAC,115200"
 
 /*