diff options
author | Simon Glass <sjg@chromium.org> | 2011-08-16 13:26:36 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2011-09-13 13:02:10 -0700 |
commit | 963cab4ec817956374b6155c964803a7689046d3 (patch) | |
tree | 14d5b9c1f26a1ff992efdfe01ea4a3eec7292b33 /include/configs/seaboard.h | |
parent | 404cd8377fc3f334ab037d590af70a6eb43cff49 (diff) |
tegra2: config: Move NAND config behind CONFIG_OF_CONTROL
This is no longer needed now that we have fdt support.
BUG=chromium-os:17062
TEST=build and boot on Aebl
Change-Id: I783a62da1fc4b29b4d1310e0eb0a93689b1d7a11
Reviewed-on: http://gerrit.chromium.org/gerrit/7505
Reviewed-by: Mike Frysinger <vapier@chromium.org>
Reviewed-by: Che-Liang Chiou <clchiou@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/configs/seaboard.h')
-rw-r--r-- | include/configs/seaboard.h | 109 |
1 files changed, 55 insertions, 54 deletions
diff --git a/include/configs/seaboard.h b/include/configs/seaboard.h index e76e4d9fbc..cea67c7929 100644 --- a/include/configs/seaboard.h +++ b/include/configs/seaboard.h @@ -126,6 +126,61 @@ #define CONFIG_I2C2_PIN_MUX 2 #define CONFIG_I2C3_PIN_MUX 1 +/* + * For HYNIX HY27UF4G2B NAND device. + * Get the following timing values from data sheet. + */ + +/* + * non-EDO mode: value (in ns) = Max(tRP, tREA) + 6ns + * EDO mode: value (in ns) = tRP timing + */ +#define CONFIG_NAND_MAX_TRP_TREA 26 + +#define CONFIG_NAND_TWB 100 + +/* Value = Max(tCR, tAR, tRR) */ +#define CONFIG_NAND_MAX_TCR_TAR_TRR 20 +#define CONFIG_NAND_TWHR 80 + +/* Value = Max(tCS, tCH, tALS, tALH) */ +#define CONFIG_NAND_MAX_TCS_TCH_TALS_TALH 20 +#define CONFIG_NAND_TWH 10 +#define CONFIG_NAND_TWP 12 +#define CONFIG_NAND_TRH 10 +#define CONFIG_NAND_TADL 70 + +/* How many bytes for data area */ +#define CONFIG_NAND_PAGE_DATA_BYTES 2048 + +/* + * How many bytes in spare area + * spare area = skipped bytes + ECC bytes of data area + * + tag bytes + ECC bytes of tag bytes + */ +#define CONFIG_NAND_PAGE_SPARE_BYTES 64 + +#define CONFIG_NAND_SKIPPED_SPARE_BYTES 4 + +/* How many ECC bytes for data area */ +#define CONFIG_NAND_RS_DATA_ECC_BYTES 36 + +/* How many tag bytes in spare area */ +#define CONFIG_NAND_TAG_BYTES 20 + +/* How many ECC bytes to be generated for tag bytes */ +#define CONFIG_NAND_TAG_ECC_BYTES 4 + +/* n bits */ +#define CONFIG_NAND_BUS_WIDTH 8 + +/* GPIO port H bit 3, H.03, GMI_AD11->MFG_MODE_R */ +#define CONFIG_NAND_WP_GPIO GPIO_PH3 + +/* physical address to access nand at CS0 */ +#define CONFIG_SYS_NAND_BASE TEGRA2_NAND_BASE +#else +#define CONFIG_SYS_NAND_BASE_LIST {} #endif /* CONFIG_OF_CONTROL not defined ^^^^^^^ */ #define CONFIG_TEGRA2_KEYBOARD @@ -203,60 +258,6 @@ #define CONFIG_CMD_NAND #define CONFIG_TEGRA2_NAND -/* - * For HYNIX HY27UF4G2B NAND device. - * Get the following timing values from data sheet. - */ - -/* - * non-EDO mode: value (in ns) = Max(tRP, tREA) + 6ns - * EDO mode: value (in ns) = tRP timing - */ -#define CONFIG_NAND_MAX_TRP_TREA 26 - -#define CONFIG_NAND_TWB 100 - -/* Value = Max(tCR, tAR, tRR) */ -#define CONFIG_NAND_MAX_TCR_TAR_TRR 20 -#define CONFIG_NAND_TWHR 80 - -/* Value = Max(tCS, tCH, tALS, tALH) */ -#define CONFIG_NAND_MAX_TCS_TCH_TALS_TALH 20 -#define CONFIG_NAND_TWH 10 -#define CONFIG_NAND_TWP 12 -#define CONFIG_NAND_TRH 10 -#define CONFIG_NAND_TADL 70 - -/* How many bytes for data area */ -#define CONFIG_NAND_PAGE_DATA_BYTES 2048 - -/* - * How many bytes in spare area - * spare area = skipped bytes + ECC bytes of data area - * + tag bytes + ECC bytes of tag bytes - */ -#define CONFIG_NAND_PAGE_SPARE_BYTES 64 - -#define CONFIG_NAND_SKIPPED_SPARE_BYTES 4 - -/* How many ECC bytes for data area */ -#define CONFIG_NAND_RS_DATA_ECC_BYTES 36 - -/* How many tag bytes in spare area */ -#define CONFIG_NAND_TAG_BYTES 20 - -/* How many ECC bytes to be generated for tag bytes */ -#define CONFIG_NAND_TAG_ECC_BYTES 4 - -/* n bits */ -#define CONFIG_NAND_BUS_WIDTH 8 - -/* GPIO port H bit 3, H.03, GMI_AD11->MFG_MODE_R */ -#define CONFIG_NAND_WP_GPIO GPIO_PH3 - -/* physical address to access nand at CS0 */ -#define CONFIG_SYS_NAND_BASE TEGRA2_NAND_BASE - /* Max number of NAND devices */ #define CONFIG_SYS_MAX_NAND_DEVICE 1 #endif /* __CONFIG_H */ |