diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2012-08-02 12:00:51 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2012-08-02 12:00:51 +0200 |
commit | ee5a0fcded19fbcc05ac5149f4ef879ced5441d3 (patch) | |
tree | 31969b597d5a5f7f5c2a4eed9aca03ec648cdc79 /arch | |
parent | 6efca01b82a59f32b016f9cfd46b12e8e632ee92 (diff) | |
download | barebox-ee5a0fcded19fbcc05ac5149f4ef879ced5441d3.tar.gz barebox-ee5a0fcded19fbcc05ac5149f4ef879ced5441d3.tar.xz |
mtd OMAP NAND: Fix dev_ready handling
- dev_ready is supposed to return whether the device is ready or
not, not to poll until the device is ready.
- dev_ready should return true for ready and false for not ready
- waitpin polarity is not needed (at least the kernel does not have it)
- wait_mon_mask must be 32bit.
The code was unused since no board specified a wait pin, so no breakage
included. This also removes the now unused timeout variable from
platformdata.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-omap/devices-gpmc-nand.c | 2 | ||||
-rw-r--r-- | arch/arm/mach-omap/include/mach/gpmc_nand.h | 13 |
2 files changed, 0 insertions, 15 deletions
diff --git a/arch/arm/mach-omap/devices-gpmc-nand.c b/arch/arm/mach-omap/devices-gpmc-nand.c index cf87b57d7f..9d0ab6edcb 100644 --- a/arch/arm/mach-omap/devices-gpmc-nand.c +++ b/arch/arm/mach-omap/devices-gpmc-nand.c @@ -41,8 +41,6 @@ /** NAND platform specific settings settings */ static struct gpmc_nand_platform_data nand_plat = { - .cs = 0, - .max_timeout = MSECOND, .wait_mon_pin = 0, }; diff --git a/arch/arm/mach-omap/include/mach/gpmc_nand.h b/arch/arm/mach-omap/include/mach/gpmc_nand.h index b9c659d1a9..8a6927b8f2 100644 --- a/arch/arm/mach-omap/include/mach/gpmc_nand.h +++ b/arch/arm/mach-omap/include/mach/gpmc_nand.h @@ -50,10 +50,6 @@ struct gpmc_nand_platform_data { /** If there are any special setups you'd want to do */ int (*nand_setup) (struct gpmc_nand_platform_data *); - /** set up if we want H/w ECC here and other - * platform specific configs here - */ - unsigned short plat_options; /** ecc mode to use */ enum gpmc_ecc_mode ecc_mode; /** setup any special options */ @@ -62,8 +58,6 @@ struct gpmc_nand_platform_data { char device_width; /** Set this to WAITx+1, so GPMC WAIT0 will be 1 and so on. */ char wait_mon_pin; - /** Set this to the max timeout for the device */ - uint64_t max_timeout; /* if you like a custom oob use this. */ struct nand_ecclayout *oob; @@ -71,13 +65,6 @@ struct gpmc_nand_platform_data { void *priv; }; -/** Platform specific options definitions */ -/** plat_options: Wait montioring pin low */ -#define NAND_WAITPOL_LOW (0 << 0) -/** plat_options: Wait montioring pin high */ -#define NAND_WAITPOL_HIGH (1 << 0) -#define NAND_WAITPOL_MASK (1 << 0) - int gpmc_generic_nand_devices_init(int cs, int width, enum gpmc_ecc_mode, struct gpmc_config *nand_cfg); |