Skip to content

Commit 1306b20

Browse files
committed
Merge tag 'omap-for-v3.19/gpmc-move-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap into next/omap-gpmc
Pull "move omap gpmc to drivers finally" from Tony Lindgren: We can finally move the GPMC code to live in drivers/memory for further clean up work. Note that we still have dependencies to the legacy booting for omap3 board-*.c files for setting up the board specific memory timings. For that we need the timing related things still exposed in include/linux/omap-gpmc.h. This will all become private data to the GPMC driver once the legacy booting support can be dropped. * tag 'omap-for-v3.19/gpmc-move-v2' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: memory: gpmc: Move omap gpmc code to live under drivers ARM: OMAP2+: Move GPMC initcall to devices.c ARM: OMAP2+: Prepare to move GPMC to drivers by platform data header Signed-off-by: Arnd Bergmann <arnd@arndb.de>
2 parents 594b5d5 + 1864019 commit 1306b20

22 files changed

Lines changed: 316 additions & 324 deletions

‎MAINTAINERS‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6633,6 +6633,14 @@ L: linux-omap@vger.kernel.org
66336633
S: Maintained
66346634
F: sound/soc/omap/
66356635

6636+
OMAP GENERAL PURPOSE MEMORY CONTROLLER SUPPORT
6637+
M: Roger Quadros <rogerq@ti.com>
6638+
M: Tony Lindgren <tony@atomide.com>
6639+
L: linux-omap@vger.kernel.org
6640+
S: Maintained
6641+
F: drivers/memory/omap-gpmc.c
6642+
F: arch/arm/mach-omap2/*gpmc*
6643+
66366644
OMAP FRAMEBUFFER SUPPORT
66376645
M: Tomi Valkeinen <tomi.valkeinen@ti.com>
66386646
L: linux-fbdev@vger.kernel.org

‎arch/arm/mach-omap2/Kconfig‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ config ARCH_OMAP2PLUS
7979
select CLKSRC_MMIO
8080
select GENERIC_IRQ_CHIP
8181
select MACH_OMAP_GENERIC
82+
select MEMORY
8283
select OMAP_DM_TIMER
84+
select OMAP_GPMC
8385
select PINCTRL
8486
select SOC_BUS
8587
select TI_PRIV_EDMA

‎arch/arm/mach-omap2/Makefile‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ccflags-$(CONFIG_ARCH_MULTIPLATFORM) := -I$(srctree)/$(src)/include \
66
-I$(srctree)/arch/arm/plat-omap/include
77

88
# Common support
9-
obj-y := id.o io.o control.o mux.o devices.o fb.o serial.o gpmc.o timer.o pm.o \
9+
obj-y := id.o io.o control.o mux.o devices.o fb.o serial.o timer.o pm.o \
1010
common.o gpio.o dma.o wd_timer.o display.o i2c.o hdq1w.o omap_hwmod.o \
1111
omap_device.o sram.o drm.o
1212

‎arch/arm/mach-omap2/board-am3517crane.c‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <linux/mtd/mtd.h>
2525
#include <linux/mtd/nand.h>
2626
#include <linux/mtd/partitions.h>
27+
#include <linux/omap-gpmc.h>
2728

2829
#include <asm/mach-types.h>
2930
#include <asm/mach/arch.h>

‎arch/arm/mach-omap2/board-cm-t35.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#include <linux/input/matrix_keypad.h>
2626
#include <linux/delay.h>
2727
#include <linux/gpio.h>
28+
#include <linux/omap-gpmc.h>
2829
#include <linux/platform_data/gpio-omap.h>
2930

3031
#include <linux/platform_data/at24.h>
@@ -51,8 +52,6 @@
5152
#include "sdram-micron-mt46h32m32lf-6.h"
5253
#include "hsmmc.h"
5354
#include "common-board-devices.h"
54-
#include "gpmc.h"
55-
#include "gpmc-nand.h"
5655

5756
#define CM_T35_GPIO_PENDOWN 57
5857
#define SB_T35_USB_HUB_RESET_GPIO 167

‎arch/arm/mach-omap2/board-cm-t3517.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@
2828
#include <linux/delay.h>
2929
#include <linux/gpio.h>
3030
#include <linux/leds.h>
31+
#include <linux/omap-gpmc.h>
3132
#include <linux/rtc-v3020.h>
3233
#include <linux/mtd/mtd.h>
3334
#include <linux/mtd/nand.h>
@@ -41,7 +42,6 @@
4142

4243
#include "common.h"
4344
#include <linux/platform_data/mtd-nand-omap2.h>
44-
#include "gpmc.h"
4545

4646
#include "am35xx.h"
4747

@@ -50,7 +50,6 @@
5050
#include "hsmmc.h"
5151
#include "common-board-devices.h"
5252
#include "am35xx-emac.h"
53-
#include "gpmc-nand.h"
5453

5554
#if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)
5655
static struct gpio_led cm_t3517_leds[] = {

‎arch/arm/mach-omap2/board-flash.c‎

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
*/
1414

1515
#include <linux/kernel.h>
16+
#include <linux/omap-gpmc.h>
1617
#include <linux/platform_device.h>
1718
#include <linux/mtd/physmap.h>
1819
#include <linux/io.h>
@@ -23,8 +24,6 @@
2324
#include "soc.h"
2425
#include "common.h"
2526
#include "board-flash.h"
26-
#include "gpmc-onenand.h"
27-
#include "gpmc-nand.h"
2827

2928
#define REG_FPGA_REV 0x10
3029
#define REG_FPGA_DIP_SWITCH_INPUT2 0x60

‎arch/arm/mach-omap2/board-flash.h‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
*/
1313
#include <linux/mtd/mtd.h>
1414
#include <linux/mtd/partitions.h>
15-
#include "gpmc.h"
1615

1716
#define PDC_NOR 1
1817
#define PDC_NAND 2

‎arch/arm/mach-omap2/board-n8x0.c‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
#include <linux/spi/spi.h>
2323
#include <linux/usb/musb.h>
2424
#include <linux/platform_data/spi-omap2-mcspi.h>
25-
#include <linux/platform_data/mtd-onenand-omap2.h>
2625
#include <linux/mfd/menelaus.h>
2726
#include <sound/tlv320aic3x.h>
2827

@@ -32,7 +31,6 @@
3231
#include "common.h"
3332
#include "mmc.h"
3433
#include "soc.h"
35-
#include "gpmc-onenand.h"
3634
#include "common-board-devices.h"
3735

3836
#define TUSB6010_ASYNC_CS 1

‎arch/arm/mach-omap2/board-omap3pandora.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@
2424
#include <linux/spi/spi.h>
2525
#include <linux/regulator/machine.h>
2626
#include <linux/i2c/twl.h>
27+
#include <linux/omap-gpmc.h>
2728
#include <linux/wl12xx.h>
2829
#include <linux/mtd/partitions.h>
2930
#include <linux/mtd/nand.h>
@@ -51,7 +52,6 @@
5152
#include "sdram-micron-mt46h32m32lf-6.h"
5253
#include "hsmmc.h"
5354
#include "common-board-devices.h"
54-
#include "gpmc-nand.h"
5555

5656
#define PANDORA_WIFI_IRQ_GPIO 21
5757
#define PANDORA_WIFI_NRESET_GPIO 23

0 commit comments

Comments
 (0)