diff options
author | Marcel Ziswiler <marcel.ziswiler@toradex.com> | 2012-10-18 12:53:36 +0200 |
---|---|---|
committer | Max Krummenacher <max.krummenacher@toradex.com> | 2012-10-18 19:18:14 +0200 |
commit | 822ebe51342db269164a7dd7a5394e2e5892422d (patch) | |
tree | 0bd774f3a73b7baddd272d57296454644413e552 /include | |
parent | cac4ae7a91a4872dd67084cb244f68446a4b39b8 (diff) |
colibri_t20: nand: change offset handling
Rather than relying on hard-coded offsets actually make use of
partition table parsing implementation.
Diffstat (limited to 'include')
-rw-r--r-- | include/configs/colibri_t20.h | 3 | ||||
-rw-r--r-- | include/fdt_decode.h | 18 |
2 files changed, 1 insertions, 20 deletions
diff --git a/include/configs/colibri_t20.h b/include/configs/colibri_t20.h index 24721ff5734..3888ac79b16 100644 --- a/include/configs/colibri_t20.h +++ b/include/configs/colibri_t20.h @@ -59,8 +59,7 @@ #define CONFIG_REVISION_TAG 1 #define CONFIG_SERIAL_TAG 1 -#define CONFIG_TRDX_CFG_BLOCK_OFFSET (gd->conf_blk_offset) -#define CONFIG_TRDX_CFG_BLOCK_OFFSET2 (gd->conf_blk_offset2) +#define CONFIG_TRDX_CFG_BLOCK #define CONFIG_CMD_ASKENV #define CONFIG_CMD_DIAG diff --git a/include/fdt_decode.h b/include/fdt_decode.h index 0969e29dec2..7b9e94919cf 100644 --- a/include/fdt_decode.h +++ b/include/fdt_decode.h @@ -244,17 +244,6 @@ enum { FDT_NAND_TIMING_COUNT }; -enum { - FDT_NAND_ENV_OFFSET, - FDT_NAND_CONFIG_OFFSET, - FDT_NAND_CONFIG_OFFSET2, - FDT_NAND_KERNEL_OFFSET, - FDT_NAND_ROOTFS_LENGTH, - FDT_NAND_ROOTFS_SIZE, - - FDT_NAND_PARTOFFSET_COUNT -}; - /* Information about an attached NAND chip */ struct fdt_nand { struct nand_ctlr *reg; @@ -273,13 +262,6 @@ struct fdt_nand { int page_spare_bytes; int page_data_bytes; /* Bytes in data area */ int timing[FDT_NAND_TIMING_COUNT]; - /* - * The offset of the start of - * u-boot-environment config-block kernel rootfs-size rootfs-start - * rootfs: the numbers are concatenated to mtdparts=tegra_nand:<rootfs-size>K@<rootfs-start>K(userspace) - * take them from a download with NVFLASH - */ - int nv_partitions[FDT_NAND_PARTOFFSET_COUNT]; }; /** |