SPI platform device consolidation
Subsystems (3)
v2 cover SPI platform device consolidation
SPI platform devices are defined in respective machine folder of Samsung S3C64XX and S5P series SoCs.This patchset moves S3C64XX and S5P series of SPI platform devices to a common place plat-samsung. This patchset also creates SPI setup files for GPIO configurations and platform data initialization.
V2 Changes:
Platform data initialized in a centralized setup file as suggested-by Mark Brown
SPI Controller number is added in SPI controller defining structure.
Padmavathi Venna (6):
ARM: SAMSUNG: Consolidation of SPI platform devices to plat-samsung
ARM: S3C64XX: Modified files for SPI consolidation work
ARM: S5PC100: Modified files for SPI consolidation work.
ARM: S5P64X0: Modified files for SPI consolidation work
ARM: S5PV210: Modified files for SPI consolidation work
The following patch make the corresponding SPI changes required for Wolfson Cragganmore S3C6410 variant. This patch is only build tested.
ARM: S3C64XX: Modified according to SPI consolidation work.
arch/arm/mach-s3c64xx/Kconfig | 8 +- arch/arm/mach-s3c64xx/Makefile | 2 +- arch/arm/mach-s3c64xx/dev-spi.c | 172 ----------------- arch/arm/mach-s3c64xx/include/mach/map.h | 2 + arch/arm/mach-s3c64xx/setup-spi.c | 47 +++++ arch/arm/mach-s5p64x0/Kconfig | 7 +- arch/arm/mach-s5p64x0/Makefile | 2 +- arch/arm/mach-s5p64x0/dev-spi.c | 218 --------------------- arch/arm/mach-s5p64x0/include/mach/map.h | 3 + arch/arm/mach-s5p64x0/setup-spi.c | 57 ++++++ arch/arm/mach-s5pc100/Kconfig | 5 + arch/arm/mach-s5pc100/Makefile | 2 +- arch/arm/mach-s5pc100/dev-spi.c | 220 ---------------------- arch/arm/mach-s5pc100/include/mach/map.h | 3 + arch/arm/mach-s5pc100/setup-spi.c | 68 +++++++ arch/arm/mach-s5pv210/Kconfig | 5 + arch/arm/mach-s5pv210/Makefile | 2 +- arch/arm/mach-s5pv210/dev-spi.c | 169 ----------------- arch/arm/mach-s5pv210/include/mach/map.h | 2 + arch/arm/mach-s5pv210/setup-spi.c | 53 +++++ arch/arm/plat-samsung/Kconfig | 14 ++- arch/arm/plat-samsung/devs.c | 106 +++++++++++ arch/arm/plat-samsung/include/plat/devs.h | 8 +- arch/arm/plat-samsung/include/plat/s3c64xx-spi.h | 20 ++- 24 files changed, 395 insertions(+), 800 deletions(-) delete mode 100644 arch/arm/mach-s3c64xx/dev-spi.c create mode 100644 arch/arm/mach-s3c64xx/setup-spi.c delete mode 100644 arch/arm/mach-s5p64x0/dev-spi.c create mode 100644 arch/arm/mach-s5p64x0/setup-spi.c delete mode 100644 arch/arm/mach-s5pc100/dev-spi.c create mode 100644 arch/arm/mach-s5pc100/setup-spi.c delete mode 100644 arch/arm/mach-s5pv210/dev-spi.c create mode 100644 arch/arm/mach-s5pv210/setup-spi.c
PATCH v2 1/6 ARM: SAMSUNG: Consolidation of SPI platform devices to plat-samsung
SPI platform device definitions consolidated from respective machine folder to plat-samsung
--- arch/arm/mach-s3c64xx/Makefile | 1 - arch/arm/mach-s3c64xx/dev-spi.c | 172 ----------------- arch/arm/mach-s5p64x0/Makefile | 1 - arch/arm/mach-s5p64x0/dev-spi.c | 218 --------------------- arch/arm/mach-s5pc100/Makefile | 1 - arch/arm/mach-s5pc100/dev-spi.c | 220 ---------------------- arch/arm/mach-s5pv210/Makefile | 1 - arch/arm/mach-s5pv210/dev-spi.c | 169 ----------------- arch/arm/plat-samsung/Kconfig | 14 ++- arch/arm/plat-samsung/devs.c | 106 +++++++++++ arch/arm/plat-samsung/include/plat/devs.h | 8 +- arch/arm/plat-samsung/include/plat/s3c64xx-spi.h | 13 +- 12 files changed, 126 insertions(+), 798 deletions(-) delete mode 100644 arch/arm/mach-s3c64xx/dev-spi.c delete mode 100644 arch/arm/mach-s5p64x0/dev-spi.c delete mode 100644 arch/arm/mach-s5pc100/dev-spi.c delete mode 100644 arch/arm/mach-s5pv210/dev-spi.c
arch/arm/mach-s3c64xx/Makefile +0 -1
@@ -59,4 +59,3 @@ obj-$(CONFIG_MACH_WLF_CRAGG_6410) += mach-crag6410.o mach-crag6410-module.o obj-y += dev-uart.o obj-y += dev-audio.o -obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o
arch/arm/mach-s3c64xx/dev-spi.c deleted +0 -172
172 lines not on this page · raw message
arch/arm/mach-s5p64x0/Makefile +0 -1
@@ -26,7 +26,6 @@ obj-$(CONFIG_MACH_SMDK6450) += mach-smdk6450.o # device support obj-y += dev-audio.o -obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o obj-$(CONFIG_S5P64X0_SETUP_I2C1) += setup-i2c1.o obj-$(CONFIG_S5P64X0_SETUP_FB_24BPP) += setup-fb-24bpp.o
arch/arm/mach-s5p64x0/dev-spi.c deleted +0 -218
218 lines not on this page · raw message
arch/arm/mach-s5pc100/Makefile +0 -1
@@ -25,7 +25,6 @@ obj-$(CONFIG_S5PC100_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o # device support obj-y += dev-audio.o -obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o # machine support
arch/arm/mach-s5pc100/dev-spi.c deleted +0 -220
220 lines not on this page · raw message
arch/arm/mach-s5pv210/Makefile +0 -1
@@ -27,7 +27,6 @@ obj-$(CONFIG_MACH_TORBRECK) += mach-torbreck.o # device support obj-y += dev-audio.o -obj-$(CONFIG_S3C64XX_DEV_SPI) += dev-spi.o obj-$(CONFIG_S5PV210_SETUP_FB_24BPP) += setup-fb-24bpp.o obj-$(CONFIG_S5PV210_SETUP_FIMC) += setup-fimc.o
arch/arm/mach-s5pv210/dev-spi.c deleted +0 -169
169 lines not on this page · raw message
arch/arm/plat-samsung/Kconfig +13 -1
@@ -234,7 +234,19 @@ config SAMSUNG_DEV_IDE help Compile in platform device definitions for IDE -config S3C64XX_DEV_SPI +config S3C64XX_DEV_SPI0 + bool + help + Compile in platform device definitions for S3C64XX's type + SPI controllers. + +config S3C64XX_DEV_SPI1 + bool + help + Compile in platform device definitions for S3C64XX's type + SPI controllers. + +config S3C64XX_DEV_SPI2 bool help Compile in platform device definitions for S3C64XX's type
arch/arm/plat-samsung/devs.c +106 -0
115 lines not on this page · raw message
arch/arm/plat-samsung/include/plat/devs.h +1 -7
@@ -39,6 +39,7 @@ extern struct platform_device s3c64xx_device_pcm0;extern struct platform_device s3c64xx_device_pcm1;extern struct platform_device s3c64xx_device_spi0;extern struct platform_device s3c64xx_device_spi1; +extern struct platform_device s3c64xx_device_spi2;extern struct platform_device s3c_device_adc;extern struct platform_device s3c_device_cfcon;
@@ -98,8 +99,6 @@ extern struct platform_device s5p6450_device_iis1;extern struct platform_device s5p6450_device_iis2;extern struct platform_device s5p6450_device_pcm0; -extern struct platform_device s5p64x0_device_spi0; -extern struct platform_device s5p64x0_device_spi1;extern struct platform_device s5pc100_device_ac97;extern struct platform_device s5pc100_device_iis0;
@@ -108,9 +107,6 @@ extern struct platform_device s5pc100_device_iis2;extern struct platform_device s5pc100_device_pcm0;extern struct platform_device s5pc100_device_pcm1;extern struct platform_device s5pc100_device_spdif; -extern struct platform_device s5pc100_device_spi0; -extern struct platform_device s5pc100_device_spi1; -extern struct platform_device s5pc100_device_spi2;extern struct platform_device s5pv210_device_ac97;extern struct platform_device s5pv210_device_iis0;
@@ -120,8 +116,6 @@ extern struct platform_device s5pv210_device_pcm0;extern struct platform_device s5pv210_device_pcm1;extern struct platform_device s5pv210_device_pcm2;extern struct platform_device s5pv210_device_spdif; -extern struct platform_device s5pv210_device_spi0; -extern struct platform_device s5pv210_device_spi1;extern struct platform_device exynos4_device_ac97;extern struct platform_device exynos4_device_ahci;
arch/arm/plat-samsung/include/plat/s3c64xx-spi.h +6 -7
@@ -39,6 +39,7 @@ struct s3c64xx_spi_csinfo {* @rx_lvl_offset: Depends on tx fifo_lvl field and bus number * @high_speed: If the controller supports HIGH_SPEED_EN bit * @tx_st_done: Depends on tx fifo_lvl field +* @cntrlr_no: Controller number */ struct s3c64xx_spi_info {int src_clk_nr;
@@ -53,21 +54,19 @@ struct s3c64xx_spi_info {int rx_lvl_offset;int high_speed;int tx_st_done; + int cntrlr_no; };/** -* s3c64xx_spi_set_info - SPI Controller configure callback by the board +* s3c64xx_spi_set_platdata - SPI Controller configure callback by the board * initialization code. -* @cntrlr: SPI controller number the configuration is for. +* @pd: SPI platform data to set. * @src_clk_nr: Clock the SPI controller is to use to generate SPI clocks. * @num_cs: Number of elements in the 'cs' array. * * Call this from machine init code for each SPI Controller that * has some chips attached to it. */ -extern void s3c64xx_spi_set_info (int cntrlr,int src_clk_nr,int num_cs); -extern void s5pc100_spi_set_info (int cntrlr,int src_clk_nr,int num_cs); -extern void s5pv210_spi_set_info (int cntrlr,int src_clk_nr,int num_cs); -extern void s5p64x0_spi_set_info (int cntrlr,int src_clk_nr,int num_cs); - +extern void s3c64xx_spi_set_platdata (struct s3c64xx_spi_info *pd, +int src_clk_nr,int num_cs);#endif /* __S3C64XX_PLAT_SPI_H */
Signature · 1 line
1.7.1
PATCH v2 2/6 ARM: S3C64XX: Modified files for SPI consolidation work
In reply to Padmavathi VennaAs SPI platform devices are consolidated to plat-samsung, some corresponding changes are required in the respective machine folder. Setup files are added for SPI GPIO configurations and platform data initialization.
--- arch/arm/mach-s3c64xx/Kconfig | 5 ++ arch/arm/mach-s3c64xx/Makefile | 1 + arch/arm/mach-s3c64xx/include/mach/map.h | 2 + arch/arm/mach-s3c64xx/setup-spi.c | 47 ++++++++++++++++++++++ arch/arm/plat-samsung/include/plat/s3c64xx-spi.h | 7 +++ 5 files changed, 62 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-s3c64xx/setup-spi.c
arch/arm/mach-s3c64xx/Kconfig +5 -0
@@ -77,6 +77,11 @@ config S3C64XX_SETUP_SDHCI_GPIO help Common setup code for S3C64XX SDHCI GPIO configurations +config S3C64XX_SETUP_SPI + bool + help + Common setup code for SPI GPIO configurations + # S36400 Macchine support config MACH_SMDK6400
arch/arm/mach-s3c64xx/Makefile +1 -0
@@ -34,6 +34,7 @@ obj-$(CONFIG_S3C64XX_SETUP_IDE) += setup-ide.o obj-$(CONFIG_S3C64XX_SETUP_KEYPAD) += setup-keypad.o obj-$(CONFIG_S3C64XX_SETUP_FB_24BPP) += setup-fb-24bpp.o obj-$(CONFIG_S3C64XX_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o +obj-$(CONFIG_S3C64XX_SETUP_SPI) += setup-spi.o # PM
arch/arm/mach-s3c64xx/include/mach/map.h +2 -0
@@ -115,6 +115,8 @@#define S3C_PA_USB_HSOTG S3C64XX_PA_USB_HSOTG#define S3C_PA_RTC S3C64XX_PA_RTC#define S3C_PA_WDT S3C64XX_PA_WATCHDOG +#define S3C_PA_SPI0 S3C64XX_PA_SPI0 +#define S3C_PA_SPI1 S3C64XX_PA_SPI1#define SAMSUNG_PA_ADC S3C64XX_PA_ADC#define SAMSUNG_PA_CFCON S3C64XX_PA_CFCON
arch/arm/mach-s3c64xx/setup-spi.c new file +47 -0
47 lines not on this page · raw message
arch/arm/plat-samsung/include/plat/s3c64xx-spi.h +7 -0
@@ -69,4 +69,11 @@ struct s3c64xx_spi_info {*/ extern void s3c64xx_spi_set_platdata (struct s3c64xx_spi_info *pd,int src_clk_nr,int num_cs); + +/* defined by architecture to configure gpio */ +extern int s3c64xx_spi0_cfg_gpio (struct platform_device *dev); +extern int s3c64xx_spi1_cfg_gpio (struct platform_device *dev); + +extern struct s3c64xx_spi_info s3c64xx_spi0_pdata; +extern struct s3c64xx_spi_info s3c64xx_spi1_pdata;#endif /* __S3C64XX_PLAT_SPI_H */
Signature · 1 line
1.7.1
PATCH v2 3/6 ARM: S5PC100: Modified files for SPI consolidation work.
In reply to Padmavathi VennaAs SPI platform devices are consolidated to plat-samsung, some corresponding changes are required in the respective machine folder. Setup files are added for SPI GPIO configurations and platform data initialization.
--- arch/arm/mach-s5pc100/Kconfig | 5 ++ arch/arm/mach-s5pc100/Makefile | 1 + arch/arm/mach-s5pc100/include/mach/map.h | 3 + arch/arm/mach-s5pc100/setup-spi.c | 68 ++++++++++++++++++++++ arch/arm/plat-samsung/include/plat/s3c64xx-spi.h | 2 + 5 files changed, 79 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-s5pc100/setup-spi.c
arch/arm/mach-s5pc100/Kconfig +5 -0
@@ -45,6 +45,11 @@ config S5PC100_SETUP_SDHCI_GPIO help Common setup code for SDHCI gpio. +config S5PC100_SETUP_SPI + bool + help + Common setup code for SPI GPIO configurations. + config MACH_SMDKC100 bool "SMDKC100" select CPU_S5PC100
arch/arm/mach-s5pc100/Makefile +1 -0
@@ -22,6 +22,7 @@ obj-$(CONFIG_S5PC100_SETUP_I2C1) += setup-i2c1.o obj-$(CONFIG_S5PC100_SETUP_IDE) += setup-ide.o obj-$(CONFIG_S5PC100_SETUP_KEYPAD) += setup-keypad.o obj-$(CONFIG_S5PC100_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o +obj-$(CONFIG_S5PC100_SETUP_SPI) += setup-spi.o # device support obj-y += dev-audio.o
arch/arm/mach-s5pc100/include/mach/map.h +3 -0
@@ -100,6 +100,9 @@#define S3C_PA_USB_HSOTG S5PC100_PA_USB_HSOTG#define S3C_PA_USB_HSPHY S5PC100_PA_USB_HSPHY#define S3C_PA_WDT S5PC100_PA_WATCHDOG +#define S3C_PA_SPI0 S5PC100_PA_SPI0 +#define S3C_PA_SPI1 S5PC100_PA_SPI1 +#define S3C_PA_SPI2 S5PC100_PA_SPI2#define S5P_PA_CHIPID S5PC100_PA_CHIPID#define S5P_PA_FIMC0 S5PC100_PA_FIMC0
arch/arm/mach-s5pc100/setup-spi.c new file +68 -0
68 lines not on this page · raw message
arch/arm/plat-samsung/include/plat/s3c64xx-spi.h +2 -0
@@ -73,7 +73,9 @@ extern void s3c64xx_spi_set_platdata(struct s3c64xx_spi_info *pd,/* defined by architecture to configure gpio */ extern int s3c64xx_spi0_cfg_gpio (struct platform_device *dev);extern int s3c64xx_spi1_cfg_gpio (struct platform_device *dev); +extern int s3c64xx_spi2_cfg_gpio (struct platform_device *dev);extern struct s3c64xx_spi_info s3c64xx_spi0_pdata;extern struct s3c64xx_spi_info s3c64xx_spi1_pdata; +extern struct s3c64xx_spi_info s3c64xx_spi2_pdata;#endif /* __S3C64XX_PLAT_SPI_H */
Signature · 1 line
1.7.1
PATCH v2 4/6 ARM: S5P64X0: Modified files for SPI consolidation work
In reply to Padmavathi VennaAs SPI platform devices are consolidated to plat-samsung, some corresponding changes are required in the respective machine folder. Setup files are added for SPI GPIO configurations and platform data initialization.
--- arch/arm/mach-s5p64x0/Kconfig | 7 +++- arch/arm/mach-s5p64x0/Makefile | 1 + arch/arm/mach-s5p64x0/include/mach/map.h | 3 ++ arch/arm/mach-s5p64x0/setup-spi.c | 57 ++++++++++++++++++++++++++++++ 4 files changed, 66 insertions(+), 2 deletions(-) create mode 100644 arch/arm/mach-s5p64x0/setup-spi.c
arch/arm/mach-s5p64x0/Kconfig +5 -2
@@ -36,6 +36,11 @@ config S5P64X0_SETUP_I2C1 help Common setup code for i2c bus 1. +config S5P64X0_SETUP_SPI + bool + help + Common setup code for SPI GPIO configurations + # machine support config MACH_SMDK6440
@@ -45,7 +50,6 @@ config MACH_SMDK6440 select S3C_DEV_I2C1 select S3C_DEV_RTC select S3C_DEV_WDT - select S3C64XX_DEV_SPI select SAMSUNG_DEV_ADC select SAMSUNG_DEV_BACKLIGHT select SAMSUNG_DEV_PWM
@@ -62,7 +66,6 @@ config MACH_SMDK6450 select S3C_DEV_I2C1 select S3C_DEV_RTC select S3C_DEV_WDT - select S3C64XX_DEV_SPI select SAMSUNG_DEV_ADC select SAMSUNG_DEV_BACKLIGHT select SAMSUNG_DEV_PWM
arch/arm/mach-s5p64x0/Makefile +1 -0
@@ -29,3 +29,4 @@ obj-y += dev-audio.o obj-$(CONFIG_S5P64X0_SETUP_I2C1) += setup-i2c1.o obj-$(CONFIG_S5P64X0_SETUP_FB_24BPP) += setup-fb-24bpp.o +obj-$(CONFIG_S5P64X0_SETUP_SPI) += setup-spi.o
arch/arm/mach-s5p64x0/include/mach/map.h +3 -0
@@ -67,6 +67,8 @@#define S3C_PA_RTC S5P64X0_PA_RTC#define S3C_PA_WDT S5P64X0_PA_WDT#define S3C_PA_FB S5P64X0_PA_FB +#define S3C_PA_SPI0 S5P64X0_PA_SPI0 +#define S3C_PA_SPI1 S5P64X0_PA_SPI1#define S5P_PA_CHIPID S5P64X0_PA_CHIPID#define S5P_PA_SROMC S5P64X0_PA_SROMC
@@ -75,6 +77,7 @@#define SAMSUNG_PA_ADC S5P64X0_PA_ADC +/* UART */ #define S5P6440_PA_UART (x) (0xEC000000 + ((x) * S3C_UART_OFFSET))
arch/arm/mach-s5p64x0/setup-spi.c new file +57 -0
57 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH v2 5/6 ARM: S5PV210: Modified files for SPI consolidation work
In reply to Padmavathi VennaAs SPI platform devices are consolidated to plat-samsung, some corresponding changes are required in the respective machine folder. Setup files are added for SPI GPIO configurations and platform data initialization.
--- arch/arm/mach-s5pv210/Kconfig | 5 +++ arch/arm/mach-s5pv210/Makefile | 1 + arch/arm/mach-s5pv210/include/mach/map.h | 2 + arch/arm/mach-s5pv210/setup-spi.c | 53 ++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+), 0 deletions(-) create mode 100644 arch/arm/mach-s5pv210/setup-spi.c
arch/arm/mach-s5pv210/Kconfig +5 -0
@@ -60,6 +60,11 @@ config S5PV210_SETUP_FIMC help Common setup code for the camera interfaces. +config S5PV210_SETUP_SPI + bool + help + Common setup code for SPI GPIO configurations. + menu "S5PC110 Machines" config MACH_AQUILA
arch/arm/mach-s5pv210/Makefile +1 -0
@@ -35,3 +35,4 @@ obj-$(CONFIG_S5PV210_SETUP_I2C2) += setup-i2c2.o obj-$(CONFIG_S5PV210_SETUP_IDE) += setup-ide.o obj-$(CONFIG_S5PV210_SETUP_KEYPAD) += setup-keypad.o obj-$(CONFIG_S5PV210_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o +obj-$(CONFIG_S5PV210_SETUP_SPI) += setup-spi.o
arch/arm/mach-s5pv210/include/mach/map.h +2 -0
@@ -109,6 +109,8 @@#define S3C_PA_RTC S5PV210_PA_RTC#define S3C_PA_USB_HSOTG S5PV210_PA_HSOTG#define S3C_PA_WDT S5PV210_PA_WATCHDOG +#define S3C_PA_SPI0 S5PV210_PA_SPI0 +#define S3C_PA_SPI1 S5PV210_PA_SPI1#define S5P_PA_CHIPID S5PV210_PA_CHIPID#define S5P_PA_FIMC0 S5PV210_PA_FIMC0
arch/arm/mach-s5pv210/setup-spi.c new file +53 -0
53 lines not on this page · raw message
Signature · 1 line
1.7.1
PATCH v2 6/6 ARM: S3C64XX: Modified according to SPI consolidation work.
In reply to Padmavathi VennaAs SPI platform devices are consolidated to plat-samsung, some corresponding changes are required in the s3c6410 varient SoCs.
--- arch/arm/mach-s3c64xx/Kconfig | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/mach-s3c64xx/Kconfig +2 -1
@@ -281,6 +281,7 @@ config MACH_WLF_CRAGG_6410 select S3C64XX_SETUP_IDE select S3C64XX_SETUP_FB_24BPP select S3C64XX_SETUP_KEYPAD + select S3C64XX_SETUP_SPI select SAMSUNG_DEV_ADC select SAMSUNG_DEV_KEYPAD select S3C_DEV_USB_HOST
@@ -291,7 +292,7 @@ config MACH_WLF_CRAGG_6410 select S3C_DEV_I2C1 select S3C_DEV_WDT select S3C_DEV_RTC - select S3C64XX_DEV_SPI + select S3C64XX_DEV_SPI0 select SAMSUNG_GPIO_EXTRA128 select I2C help
Signature · 1 line
1.7.1
v2 cover SPI platform device consolidation
In reply to Padmavathi VennaQuoted 24 lines · Padmavathi Venna
SPI platform devices are defined in respective machine folder of Samsung S3C64XX and S5P series SoCs.This patchset moves S3C64XX and S5P series of SPI platform devices to a common place plat-samsung. This patchset also creates SPI setup files for GPIO configurations and platform data initialization.
V2 Changes:
Platform data initialized in a centralized setup file as suggested-by Mark Brown
SPI Controller number is added in SPI controller defining structure.Padmavathi Venna (6):
ARM: SAMSUNG: Consolidation of SPI platform devices to plat-samsung
ARM: S3C64XX: Modified files for SPI consolidation work
ARM: S5PC100: Modified files for SPI consolidation work.
ARM: S5P64X0: Modified files for SPI consolidation work
ARM: S5PV210: Modified files for SPI consolidation workThe following patch make the corresponding SPI changes required for Wolfson Cragganmore S3C6410 variant. This patch is only build tested.
ARM: S3C64XX: Modified according to SPI consolidation work.
Quoted 8 lines
arch/arm/mach-s3c64xx/Kconfig | 8 +- arch/arm/mach-s3c64xx/Makefile | 2 +- arch/arm/mach-s3c64xx/dev-spi.c | 172 ----------------- arch/arm/mach-s3c64xx/include/mach/map.h | 2 + arch/arm/mach-s3c64xx/setup-spi.c | 47 +++++ arch/arm/mach-s5p64x0/Kconfig | 7 +- arch/arm/mach-s5p64x0/Makefile | 2 +- arch/arm/mach-s5p64x0/dev-spi.c | 218
---------------------
Quoted 5 lines
arch/arm/mach-s5p64x0/include/mach/map.h | 3 + arch/arm/mach-s5p64x0/setup-spi.c | 57 ++++++ arch/arm/mach-s5pc100/Kconfig | 5 + arch/arm/mach-s5pc100/Makefile | 2 +- arch/arm/mach-s5pc100/dev-spi.c | 220
----------------------
Quoted 12 lines
arch/arm/mach-s5pc100/include/mach/map.h | 3 + arch/arm/mach-s5pc100/setup-spi.c | 68 +++++++ arch/arm/mach-s5pv210/Kconfig | 5 + arch/arm/mach-s5pv210/Makefile | 2 +- arch/arm/mach-s5pv210/dev-spi.c | 169 ----------------- arch/arm/mach-s5pv210/include/mach/map.h | 2 + arch/arm/mach-s5pv210/setup-spi.c | 53 +++++ arch/arm/plat-samsung/Kconfig | 14 ++- arch/arm/plat-samsung/devs.c | 106 +++++++++++ arch/arm/plat-samsung/include/plat/devs.h | 8 +- arch/arm/plat-samsung/include/plat/s3c64xx-spi.h | 20 ++- 24 files changed, 395 insertions(+), 800 deletions(-)
Quoted 8 lines
delete mode 100644 arch/arm/mach-s3c64xx/dev-spi.c create mode 100644 arch/arm/mach-s3c64xx/setup-spi.c delete mode 100644 arch/arm/mach-s5p64x0/dev-spi.c create mode 100644 arch/arm/mach-s5p64x0/setup-spi.c delete mode 100644 arch/arm/mach-s5pc100/dev-spi.c create mode 100644 arch/arm/mach-s5pc100/setup-spi.c delete mode 100644 arch/arm/mach-s5pv210/dev-spi.c create mode 100644 arch/arm/mach-s5pv210/setup-spi.c
Hi Padma,
Sorry for late response.
Basically, looks good to me, but need to re-submit because of following.
You need to just move 'resource's and 'platform_device's from each dev-spi.c file into plat-samsung/devs.c in your 1st patch then move 'gpio setup' to each setup-spi.c files in other patches.
I think, above ensures bisect of your patches :)
Thanks.
Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.