Merge tags 'omap-devel-gpmc-fixed-for-v3.7' and 'cleanup-omap-tags-for-v3.7' into...
authorTony Lindgren <tony@atomide.com>
Thu, 13 Sep 2012 01:05:19 +0000 (18:05 -0700)
committerTony Lindgren <tony@atomide.com>
Thu, 13 Sep 2012 01:05:19 +0000 (18:05 -0700)
Changes for GPMC (General Purpose Memory Controller) that take it
closer for being just a regular device driver.

Remove the ancient omap specific atags that are no longer needed.

At some point we were planning to pass the bootloader information
with custom atags that did not work out too well.

There's no need for these any longer as the kernel has been booting
fine without them for quite some time. And Now we have device tree
support that can be used instead.

1  2  3 
arch/arm/mach-omap2/gpmc-nand.c
arch/arm/mach-omap2/gpmc-onenand.c
arch/arm/mach-omap2/serial.c
arch/arm/mach-ux500/board-mop500.c
drivers/mtd/onenand/omap2.c

   
   #include <plat/cpu.h>
   #include <plat/nand.h>
-- #include <plat/board.h>
   #include <plat/gpmc.h>
   
- -static struct resource gpmc_nand_resource = {
- -     .flags          = IORESOURCE_MEM,
+ +static struct resource gpmc_nand_resource[] = {
+ +     {
+ +             .flags          = IORESOURCE_MEM,
+ +     },
+ +     {
+ +             .flags          = IORESOURCE_IRQ,
+ +     },
+ +     {
+ +             .flags          = IORESOURCE_IRQ,
+ +     },
   };
   
   static struct platform_device gpmc_nand_device = {
   
   #include <plat/cpu.h>
   #include <plat/onenand.h>
-- #include <plat/board.h>
   #include <plat/gpmc.h>
   
+ +#define      ONENAND_IO_SIZE SZ_128K
+ +
   static struct omap_onenand_platform_data *gpmc_onenand_data;
   
+ +static struct resource gpmc_onenand_resource = {
+ +     .flags          = IORESOURCE_MEM,
+ +};
+ +
   static struct platform_device gpmc_onenand_device = {
        .name           = "omap2-onenand",
        .id             = -1,
Simple merge
Simple merge
   
   #include <plat/dma.h>
   
-- #include <plat/board.h>
-- 
   #define DRIVER_NAME "omap2-onenand"
   
- -#define ONENAND_IO_SIZE              SZ_128K
   #define ONENAND_BUFRAM_SIZE  (1024 * 5)
   
   struct omap2_onenand {