use physmap-flash on livebox (#8677)
authorFlorian Fainelli <florian@openwrt.org>
Wed, 11 Jul 2012 09:15:22 +0000 (09:15 +0000)
committerFlorian Fainelli <florian@openwrt.org>
Wed, 11 Jul 2012 09:15:22 +0000 (09:15 +0000)
SVN-Revision: 32660

target/linux/brcm63xx/patches-3.3/513-board_livebox.patch

index d3364206907db5369c93a5ddc436f050540e7720..3305e927135c59885f3c992c6b6c1298f503913d 100644 (file)
@@ -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
 +              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 */
 +};
 +
 +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;