diff options
author | Florian Fainelli <florian@openwrt.org> | 2012-07-11 09:15:22 +0000 |
---|---|---|
committer | Florian Fainelli <florian@openwrt.org> | 2012-07-11 09:15:22 +0000 |
commit | f8446c3d4c9c7807623a640ed9f05fd85fb5916b (patch) | |
tree | 08f2247b52a15a33626125ac387a65fae001c8a7 /target/linux | |
parent | 8765e49fbeb61447a01003a92ab54ce883a88389 (diff) | |
download | upstream-f8446c3d4c9c7807623a640ed9f05fd85fb5916b.tar.gz upstream-f8446c3d4c9c7807623a640ed9f05fd85fb5916b.tar.bz2 upstream-f8446c3d4c9c7807623a640ed9f05fd85fb5916b.zip |
use physmap-flash on livebox (#8677)
SVN-Revision: 32660
Diffstat (limited to 'target/linux')
-rw-r--r-- | target/linux/brcm63xx/patches-3.3/513-board_livebox.patch | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/target/linux/brcm63xx/patches-3.3/513-board_livebox.patch b/target/linux/brcm63xx/patches-3.3/513-board_livebox.patch index d336420690..3305e92713 100644 --- a/target/linux/brcm63xx/patches-3.3/513-board_livebox.patch +++ b/target/linux/brcm63xx/patches-3.3/513-board_livebox.patch @@ -20,7 +20,7 @@ ccflags-y := -Werror --- /dev/null +++ b/arch/mips/bcm63xx/boards/board_livebox.c -@@ -0,0 +1,366 @@ +@@ -0,0 +1,373 @@ +/* + * This file is subject to the terms and conditions of the GNU General Public + * License. See the file "COPYING" in the main directory of this archive @@ -273,6 +273,10 @@ + panic("unexpected CPU for bcm963xx board"); +} + ++static struct physmap_flash_data flash_data = { ++ .width = 2, ++}; ++ +static struct resource mtd_resources[] = { + { + .start = 0, /* filled at runtime */ @@ -282,9 +286,12 @@ +}; + +static struct platform_device mtd_dev = { -+ .name = "bcm963xx-flash", -+ .resource = mtd_resources, -+ .num_resources = ARRAY_SIZE(mtd_resources), ++ .name = "physmap-flash", ++ .resource = mtd_resources, ++ .num_resources = ARRAY_SIZE(mtd_resources), ++ .dev = { ++ .platform_data = &flash_data, ++ }, +}; + +static struct gpio_led_platform_data bcm63xx_led_data; |