CONFIG_NAND_xx from generic files
to individual files.
Pekon Gupta (6):
board/ti/am335x: update configs for parallel NAND
board/ti/am335x: add support for beaglebone NAND cape
board/ti/am335x: add support for beaglebone NOR Cape
board/ti/am43xx: add support for parallel NAND
board/ti
/include/configs/am335x_evm.h
+#define CONFIG_SYS_NAND_BUSWIDTH_16BIT
Signed-off-by: Pekon Gupta pe...@ti.com
---
board/ti/am335x/mux.c | 58 +--
1 file changed, 38 insertions(+), 20 deletions(-)
diff --git a/board/ti/am335x/mux.c b/board/ti/am335x
This patch
- consolidate CONFIG_SYS_NAND_xx and CONFIG_SPL_NAND_xx from various
configuration files into single file.
- update MTD Partition table to match AM335x_EVM DT in linux-kernel
- segregate CONFIGs based on different boot modes (like SPL and U-Boot)
Signed-off-by: Pekon Gupta pe
=256KB
- pagesize=4KB
- oobsize=224 bytes
For above NAND device, ROM code expects the boot-loader to be flashed in BCH16
ECC scheme for NAND boot, So by default BCH16 ECC is enabled for AM43xx EVMs.
Signed-off-by: Pekon Gupta pe...@ti.com
---
board/ti/am43xx/board.c | 1 +
board/ti/am43xx
http://elinux.org/CircuitCo:BeagleBone_Memory_Expansion
Signed-off-by: Pekon Gupta pe...@ti.com
---
board/ti/am335x/mux.c| 95
doc/README.cfi | 13 ++
include/configs/am335x_evm.h | 2 +
3 files changed, 50 insertions(+), 60
Lokesh Vutla lokeshvu...@ti.com
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/include/asm/arch-omap5/mem.h | 12 +--
board/ti/dra7xx/mux_data.h| 36 +++--
include/configs/dra7xx_evm.h | 38
Lokesh Vutla lokeshvu...@ti.com
[1]
http://processors.wiki.ti.com/index.php/Linux_Core_NAND_User%27s_Guide#Board_specific_configurations
Signed-off-by: Pekon Gupta pe...@ti.com
---
board/ti/dra7xx/mux_data.h | 28 +
include
This patch cleans redundant and unused macros from various board-configs
and architecture specific header files.
Tested using: MAKEALL -s omap 3 -s omap4 -s omap5 -s am33xx
with $ARCH=arm $CROSS_COMPILE=arm-linux-gnueabihf-
Pekon Gupta (3):
ARM: omap: fix GPMC address-map
:
CONFIG_SYS_NAND_U_BOOT_OFFS: refer doc/README.nand
CONFIG_CMD_SPL_NAND_OFS: refer doc/README.falcon
CONFIG_SYS_NAND_SPL_KERNEL_OFFS: refer doc/README.falcon
CONFIG_CMD_SPL_WRITE_SIZE: refer doc/README.falcon
This patch also updates documentation for few of above NAND configs.
Signed-off-by: Pekon Gupta pe
to CPU address-space, so its
address-map size depends on actual addressable region in NOR FLASH device.
So this patch uses CONFIG_SYS_FLASH_SIZE to derive GPMC chip-select address-map
size configuration.
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/cpu/armv7/omap-common/mem-common.c | 10
| |
+-+---+
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/cpu/armv7/omap-common/mem-common.c | 4 ++--
arch/arm/include/asm/arch-am33xx/mem.h | 7 ---
arch/arm/include/asm/arch-omap3/cpu.h | 1 -
arch/arm/include/asm/arch-omap3/mem.h | 13 -
include
-s oamp4 -s omap5
works fine except for am335x_boneblack_vboot
build breaks for am335x_boneblack_vboot for un-related reasons
u-boot/scripts/dtc-version.sh: line 17: dtc: command not found
Pekon Gupta (7):
TI: armv7: move board specific NAND configs out
Most platforms have fall-back boot sources, if their primary boot fails.
This patch allows board_init to continue scanning through other secondary boot
sources like NAND, MMC, etc if valid FLASH device is not detected.
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/lib/board.c | 7
doc/README.falcon
CONFIG_CMD_SPL_WRITE_SIZE: refer doc/README.falcon
This patch also updates documentation for few of above NAND configs.
Signed-off-by: Pekon Gupta pe...@ti.com
---
doc/README.nand| 12
include/configs/am335x_evm.h | 7 +++
include
-- )
[1] http://beagleboardtoys.info/index.php?title=BeagleBone_Memory_Expansion
[2]
http://beagleboardtoys.info/index.php?title=BeagleBone_4Gb_16-Bit_NAND_Module
Signed-off-by: Pekon Gupta pe...@ti.com
---
board/ti/am335x/mux.c | 58 +--
1
This patch
- consolidate CONFIG_SYS_NAND_xx and CONFIG_SPL_NAND_xx from various
configuration files into single file.
- update MTD Partition table to match AM335x_EVM DT in linux-kernel
- segregate CONFIGs based on different boot modes (like SPL and U-Boot)
Signed-off-by: Pekon Gupta pe
/Beagleboardtoys:BeagleBone_128Mb_16-Bit_NOR_Module
Signed-off-by: Pekon Gupta pe...@ti.com
---
board/ti/am335x/mux.c | 95 +++
1 file changed, 35 insertions(+), 60 deletions(-)
diff --git a/board/ti/am335x/mux.c b/board/ti/am335x/mux.c
index 439da4b
=256KB
- pagesize=4KB
- oobsize=224 bytes
For above NAND device, ROM code expects the boot-loader to be flashed in BCH16
ECC scheme for NAND boot, So by default BCH16 ECC is enabled for AM43xx EVMs.
Signed-off-by: Pekon Gupta pe...@ti.com
---
board/ti/am43xx/board.c | 1 +
board/ti/am43xx
) = HIGH
Signed-off-by: Pekon Gupta pe...@ti.com
---
board/ti/dra7xx/mux_data.h | 30 +++
boards.cfg | 2 +-
include/configs/dra7xx_evm.h | 58 +++-
3 files changed, 88 insertions(+), 2 deletions(-)
diff --git a/board/ti
GPMC can support simultaneous processing of 8 512Byte data chunks, in parallel
Signed-off-by: Pekon Gupta pe...@ti.com
---
include/linux/mtd/omap_gpmc.h | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/include/linux/mtd/omap_gpmc.h b/include/linux/mtd/omap_gpmc.h
index
to accomodate ECC.
This patch series is applicable over an above following series:
http://lists.denx.de/pipermail/u-boot/2013-September/161859.html
Pekon Gupta (3):
mtd: nand: omap_gpmc: use macro for register definitions
mtd: nand: omap: add support for BCH16_ECC - NAND driver updates
am335x
updates documentation with explanation on how to select ECC schemes.
Signed-off-by: Pekon Gupta pe...@ti.com
---
doc/README.nand | 42 ++
1 file changed, 42 insertions(+)
diff --git a/doc/README.nand b/doc/README.nand
index 2bc5b39..70cf768 100644
which have enough
OOB to satisfy following equation:
OOBsize per page = 26 * (page-size / 512)
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap_gpmc.c | 79 ++-
include/linux/mtd/omap_gpmc.h | 8 +
2 files changed, 86 insertions(+), 1
- Remove redundant code
Pekon Gupta (3):
ARM: omap4: add platform specific info for GPMC and ELM controllers
ARM: omap5: add platform specific info for GPMC and ELM controllers
ARM: omap: merge GPMC initialization code for all platform
arch/arm/cpu/armv7/am33xx/Makefile | 1
and ELM
Platform specific information added into arch-xx/../mem.h
- Generic configs for GPMC and ELM initialization.
- Hardware parameters or constrains specific to GPMC and ELM IP like;
number of max number of chip-selects available
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm
by board-profile decide config for which set of macros
need to be used for initialization
CONFIG_NAND:initialize GPMC for NAND device
CONFIG_NOR: initialize GPMC for NOR device
CONFIG_ONENAND: initialize GPMC for ONENAND device
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/cpu/armv7
and ELM
Platform specific information added into arch-xx/../mem.h
- Generic configs for GPMC and ELM initialization.
- Hardware parameters or constrains specific to GPMC and ELM IP like;
number of max number of chip-selects available
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm
on 16-bit devices
Pekon Gupta (2):
mtd: nand: omap: add CONFIG_SYS_NAND_BUSWIDTH_16BIT to indicate NAND
device bus-width
omap3: remove remnant macros GPMC_NAND_ECC_LP_x8_LAYOUT and
GPMC_NAND_ECC_LP_x16_LAYOUT
arch/arm/cpu/armv7/omap3/mem.c| 12
arch/arm/include/asm
Dec 5 22:22:04 2013 +0100
mtd: nand: don't use {read,write}_buf for 8-bit transfers
Now, I think that all barriers to probing ONFI on x16 devices are
removed, so remove the check from nand_flash_detect_onfi().
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/nand_base.c
commit e34fcb07a6d57411de6e15a47724fbe92c5caa42
Author: David Mosberger dav...@egauge.net (preserving authorship)
mtd: nand: fix GET/SET_FEATURES address on 16-bit devices
Signed-off-by: Pekon Gupta pe...@ti.com
---
include/linux/mtd/nand.h | 11 ++-
1 file changed, 10 insertions
not be translated to 0x00, 0x10, or
0x20).
This fixes the column address for a few drivers which imitate the
nand_base defaults.
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/am335x_spl_bch.c | 2 +-
drivers/mtd/nand/atmel_nand.c | 2 +-
drivers/mtd/nand/nand_base.c | 6
CONFIG_SYS_NAND_BUSWIDTH_16BIT to board config
hich indicates that connected NAND device has x16 bus-width. And then based on
this config GPMC driver itself initializes itself based on NAND bus-width. This
keeps board developers free from knowing GPMC controller specific internals.
Signed-off-by: Pekon Gupta pe
OMAP3 used GPMC_NAND_ECC_LP_x8_LAYOUT and GPMC_NAND_ECC_LP_x16_LAYOUT macros
to configure GPMC controller for x7 or x8 bit device connected to its interface.
Now this information is encoded in CONFIG_SYS_NAND_DEVICE_WIDTH macro, so above
macros can be completely removed.
Signed-off-by: Pekon
not be translated to 0x00, 0x10, or
0x20).
This fixes the column address for a few drivers which imitate the
nand_base defaults.
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/am335x_spl_bch.c | 2 +-
drivers/mtd/nand/atmel_nand.c | 2 +-
drivers/mtd/nand/nand_base.c | 6
GET/SET_FEATURES address on 16-bit devices
Pekon Gupta (2):
mtd: nand: omap: add CONFIG_SYS_NAND_DEVICE_WIDTH to determine NAND
device bus-width
omap3: remove remnant macros GPMC_NAND_ECC_LP_x8_LAYOUT and
GPMC_NAND_ECC_LP_x16_LAYOUT
arch/arm/cpu/armv7/omap3/mem.c | 12
commit e34fcb07a6d57411de6e15a47724fbe92c5caa42
Author: David Mosberger dav...@egauge.net (preserving authorship)
mtd: nand: fix GET/SET_FEATURES address on 16-bit devices
Signed-off-by: Pekon Gupta pe...@ti.com
---
include/linux/mtd/nand.h | 11 ++-
1 file changed, 10 insertions
.
Signed-off-by: Pekon Gupta pe...@ti.com
---
doc/README.nand| 9 +
drivers/mtd/nand/omap_gpmc.c | 13 +
include/configs/am335x_evm.h | 1 +
include/configs/am335x_igep0033.h | 1 +
include/configs/am3517_crane.h | 1
Dec 5 22:22:04 2013 +0100
mtd: nand: don't use {read,write}_buf for 8-bit transfers
Now, I think that all barriers to probing ONFI on x16 devices are
removed, so remove the check from nand_flash_detect_onfi().
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/nand_base.c
OMAP3 used GPMC_NAND_ECC_LP_x8_LAYOUT and GPMC_NAND_ECC_LP_x16_LAYOUT macros
to configure GPMC controller for x7 or x8 bit device connected to its interface.
Now this information is encoded in CONFIG_SYS_NAND_DEVICE_WIDTH macro, so above
macros can be completely removed.
Signed-off-by: Pekon
,
hence this scheme is usable only for NAND devices having 4K or above
page-size, as their OOB/spare area has enough space to accomodate ECC.
This patch series is applicable over an above following series:
http://lists.denx.de/pipermail/u-boot/2013-September/161859.html
Pekon Gupta (2):
mtd: nand
updates documentation with explanation on how to select ECC schemes.
Signed-off-by: Pekon Gupta pe...@ti.com
---
doc/README.nand | 42 ++
1 file changed, 42 insertions(+)
diff --git a/doc/README.nand b/doc/README.nand
index 90d857e..a5d20bc 100644
which have enough
OOB to satisfy following equation:
OOBsize per page = 26 * (page-size / 512)
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap_gpmc.c | 78 ++-
include/linux/mtd/omap_gpmc.h | 8 +
2 files changed, 85 insertions(+), 1
There is no dependency of omap_elm.c on omap_gpmc.h
Signed-off-by: Pekon Gupta pe...@ti.com
Reviewed-by: Stefan Roese s...@denx.de
---
drivers/mtd/nand/omap_elm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mtd/nand/omap_elm.c b/drivers/mtd/nand/omap_elm.c
index 47b1f1b..4c65f3b
-schemes
- minor code fixes and clean-ups
This series can be as-it-is applied on u-boot 'v2014.04-rc3'.
*Testing Procedure*
Boot tested on am335x_evm (MLO - U-boot - kernel with filesystem flashed from
U-boot)
using OMAP_ECC_BCH8_CODE_HW and OMAP_ECC_BCH8_CODE_HW_DETECTION_SW ecc-schemes
Pekon Gupta
|
+--++
Current implementation of omap_elm driver uses ECC syndrom length (in 'nibbles')
to differentiate between BCH4/BCH8/BCH16. This patch replaces it with 'bch_type'
Signed-off-by: Pekon Gupta pe...@ti.com
Reviewed-by: Stefan Roese s...@denx.de
---
drivers/mtd/nand
This patch adds macros for following parameters of ELM Hardware engine
- ELM_MAX_CHANNELS: ELM can process 8 data streams simultaneously
- ELM_MAX_ERRORS: ELM can detect upto 16 ECC error when using BCH16 scheme
Signed-off-by: Pekon Gupta pe...@ti.com
Reviewed-by: Stefan Roese s...@denx.de
This patch prepares to refactor 'struct nand_bch_priv' - 'struct
omap_nand_info'
And thus performs following clean-ups:
- remove nand_bch_priv.type: use nand_bch_priv.ecc_scheme instead
- remove nand_bch_priv.mode: unused
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand
This patch tries to avoid some local pointer dereferences, by using common
local variables in omap_correct_data_bch()
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap_gpmc.c | 10 +-
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/drivers/mtd/nand
This patch
omap-elm.c: replaces -ve integer value returned during errorneous condition,
with proper error-codes.
omap-gpmc.c: updates omap-gpmc driver to pass error-codes returned from
omap-elm driver to upper layers
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers
There is no dependency of omap_elm.c on omap_gpmc.h
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap_elm.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/drivers/mtd/nand/omap_elm.c b/drivers/mtd/nand/omap_elm.c
index 47b1f1b..4c65f3b 100644
--- a/drivers/mtd/nand/omap_elm.c
tested on am335x_evm (MLO - U-boot - kernel with filesystem flashed from
U-boot)
using OMAP_ECC_BCH8_CODE_HW and OMAP_ECC_BCH8_CODE_HW_DETECTION_SW ecc-schemes
Pekon Gupta (6):
mtd: nand: omap_elm: remove #include omap_gpmc.h
mtd: nand: omap_elm: use bch_type instead of nibble count
|
+--++
Current implementation of omap_elm driver uses ECC syndrom length (in 'nibbles')
to differentiate between BCH4/BCH8/BCH16. This patch replaces it with 'bch_type'
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap_elm.c | 20
drivers
This patch prepares to refactor 'struct nand_bch_priv' - 'struct
omap_nand_info'
And thus performs following clean-ups:
- remove nand_bch_priv.type: use nand_bch_priv.ecc_scheme instead
- remove nand_bch_priv.mode: unused
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand
This patch tries to avoid some local pointer dereferences, by using common
local variables in omap_correct_data_bch()
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap_gpmc.c | 12 ++--
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/drivers/mtd/nand
This patch renames 'struct nand_bch_priv' which currently holds private data
only
for BCH ECC schemes, into 'struct omap_nand_info' so that same can be used for
all ECC schemes
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap_gpmc.c | 58
This patch adds macros for following parameters of ELM Hardware engine
- ELM_MAX_CHANNELS: ELM can process 8 data streams simultaneously
- ELM_MAX_ERRORS: ELM can detect upto 16 ECC error when using BCH16 scheme
Signed-off-by: Pekon Gupta pe...@ti.com
---
include/linux/mtd/omap_elm.h | 9
.
Signed-off-by: Pekon Gupta pe...@ti.com
---
include/configs/omap3_igep00x0.h | 2 ++
1 file changed, 2 insertions(+)
diff --git a/include/configs/omap3_igep00x0.h b/include/configs/omap3_igep00x0.h
index 8b8583a..4e87d6b 100644
--- a/include/configs/omap3_igep00x0.h
+++ b/include/configs
page.
[PATCH 2/4]: enable NAND_BUSWIDTH_AUTO feature in omap_nand.c
[PATCH 3/4]: cleaning of GPMC configs for NAND and NOR
Brian Norris (1):
mtd: nand: don't use read_buf for 8-bit ONFI transfers
Pekon Gupta (2):
mtd: nand: omap: add CONFIG_SYS_NAND_DEVICE_WIDTH to determine NAND
device
OMAP3 used GPMC_NAND_ECC_LP_x8_LAYOUT and GPMC_NAND_ECC_LP_x16_LAYOUT macros
to configure GPMC controller for x7 or x8 bit device connected to its interface.
Now this information is encoded in CONFIG_SYS_NAND_DEVICE_WIDTH macro, so above
macros can be completely removed.
Signed-off-by: Pekon
Dec 5 22:22:04 2013 +0100
mtd: nand: don't use {read,write}_buf for 8-bit transfers
Now, I think that all barriers to probing ONFI on x16 devices are
removed, so remove the check from nand_flash_detect_onfi().
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/nand_base.c
.
Signed-off-by: Pekon Gupta pe...@ti.com
---
doc/README.nand| 9 +
drivers/mtd/nand/omap_gpmc.c | 13 +
include/configs/am335x_evm.h | 1 +
include/configs/am335x_igep0033.h | 1 +
include/configs/am3517_crane.h | 1
-- )
[1] http://beagleboardtoys.info/index.php?title=BeagleBone_Memory_Expansion
[2]
http://beagleboardtoys.info/index.php?title=BeagleBone_4Gb_16-Bit_NAND_Module
Signed-off-by: Pekon Gupta pe...@ti.com
---
board/ti/am335x/mux.c | 75 +--
1
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap2.c | 31 +++
1 file changed, 23 insertions(+), 8 deletions(-)
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index ef4190a..34ef941 100644
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers/mtd
configurations to match above ecc-layout are documented at
https://processors.wiki.ti.com/index.php/Linux_Core_NAND_User%27s_Guide
Pekon Gupta (3):
mtd: nand: omap: fix ecclayout to be in sync with u-boot NAND driver
mtd: nand: omap: fix ecclayout-oobfree-offset
mtd: nand: omap: fix ecclayout
This patch excludes reserved-marker byte-position from oobfree-length
calculation. Thus all bytes from oobfree-offset till end of OOB are free.
CC: sta...@vger.kernel.org # 3.13.x+
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap2.c | 5 ++---
1 file changed, 2 insertions(+), 3
eballe...@gmail.com
Tested-by: Stefan Roese s...@denx.de
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap2.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index 34ef941..58685ab
above ecc-layout are documented at
https://processors.wiki.ti.com/index.php/Linux_Core_NAND_User%27s_Guide
Reported-by: Enric Balletbo Serra eballe...@iseebcn.com
Tested-by: Enric Balletbo i Serra eballe...@gmail.com
Tested-by: Stefan Roese s...@denx.de
Signed-off-by: Pekon Gupta pe...@ti.com
oobfree-length calculation.
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap2.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index 874fd9d..433e58a 100644
--- a/drivers/mtd/nand/omap2.c
+++ b/drivers
kernel reboot
[1] u-boot configurations to match above ecc-layout are documented at
https://processors.wiki.ti.com/index.php/Linux_Core_NAND_User%27s_Guide
Pekon Gupta (3):
mtd: nand: omap: fix ecclayout-oobfree-offset
mtd: nand: omap: fix ecclayout-oobfree-length
mtd: nand: omap: fix
Roese s...@denx.de
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap2.c | 25 +++--
1 file changed, 15 insertions(+), 10 deletions(-)
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand/omap2.c
index ef4190a..874fd9d 100644
--- a/drivers/mtd/nand/omap2.c
Kernel flash_erase /dev/mtdpart-of-u-boot 0 0
Kernel nandwrite -s 0 /dev/mtdpart-of-u-boot u-boot.img
Kernel reboot
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap2.c | 33 +
1 file changed, 25 insertions(+), 8 deletions(-)
Pekon Gupta
0
Kernel nandwrite -s 0 /dev/mtdpart-of-u-boot u-boot.img
Kernel reboot
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap2.c | 33 +
1 file changed, 25 insertions(+), 8 deletions(-)
diff --git a/drivers/mtd/nand/omap2.c b/drivers/mtd/nand
This patch updates starting offset for free bytes in OOB which can be used by
file-systems to store their metadata (like clean-marker in case of JFFS2).
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap2.c | 17 -
1 file changed, 4 insertions(+), 13 deletions
Figure 25-19. ECC Locations in NAND Spare Areas
Reported-by: Stefan Roese s...@denx.de
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap_gpmc.c | 8 ++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand/omap_gpmc.c
index
, CONFIG_SPL_NAND_DEVICE_WIDTH is useful.
(3) Non-ONFI compliant devices need some mechanism to specify device bus-width
to driver.
Signed-off-by: Pekon Gupta pe...@ti.com
---
doc/README.nand| 9 +
drivers/mtd/nand/omap_gpmc.c | 14 ++
include
different arch-xx specific header files into single
header file include/asm/arch/omap_gpmc.h
Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/include/asm/arch-am33xx/cpu.h | 51 --
arch/arm/include/asm
omap_elm.h is a generic header used by OMAP ELM driver for all TI platfoms.
Hence this file should be present in generic folder instead of architecture
specific include folder.
Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers
. But it should be
applied above previous series given below, otherwise there would be
minor conflict seen in file arch/arm/include/asm/omap_gpmc.h
http://lists.denx.de/pipermail/u-boot/2013-November/167445.html
Pekon Gupta (5):
mtd: nand: omap: remove redundant platform
. But it should be
applied above previous series given below, otherwise there would be
minor conflict seen in file arch/arm/include/asm/omap_gpmc.h
http://lists.denx.de/pipermail/u-boot/2013-November/167445.html
Pekon Gupta (5):
mtd: nand: omap: remove redundant platform specific header
omap_gpmc.h is a generic header used by OMAP NAND driver for all TI platfoms.
Hence this file should be present in generic folder instead of architecture
specific include folder.
Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch
omap3 -s omap4 -s omap5
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/include/asm/omap_gpmc.h | 47 --
include/configs/am335x_evm.h | 1 -
include/configs/am335x_igep0033.h | 1 -
include/configs/am3517_crane.h | 1 -
include
omap_elm.h is a generic header used by OMAP ELM driver for all TI platfoms.
Hence this file should be present in generic folder instead of architecture
specific include folder.
Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers
) are redundant.
Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/include/asm/arch-am33xx/omap_gpmc.h | 48
arch/arm/include/asm/arch-omap3/mem.h| 10 ++
arch/arm/include/asm/arch-omap3
) are redundant.
Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/include/asm/arch-am33xx/omap_gpmc.h | 48
arch/arm/include/asm/arch-omap3/mem.h| 10 ++
arch/arm/include/asm/arch-omap3
omap3 -s omap4 -s omap5
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/include/asm/omap_gpmc.h | 47 --
include/configs/am335x_evm.h | 1 -
include/configs/am335x_igep0033.h | 1 -
include/configs/am3517_crane.h | 1 -
include
omap_gpmc.h is a generic header used by OMAP NAND driver for all TI platfoms.
Hence this file should be present in generic folder instead of architecture
specific include folder.
Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch
different arch-xx specific header files into single
header file include/asm/arch/omap_gpmc.h
Build tested using: ./MAKEALL -s am33xx -s omap3 -s omap4 -s omap5
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/include/asm/arch-am33xx/cpu.h | 51 --
arch/arm/include/asm
configs using AM33xx SoC platform.
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/cpu/armv7/am33xx/Makefile| 1 -
.../arm/include/asm/{arch-am33xx/elm.h = omap_elm.h} | 0
doc/README.nand | 19 +++
drivers/mtd/nand
on presence of ELM hardware engine on SoC. (Refer doc/README.nand)
Signed-off-by: Pekon Gupta pe...@ti.com
---
doc/README.nand| 23 +++
doc/README.omap3 | 3 +--
drivers/mtd/nand/omap_gpmc.c | 13 -
include
updates BCH8_ECC schemes in mtd/nand/omap_gpmc.c driver
- adds scalability for higher ECC schemes in future.
- removes CONFIG_AM335x and it makes it generic for all platforms.
- optimizes read_data paths
Pekon Gupta (4):
mtd: nand: omap: make am33xx/elm.c as common driver for all OMAPx
and NAND boot. This patch:
- combines NOR and NAND configs spread in board files to common gpmc_init()
- configures GPMC based on boot-mode selected for SPL boot.
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/cpu/armv7/am33xx/mem.c| 52 +++---
arch/arm/include
doc/README.omap3
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/include/asm/omap_gpmc.h | 16 ++
doc/README.nand | 11 ++
drivers/mtd/nand/omap_gpmc.c | 326 ---
3 files changed, 228 insertions(+), 125 deletions(-)
diff --git
scalability for higher ECC schemes in future.
- removes CONFIG_AM335x and it makes it generic for all platforms.
- optimizes read_data paths
Pekon Gupta (4):
mtd: nand: omap: make am33xx/elm.c as common driver for all OMAPx and
AM platforms
mtd: nand: omap: enable BCH ECC scheme using
configs using AM33xx SoC platform.
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/cpu/armv7/am33xx/Makefile| 1 -
.../arm/include/asm/{arch-am33xx/elm.h = omap_elm.h} | 0
doc/README.nand | 19 +++
drivers/mtd/nand
on presence of ELM hardware engine on SoC. (Refer doc/README.nand)
Signed-off-by: Pekon Gupta pe...@ti.com
---
doc/README.nand| 23 +++
doc/README.omap3 | 3 +--
drivers/mtd/nand/omap_gpmc.c | 13 -
include
doc/README.omap3
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/include/asm/omap_gpmc.h | 16 ++
doc/README.nand | 11 ++
drivers/mtd/nand/omap_gpmc.c | 328 ---
3 files changed, 230 insertions(+), 125 deletions(-)
diff --git
and NAND boot. This patch:
- combines NOR and NAND configs spread in board files to common gpmc_init()
- configures GPMC based on boot-mode selected for SPL boot.
Signed-off-by: Pekon Gupta pe...@ti.com
---
arch/arm/cpu/armv7/am33xx/mem.c| 52 +++---
arch/arm/include
()
- removes omap_ecc_disable() and instead uses it as inline.
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap_gpmc.c | 226 ---
1 file changed, 63 insertions(+), 163 deletions(-)
diff --git a/drivers/mtd/nand/omap_gpmc.c b/drivers/mtd/nand
/160218.html
Pekon Gupta (4):
mtd: nand: omap: optimize chip-ecc.hwctl() for H/W ECC schemes
mtd: nand: omap: optimize chip-ecc.calculate() for H/W ECC schemes
mtd: nand: omap: optimized chip-ecc.correct() for H/W ECC schemes
board/ti/am335x/README: update for NAND boot
arch/arm/include
by merging following
omap_rotate_ecc_bch() + omap_fix_errors_bch() = omap_correct_data_bch()
- fixing logic for bit-flip correction based on error_loc[count]
Signed-off-by: Pekon Gupta pe...@ti.com
---
drivers/mtd/nand/omap_gpmc.c | 161 +++
1 file changed
1 - 100 of 181 matches
Mail list logo