diff options
author | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-12-03 18:13:25 +0000 |
---|---|---|
committer | juhosg <juhosg@3c298f89-4303-0410-b956-a3cf2f4a3e73> | 2011-12-03 18:13:25 +0000 |
commit | 37a46ae9f4ae5d23ea3ac362d8012ccf6e9f64f6 (patch) | |
tree | 7d9b36b7860e7ad941e696a797da1b4c749835e6 /target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c | |
parent | 23c921bb91c80688b07119b1513e05c8f56526db (diff) |
ar71xx: run the RedBoot parser only on the RedBoot based boards
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@29414 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c index 230bf78ed..d1e49eef0 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-eap7660d.c @@ -153,6 +153,15 @@ static struct gpio_keys_button eap7660d_gpio_keys[] __initdata = { } }; +static const char *eap7660d_part_probes[] = { + "RedBoot", + NULL, +}; + +static struct flash_platform_data eap7660d_flash_data = { + .part_probes = eap7660d_part_probes, +}; + static void __init eap7660d_setup(void) { u8 *boardconfig = (u8 *) KSEG1ADDR(EAP7660D_BOARDCONFIG); @@ -164,7 +173,7 @@ static void __init eap7660d_setup(void) ar71xx_eth0_data.phy_if_mode = PHY_INTERFACE_MODE_RGMII; ar71xx_eth0_data.phy_mask = EAP7660D_PHYMASK; ar71xx_add_device_eth(0); - ar71xx_add_device_m25p80(NULL); + ar71xx_add_device_m25p80(&eap7660d_flash_data); ar71xx_add_device_leds_gpio(-1, ARRAY_SIZE(eap7660d_leds_gpio), eap7660d_leds_gpio); ar71xx_register_gpio_keys_polled(-1, EAP7660D_KEYS_POLL_INTERVAL, |