NAND: hooks for ts72xx.c to use ts7xxx.c NAND driver
Subsystems (5)
RFC PATCH 3/3 NAND: hooks for ts72xx.c to use ts7xxx.c NAND driver
[PATCH RFC] [MTD] NAND: add hooks so ts72xx.c can use the NAND
Add the NAND hooks in the platform code for the ts78xx.c. Completely removes the hooks used by the ts7200.c NAND driver, which probably is a bad idea.
Signed-off-by Alexander Clouter <[email protected]>
--- arch/arm/mach-ep93xx/include/mach/ts72xx.h | 20 +--- arch/arm/mach-ep93xx/ts72xx.c | 175 ++++++++++++++++++++-------- 2 files changed, 130 insertions(+), 65 deletions(-)
arch/arm/mach-ep93xx/include/mach/ts72xx.h +6 -14
@@ -44,20 +44,12 @@#define TS72XX_NOR_PHYS_BASE 0x60000000#define TS72XX_NOR2_PHYS_BASE 0x62000000 -#define TS72XX_NAND1_DATA_PHYS_BASE 0x60000000 -#define TS72XX_NAND2_DATA_PHYS_BASE 0x70000000 -#define TS72XX_NAND_DATA_VIRT_BASE 0xfebfc000 -#define TS72XX_NAND_DATA_SIZE 0x00001000 - -#define TS72XX_NAND1_CONTROL_PHYS_BASE 0x60400000 -#define TS72XX_NAND2_CONTROL_PHYS_BASE 0x70400000 -#define TS72XX_NAND_CONTROL_VIRT_BASE 0xfebfb000 -#define TS72XX_NAND_CONTROL_SIZE 0x00001000 - -#define TS72XX_NAND1_BUSY_PHYS_BASE 0x60800000 -#define TS72XX_NAND2_BUSY_PHYS_BASE 0x70800000 -#define TS72XX_NAND_BUSY_VIRT_BASE 0xfebfa000 -#define TS72XX_NAND_BUSY_SIZE 0x00001000 + +#define TS72XX_NAND_DATA_PHYS_BASE 0x60000000 +#define TS72XX_NAND_CONTROL_PHYS_BASE 0x60400000 +#define TS72XX_NAND_BUSY_PHYS_BASE 0x60800000 +#define TS72XX_NAND_IO_SIZE 4 +#define TS72XX_NAND1_NAND2_DIFF 0x10000000#define TS72XX_RTC_INDEX_VIRT_BASE 0xfebf9000
arch/arm/mach-ep93xx/ts72xx.c +124 -51
203 lines not on this page · raw message
Signature · 1 line
1.5.6.5