If you had to ask, you don't have one. Say 'N'.
config MTD_NAND_OMAP
- tristate "NAND Flash device on OMAP H3/H2 board"
- depends on ARM && ARCH_OMAP1 && MTD_NAND && (MACH_OMAP_H2 || MACH_OMAP_H3 || MACH_NETSTAR)
+ tristate "NAND Flash device on OMAP H3/H2/P2 or NETSTAR boards"
+ depends on ARM && ARCH_OMAP1 && MTD_NAND && (MACH_OMAP_H2 || MACH_OMAP_H3 || MACH_NETSTAR || MACH_OMAP_PERSEUS2)
help
- Support for NAND flash on Texas Instruments H3/H2 platform.
+ Support for NAND flash on Texas Instruments H3/H2/P2/NETSTAR platforms.
config MTD_NAND_TOTO
tristate "NAND Flash device on TOTO board"
#define H3_NAND_RB_GPIO_PIN 10
#define H2_NAND_RB_GPIO_PIN 62
+#define P2_NAND_RB_GPIO_PIN 62
#define NETSTAR_NAND_RB_GPIO_PIN 1
/*
* MTD structure for H3 board
return omap_get_gpio_datain(H3_NAND_RB_GPIO_PIN);
if (machine_is_omap_h2())
return omap_get_gpio_datain(H2_NAND_RB_GPIO_PIN);
+ if (machine_is_omap_perseus2())
+ return omap_get_gpio_datain(H2_NAND_RB_GPIO_PIN);
if (machine_is_netstar())
return omap_get_gpio_datain(NETSTAR_NAND_RB_GPIO_PIN);
return 0;
int err = 0;
int nandboot = 0;
- if (!(machine_is_omap_h2() || machine_is_omap_h3() || machine_is_netstar()))
+ if (!(machine_is_omap_h2() || machine_is_omap_h3() || machine_is_netstar() || machine_is_omap_perseus2()))
return -ENODEV;
/* Allocate memory for MTD device structure and private data */
/* Link the private data with the MTD structure */
omap_nand_mtd->priv = this;
- if (machine_is_omap_h2()) {
+ if (machine_is_omap_h2() || machine_is_omap_perseus2()) {
/* FIXME on H2, R/B needs M7_1610_GPIO62 ... */
this->chip_delay = 15;
omap_cfg_reg(L3_1610_FLASH_CS2B_OE);
if (!(machine_is_netstar()))
goto out_unsupported;
/* fall through */
+ case SZ_64M:
+ if (!(machine_is_netstar() || machine_is_omap_perseus2()))
+ goto out_unsupported;
+ /* fall through */
case SZ_32M:
#ifdef CONFIG_MTD_PARTITIONS
err = parse_mtd_partitions(omap_nand_mtd, part_probes,
if (this->dev_ready) {
if (machine_is_omap_h2())
omap_free_gpio(H2_NAND_RB_GPIO_PIN);
+ else if (machine_is_omap_perseus2())
+ omap_free_gpio(P2_NAND_RB_GPIO_PIN);
else if (machine_is_omap_h3())
omap_free_gpio(H3_NAND_RB_GPIO_PIN);
else if (machine_is_netstar())
if (this->dev_ready) {
if (machine_is_omap_h2())
omap_free_gpio(H2_NAND_RB_GPIO_PIN);
+ else if (machine_is_omap_h2())
+ omap_free_gpio(H2_NAND_RB_GPIO_PIN);
else if (machine_is_omap_h3())
omap_free_gpio(H3_NAND_RB_GPIO_PIN);
else if (machine_is_netstar())