]> git.sur5r.net Git - u-boot/blobdiff - include/configs/SX1.h
[Motion-PRO] Change IPB clock frequency from 50MHz to 100MHz. This
[u-boot] / include / configs / SX1.h
index ca536c5d3f6dea29b2617fdc99e4cf3ecbda2e3a..6ed98b8fb1889e6847324723df38cac3b2107a86 100644 (file)
 #ifndef __CONFIG_H
 #define __CONFIG_H
 
-/*
- * If we are developing, we might want to start armboot from ram
- * so we MUST NOT initialize critical regs like mem-timing ...
- */
-#define CONFIG_INIT_CRITICAL           /* undef for developing */
-
 /*
  * High Level Configuration Options
  * (easy to change)
@@ -83,8 +77,6 @@
 #define CONFIG_USBD_PRODUCTID          0x5678
 #define CONFIG_USBD_MANUFACTURER       "Siemens"
 #define CONFIG_USBD_PRODUCT_NAME       "SX1"
-#define CONFIG_USBD_SERIAL_NUMBER      "000000000001"
-
 
 /*
  * I2C configuration
 #include <cmd_confdefs.h>
 #include <configs/omap1510.h>
 
-#define CONFIG_BOOTDELAY       3
 #define CONFIG_BOOTARGS                "mem=16M console=ttyS0,115200n8 root=/dev/mtdblock3 rw"
+#define CONFIG_PREBOOT         "setenv stdout usbtty;setenv stdin usbtty"
 
 /*
  * Miscellaneous configurable options
  * FLASH and environment organization
  */
 #define CFG_MAX_FLASH_BANKS    2       /* max number of memory banks */
+#define PHYS_FLASH_SIZE                (16 << 10) /* 16 MB */
+#define PHYS_FLASH_SECT_SIZE   (128*1024) /* Size of a sector (128kB) */
 #define CFG_MAX_FLASH_SECT     (128)   /* max number of sectors on one chip */
-#define CFG_ENV_ADDR           (CFG_FLASH_BASE + 0x020000) /* addr of environment */
+#define CFG_ENV_ADDR   (CFG_FLASH_BASE + PHYS_FLASH_SECT_SIZE) /* addr of environment */
+#define CFG_MONITOR_BASE       CFG_FLASH_BASE  /* Monitor at beginning of flash */
+#define CFG_MONITOR_LEN                PHYS_FLASH_SECT_SIZE    /* Reserve 1 sector */
+#define CFG_FLASH_BANKS_LIST   { CFG_FLASH_BASE, CFG_FLASH_BASE + PHYS_FLASH_SIZE }
+
+/*-----------------------------------------------------------------------
+ * FLASH driver setup
+ */
+#define CFG_FLASH_CFI          1       /* Flash memory is CFI compliant */
+#define CFG_FLASH_CFI_DRIVER   1       /* Use drivers/cfi_flash.c */
+#define CFG_FLASH_USE_BUFFER_WRITE 1   /* Use buffered writes (~10x faster) */
+#define CFG_FLASH_PROTECTION   1       /* Use hardware sector protection */
 
 /* timeout values are in ticks */
 #define CFG_FLASH_ERASE_TOUT   (20*CFG_HZ) /* Timeout for Flash Erase */
 #define CFG_FLASH_WRITE_TOUT   (20*CFG_HZ) /* Timeout for Flash Write */
 
 #define CFG_ENV_IS_IN_FLASH    1
-#define CFG_ENV_SIZE           0x20000 /* Total Size of Environment Sector */
-#define CFG_ENV_OFFSET         0x20000 /* environment starts here  */
+#define CFG_ENV_SECT_SIZE      PHYS_FLASH_SECT_SIZE
+#define CFG_ENV_SIZE           CFG_ENV_SECT_SIZE /* Total Size of Environment Sector */
+#define CFG_ENV_OFFSET ( CFG_MONITOR_BASE + CFG_MONITOR_LEN ) /* Environment after Monitor */
+
+/* Address and size of Redundant Environment Sector    */
+#define CFG_ENV_SIZE_REDUND    0x20000
+#define CFG_ENV_OFFSET_REDUND  0x40000
 
 #endif /* __CONFIG_H */