#define ALL0256N_GPIO_LED_RSSI_HIGH 13
#define ALL0256N_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition all0256n_partitions[] = {
{
.name = "u-boot",
.size = 0x3B0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
-
const struct flash_platform_data all0256n_flash = {
.type = "mx25l3205d",
-#ifdef CONFIG_MTD_PARTITIONS
.parts = all0256n_partitions,
.nr_parts = ARRAY_SIZE(all0256n_partitions),
-#endif
};
struct spi_board_info all0256n_spi_slave_info[] __initdata = {
}
};
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition argus_atp52b_partitions[] = {
{
.name = "bootloader",
.size = 0x690000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data argus_atp52b_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(argus_atp52b_partitions),
.parts = argus_atp52b_partitions,
-#endif
};
static void __init argus_atp52b_init(void)
#define BC2_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition bc2_partitions[] = {
{
.name = "u-boot",
.size = 0x7b0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data bc2_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(bc2_partitions),
.parts = bc2_partitions,
-#endif
};
static struct gpio_led bc2_leds_gpio[] __initdata = {
#define DIR_300B_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition dir_300b_partitions[] = {
{
.name = "u-boot",
.size = 0x3b0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data dir_300b_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(dir_300b_partitions),
.parts = dir_300b_partitions,
-#endif
};
static struct gpio_led dir_300b_leds_gpio[] __initdata = {
#define ESR_9753_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition esr_9753_partitions[] = {
{
.name = "u-boot",
.size = 0x3b0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data esr_9753_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(esr_9753_partitions),
.parts = esr_9753_partitions,
-#endif
};
static struct gpio_led esr_9753_leds_gpio[] __initdata = {
}
};
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition f5d8235v2_partitions[] = {
{
.name = "u-boot",
.size = 0x010000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data f5d8235v2_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(f5d8235v2_partitions),
.parts = f5d8235v2_partitions,
-#endif
};
#define FONERA20N_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition fonera20n_partitions[] = {
{
.name = "u-boot",
.size = 0x7b0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data fonera20n_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(fonera20n_partitions),
.parts = fonera20n_partitions,
-#endif
};
static struct gpio_led fonera20n_leds_gpio[] __initdata = {
#define HW550_3G_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition hw550_3g_partitions[] = {
{
.name = "u-boot",
.size = 0x7b0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data hw550_3g_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(hw550_3g_partitions),
.parts = hw550_3g_partitions,
-#endif
};
static struct gpio_led hw550_3g_leds_gpio[] __initdata = {
#define MOFI3500_3GN_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition mofi3500_3gn_partitions[] = {
{
.name = "u-boot",
.size = 0x7b0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data mofi3500_3gn_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(mofi3500_3gn_partitions),
.parts = mofi3500_3gn_partitions,
-#endif
};
static struct gpio_led mofi3500_3gn_leds_gpio[] __initdata = {
#define NBG_419N_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition nbg_419n_partitions[] = {
{
.name = "u-boot",
.size = 0x3b0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data nbg_419n_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(nbg_419n_partitions),
.parts = nbg_419n_partitions,
-#endif
};
static struct gpio_led nbg_419n_leds_gpio[] __initdata = {
#define NW718_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition nw718_partitions[] = {
{
.name = "u-boot",
.size = 0x3a0000,
}
};
-#define nw718_nr_parts ARRAY_SIZE(nw718_partitions)
-#else
-#define nw718_nr_parts 0
-#define nw718_partitions NULL
-#endif /* CONFIG_MTD_PARTITIONS */
static struct flash_platform_data nw718_flash_data = {
- .nr_parts = nw718_nr_parts,
+ .nr_parts = ARRAY_SIZE(nw718_partitions),
.parts = nw718_partitions,
};
#define OMNI_EMB_GPIO_LED_STATUS 9
#define OMNI_EMB_GPIO_LED_WLAN 14
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition emb_partitions[] = {
{
.name = "uboot",
.size = 0x7B0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data omni_emb_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(emb_partitions),
.parts = emb_partitions,
-#endif
};
static struct gpio_led omni_emb_leds_gpio[] __initdata = {
#define PWH2004_GPIO_LED_WIFI 14
#define PWH2004_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition pwh2004_partitions[] = {
{
.name = "u-boot",
.size = 0x7b0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data pwh2004_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(pwh2004_partitions),
.parts = pwh2004_partitions,
-#endif
};
static struct gpio_led pwh2004_leds_gpio[] __initdata = {
#define RT_G32B_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition rt_g32b_partitions[] = {
{
.name = "u-boot",
.size = 0x3b0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
const struct flash_platform_data rt_g32b_flash = {
.type = "mx25l3205d",
-#ifdef CONFIG_MTD_PARTITIONS
.parts = rt_g32b_partitions,
.nr_parts = ARRAY_SIZE(rt_g32b_partitions),
-#endif
};
struct spi_board_info __initdata rt_g32b_spi_slave_info[] = {
#define V22RW_2X2_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition v22rw_2x2_partitions[] = {
{
.name = "u-boot",
.size = 0x3b0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data v22rw_2x2_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(v22rw_2x2_partitions),
.parts = v22rw_2x2_partitions,
-#endif
};
static struct gpio_led v22rw_2x2_leds_gpio[] __initdata = {
#define W502U_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition w502u_partitions[] = {
{
.name = "u-boot",
.size = 0x7a0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data w502u_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(w502u_partitions),
.parts = w502u_partitions,
-#endif
};
static struct gpio_led w502u_leds_gpio[] __initdata = {
}
};
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition wcr150gn_partitions[] = {
{
.name = "bootloader",
.size = 0x3b0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data wcr150gn_flash_data = {
#ifdef CONFIG_MTD_PARTITIONS
#define WHR_G300N_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition whr_g300n_partitions[] = {
{
.name = "u-boot",
.size = 0x3a0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data whr_g300n_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(whr_g300n_partitions),
.parts = whr_g300n_partitions,
-#endif
};
static struct gpio_led whr_g300n_leds_gpio[] __initdata = {
#define WL341V3_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition wl341v3_partitions[] = {
{
.name = "u-boot",
.size = 0x400000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data wl341v3_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(wl341v3_partitions),
.parts = wl341v3_partitions,
-#endif
};
static struct gpio_led wl341v3_leds_gpio[] __initdata = {
}
};
-
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition wl351_partitions[] = {
{
.name = "u-boot",
.size = 0x3a0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data wl351_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(wl351_partitions),
.parts = wl351_partitions,
-#endif
};
#define WR512_3GN_BUTTONS_POLL_INTERVAL 20
-#ifdef CONFIG_MTD_PARTITIONS
-
static struct mtd_partition wr512_3gn_partitions[] = {
{
.name = "u-boot",
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
-
static struct physmap_flash_data wr512_3gn_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(wr512_3gn_partitions),
.parts = wr512_3gn_partitions,
-#endif
};
static struct gpio_led wr512_3gn_leds_gpio[] __initdata = {
#define WR6202_GPIO_LED_3G 13
#define WR6202_GPIO_LED_WPS 14
-#ifdef CONFIG_MTD_PARTITIONS
static struct mtd_partition wr6202_partitions[] = {
{
.name = "uboot",
.size = 0x6B0000,
}
};
-#endif /* CONFIG_MTD_PARTITIONS */
static struct physmap_flash_data wr6202_flash_data = {
-#ifdef CONFIG_MTD_PARTITIONS
.nr_parts = ARRAY_SIZE(wr6202_partitions),
.parts = wr6202_partitions,
-#endif
};
static struct gpio_led wr6202_leds_gpio[] __initdata = {