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-ja76pf.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-ja76pf.c')
-rw-r--r-- | target/linux/ar71xx/files/arch/mips/ar71xx/mach-ja76pf.c | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ja76pf.c b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ja76pf.c index 0e21fdb58..e972a1bdc 100644 --- a/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ja76pf.c +++ b/target/linux/ar71xx/files/arch/mips/ar71xx/mach-ja76pf.c @@ -65,13 +65,22 @@ static struct platform_device ja76pf_i2c_gpio_device = { } }; +static const char *ja76pf_part_probes[] = { + "RedBoot", + NULL, +}; + +static struct flash_platform_data ja76pf_flash_data = { + .part_probes = ja76pf_part_probes, +}; + #define JA76PF_WAN_PHYMASK (1 << 4) #define JA76PF_LAN_PHYMASK ((1 << 0) | (1 << 1) | (1 << 2) | (1 < 3)) #define JA76PF_MDIO_PHYMASK (JA76PF_LAN_PHYMASK | JA76PF_WAN_PHYMASK) static void __init ja76pf_init(void) { - ar71xx_add_device_m25p80(NULL); + ar71xx_add_device_m25p80(&ja76pf_flash_data); ar71xx_add_device_mdio(0, ~JA76PF_MDIO_PHYMASK); |