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

index 386dec8d2351635c2004e9ff082048c2a09264de,045596a3e899c54c0381d72bc8b4d16986658bce,513ed9e2db5a161a53dc68b13b0d0fb3cc46eaef..96fcc641aab7b61e96b8bf98b8b5f7c6a30c24b5
   
   #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 = {
index a0fa9bb2bda5bed7e952cd7639374c040d858fbc,71d7c07dd35006e9847970c70b5fddbc3a0b1a0e,c5f005e088a564c303cb1639d2bf32dc539c9997..b12a39e223fcd3d8effb7581d6d5d997e23aef55
   
   #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
index 398a827838480a41b4dbd71d4df4ed4b2a9d6e93,3ff893d4e6ce0d43a4e612e866b48dba5085d8c8,10ed992aaab2fb1a4b90617c41236fed0ee8e813..108ab1ab6606f132bf7add97667d82344f492773
   
   #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 {