diff options
author | Padmavathi Venna <padma.v@samsung.com> | 2011-11-02 07:08:57 -0400 |
---|---|---|
committer | Kukjin Kim <kgene.kim@samsung.com> | 2011-12-22 20:10:46 -0500 |
commit | a153e31abb01484d0088ac28425dc98204848ad4 (patch) | |
tree | 3199daf288236296fb8f91579c48274aca4c8a7e /arch | |
parent | 8c4b8e718c9462c1beaa7db734bf5ec0b317ac8b (diff) |
ARM: SAMSUNG: Remove SPI bus clocks from platform data
SPI bus clocks can be avoided passing through platform
data as spi driver is getting the bus clock using the
generic clock connection id registered via clkdev.
Signed-off-by: Padmavathi Venna <padma.v@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
Diffstat (limited to 'arch')
-rw-r--r-- | arch/arm/mach-s3c64xx/dev-spi.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-s5p64x0/dev-spi.c | 6 | ||||
-rw-r--r-- | arch/arm/mach-s5pc100/dev-spi.c | 7 | ||||
-rw-r--r-- | arch/arm/mach-s5pv210/dev-spi.c | 6 | ||||
-rw-r--r-- | arch/arm/plat-samsung/include/plat/s3c64xx-spi.h | 2 |
5 files changed, 0 insertions, 28 deletions
diff --git a/arch/arm/mach-s3c64xx/dev-spi.c b/arch/arm/mach-s3c64xx/dev-spi.c index 3341fd118723..3f437e7a6ba5 100644 --- a/arch/arm/mach-s3c64xx/dev-spi.c +++ b/arch/arm/mach-s3c64xx/dev-spi.c | |||
@@ -24,12 +24,6 @@ | |||
24 | #include <plat/gpio-cfg.h> | 24 | #include <plat/gpio-cfg.h> |
25 | #include <plat/devs.h> | 25 | #include <plat/devs.h> |
26 | 26 | ||
27 | static char *spi_src_clks[] = { | ||
28 | [S3C64XX_SPI_SRCCLK_PCLK] = "pclk", | ||
29 | [S3C64XX_SPI_SRCCLK_SPIBUS] = "spi-bus", | ||
30 | [S3C64XX_SPI_SRCCLK_48M] = "spi_48m", | ||
31 | }; | ||
32 | |||
33 | /* SPI Controller platform_devices */ | 27 | /* SPI Controller platform_devices */ |
34 | 28 | ||
35 | /* Since we emulate multi-cs capability, we do not touch the GPC-3,7. | 29 | /* Since we emulate multi-cs capability, we do not touch the GPC-3,7. |
@@ -176,5 +170,4 @@ void __init s3c64xx_spi_set_info(int cntrlr, int src_clk_nr, int num_cs) | |||
176 | 170 | ||
177 | pd->num_cs = num_cs; | 171 | pd->num_cs = num_cs; |
178 | pd->src_clk_nr = src_clk_nr; | 172 | pd->src_clk_nr = src_clk_nr; |
179 | pd->src_clk_name = spi_src_clks[src_clk_nr]; | ||
180 | } | 173 | } |
diff --git a/arch/arm/mach-s5p64x0/dev-spi.c b/arch/arm/mach-s5p64x0/dev-spi.c index 1fd9c79c7dbc..5b5d3c083644 100644 --- a/arch/arm/mach-s5p64x0/dev-spi.c +++ b/arch/arm/mach-s5p64x0/dev-spi.c | |||
@@ -25,11 +25,6 @@ | |||
25 | #include <plat/s3c64xx-spi.h> | 25 | #include <plat/s3c64xx-spi.h> |
26 | #include <plat/gpio-cfg.h> | 26 | #include <plat/gpio-cfg.h> |
27 | 27 | ||
28 | static char *s5p64x0_spi_src_clks[] = { | ||
29 | [S5P64X0_SPI_SRCCLK_PCLK] = "pclk", | ||
30 | [S5P64X0_SPI_SRCCLK_SCLK] = "sclk_spi", | ||
31 | }; | ||
32 | |||
33 | /* SPI Controller platform_devices */ | 28 | /* SPI Controller platform_devices */ |
34 | 29 | ||
35 | /* Since we emulate multi-cs capability, we do not touch the CS. | 30 | /* Since we emulate multi-cs capability, we do not touch the CS. |
@@ -220,5 +215,4 @@ void __init s5p64x0_spi_set_info(int cntrlr, int src_clk_nr, int num_cs) | |||
220 | 215 | ||
221 | pd->num_cs = num_cs; | 216 | pd->num_cs = num_cs; |
222 | pd->src_clk_nr = src_clk_nr; | 217 | pd->src_clk_nr = src_clk_nr; |
223 | pd->src_clk_name = s5p64x0_spi_src_clks[src_clk_nr]; | ||
224 | } | 218 | } |
diff --git a/arch/arm/mach-s5pc100/dev-spi.c b/arch/arm/mach-s5pc100/dev-spi.c index e5d6c4dceb56..155f50da2d78 100644 --- a/arch/arm/mach-s5pc100/dev-spi.c +++ b/arch/arm/mach-s5pc100/dev-spi.c | |||
@@ -21,12 +21,6 @@ | |||
21 | #include <plat/gpio-cfg.h> | 21 | #include <plat/gpio-cfg.h> |
22 | #include <plat/irqs.h> | 22 | #include <plat/irqs.h> |
23 | 23 | ||
24 | static char *spi_src_clks[] = { | ||
25 | [S5PC100_SPI_SRCCLK_PCLK] = "pclk", | ||
26 | [S5PC100_SPI_SRCCLK_48M] = "spi_48m", | ||
27 | [S5PC100_SPI_SRCCLK_SPIBUS] = "spi_bus", | ||
28 | }; | ||
29 | |||
30 | /* SPI Controller platform_devices */ | 24 | /* SPI Controller platform_devices */ |
31 | 25 | ||
32 | /* Since we emulate multi-cs capability, we do not touch the CS. | 26 | /* Since we emulate multi-cs capability, we do not touch the CS. |
@@ -223,5 +217,4 @@ void __init s5pc100_spi_set_info(int cntrlr, int src_clk_nr, int num_cs) | |||
223 | 217 | ||
224 | pd->num_cs = num_cs; | 218 | pd->num_cs = num_cs; |
225 | pd->src_clk_nr = src_clk_nr; | 219 | pd->src_clk_nr = src_clk_nr; |
226 | pd->src_clk_name = spi_src_clks[src_clk_nr]; | ||
227 | } | 220 | } |
diff --git a/arch/arm/mach-s5pv210/dev-spi.c b/arch/arm/mach-s5pv210/dev-spi.c index eaf9a7bff7a0..39bef19dbd68 100644 --- a/arch/arm/mach-s5pv210/dev-spi.c +++ b/arch/arm/mach-s5pv210/dev-spi.c | |||
@@ -20,11 +20,6 @@ | |||
20 | #include <plat/s3c64xx-spi.h> | 20 | #include <plat/s3c64xx-spi.h> |
21 | #include <plat/gpio-cfg.h> | 21 | #include <plat/gpio-cfg.h> |
22 | 22 | ||
23 | static char *spi_src_clks[] = { | ||
24 | [S5PV210_SPI_SRCCLK_PCLK] = "pclk", | ||
25 | [S5PV210_SPI_SRCCLK_SCLK] = "sclk_spi", | ||
26 | }; | ||
27 | |||
28 | /* SPI Controller platform_devices */ | 23 | /* SPI Controller platform_devices */ |
29 | 24 | ||
30 | /* Since we emulate multi-cs capability, we do not touch the CS. | 25 | /* Since we emulate multi-cs capability, we do not touch the CS. |
@@ -171,5 +166,4 @@ void __init s5pv210_spi_set_info(int cntrlr, int src_clk_nr, int num_cs) | |||
171 | 166 | ||
172 | pd->num_cs = num_cs; | 167 | pd->num_cs = num_cs; |
173 | pd->src_clk_nr = src_clk_nr; | 168 | pd->src_clk_nr = src_clk_nr; |
174 | pd->src_clk_name = spi_src_clks[src_clk_nr]; | ||
175 | } | 169 | } |
diff --git a/arch/arm/plat-samsung/include/plat/s3c64xx-spi.h b/arch/arm/plat-samsung/include/plat/s3c64xx-spi.h index 4c16fa3621bb..c3d82a5f5630 100644 --- a/arch/arm/plat-samsung/include/plat/s3c64xx-spi.h +++ b/arch/arm/plat-samsung/include/plat/s3c64xx-spi.h | |||
@@ -31,7 +31,6 @@ struct s3c64xx_spi_csinfo { | |||
31 | /** | 31 | /** |
32 | * struct s3c64xx_spi_info - SPI Controller defining structure | 32 | * struct s3c64xx_spi_info - SPI Controller defining structure |
33 | * @src_clk_nr: Clock source index for the CLK_CFG[SPI_CLKSEL] field. | 33 | * @src_clk_nr: Clock source index for the CLK_CFG[SPI_CLKSEL] field. |
34 | * @src_clk_name: Platform name of the corresponding clock. | ||
35 | * @clk_from_cmu: If the SPI clock/prescalar control block is present | 34 | * @clk_from_cmu: If the SPI clock/prescalar control block is present |
36 | * by the platform's clock-management-unit and not in SPI controller. | 35 | * by the platform's clock-management-unit and not in SPI controller. |
37 | * @num_cs: Number of CS this controller emulates. | 36 | * @num_cs: Number of CS this controller emulates. |
@@ -43,7 +42,6 @@ struct s3c64xx_spi_csinfo { | |||
43 | */ | 42 | */ |
44 | struct s3c64xx_spi_info { | 43 | struct s3c64xx_spi_info { |
45 | int src_clk_nr; | 44 | int src_clk_nr; |
46 | char *src_clk_name; | ||
47 | bool clk_from_cmu; | 45 | bool clk_from_cmu; |
48 | 46 | ||
49 | int num_cs; | 47 | int num_cs; |