Skip to contentSkip to conversation

ARM: S3C2443: SPI clock channel setup is fixed

PATCH In review Alexander Varnin 2 participants 2 messages Nov 19, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ARM: S3C2443: SPI clock channel setup is fixed

Actually, SPI channel 0 on 2443 is mapped to HS SPI controller, and to enable s3c2410-spi controller, we should power on channel 1 in PCLKCON. There is no channel 0 SPI on s3c2443, so delete its clock.

---
 arch/arm/mach-s3c24xx/clock-s3c2443.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
arch/arm/mach-s3c24xx/clock-s3c2443.c +0 -6
index 7f689ce..bdaba59 100644
@@ -158,12 +158,6 @@ static struct clk init_clocks_off[] = {
 		.devname	= "s3c2410-spi.0",
 		.parent		= &clk_p,
 		.enable		= s3c2443_clkcon_enable_p,
-		.ctrlbit	= S3C2443_PCLKCON_SPI0,
-	}, {
-		.name		= "spi",
-		.devname	= "s3c2410-spi.1",
-		.parent		= &clk_p,
-		.enable		= s3c2443_clkcon_enable_p,
 		.ctrlbit	= S3C2443_PCLKCON_SPI1,
 	}
 };
Signature · 1 line
1.7.2.5
Reviewed-by on v1 1/1
#1 lore raw

Am Montag, 19. November 2012, 15:33:57 schrieb Alexander Varnin:

Quoted 6 lines

Actually, SPI channel 0 on 2443 is mapped to HS SPI controller, and to enable s3c2410-spi controller, we should power on channel 1 in PCLKCON. There is no channel 0 SPI on s3c2443, so delete its clock.

You're right of course. The second spi channel (pclkcon_spi1) even uses the registers for the first s3c24xx-spi channel.

But you might want to resend your patch and include

Kukjin Kim <[email protected]>

(the maintainer of Samsung code) as recipient, because I don't know if he'll see it otherwise.

Quoted 21 lines
---
 arch/arm/mach-s3c24xx/clock-s3c2443.c |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)
(quoted diff) +0 -0

b/arch/arm/mach-s3c24xx/clock-s3c2443.c index 7f689ce..bdaba59 100644

arch/arm/mach-s3c24xx/clock-s3c2443.c +0 -6
@@ -158,12 +158,6 @@ static struct clk init_clocks_off[] = {
 		.devname	= "s3c2410-spi.0",
 		.parent		= &clk_p,
 		.enable		= s3c2443_clkcon_enable_p,
-		.ctrlbit	= S3C2443_PCLKCON_SPI0,
-	}, {
-		.name		= "spi",
-		.devname	= "s3c2410-spi.1",
-		.parent		= &clk_p,
-		.enable		= s3c2443_clkcon_enable_p,
 		.ctrlbit	= S3C2443_PCLKCON_SPI1,
 	}
 };