Skip to contentSkip to conversation

ARM: S5PC110: enable PWM timers for GONI board

PATCH In review Marek Szyprowski 2 participants 3 messages Jun 7, 2011 – Jun 10, 2011

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

PATCH 1/1 ARM: S5PC110: enable PWM timers for GONI board

s5p_timer requires PWM device to be compiled in. Add aproperiate Kconfig select directive for GONI machine, so compilation won't fail if GONI is the only machine compiled into the kernel.

---
 arch/arm/mach-s5pv210/Kconfig |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-s5pv210/Kconfig +1 -0
index 37b5a97..aceafb4 100644
@@ -92,6 +92,7 @@ config MACH_GONI
 	select S3C_DEV_I2C2
 	select S3C_DEV_USB_HSOTG
 	select S5P_DEV_ONENAND
+	select SAMSUNG_DEV_PWM
 	select SAMSUNG_DEV_KEYPAD
 	select S5PV210_SETUP_FB_24BPP
 	select S5PV210_SETUP_I2C1
Signature · 1 line
1.7.1.569.g6f426
#1 lore raw
Quoted 16 lines · Marek Szyprowski

s5p_timer requires PWM device to be compiled in. Add aproperiate Kconfig select directive for GONI machine, so compilation won't fail if GONI is the only machine compiled into the kernel.

---
  arch/arm/mach-s5pv210/Kconfig |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach-s5pv210/Kconfig +0 -0
index 37b5a97..aceafb4 100644

arch/arm/mach-s5pv210/Kconfig config MACH_GONI · line 98

Quoted 7 lines
arch/arm/mach-s5pv210/Kconfig +1 -0
@@ -92,6 +92,7 @@ config MACH_GONI
  	select S3C_DEV_I2C2
  	select S3C_DEV_USB_HSOTG
  	select S5P_DEV_ONENAND
+	select SAMSUNG_DEV_PWM
  	select SAMSUNG_DEV_KEYPAD
  	select S5PV210_SETUP_FB_24BPP
  	select S5PV210_SETUP_I2C1

Yeah, SAMSUNG_DEV_PWM is required to use s5p-time.c for HRT. So I think following is better.

Marek, if you don't mind, I'd like to apply below...

arch/arm/plat-s5p/Kconfig +1 -0
index e98f5c5..7f9ff2a 100644
@@ -39,6 +39,7 @@ config S5P_GPIO_INT
 
 config S5P_HRT
        bool
+       select SAMSUNG_DEV_PWM
        help
          Use the High Resolution timer support
 

Thanks.

Best regards,
Kgene.
--
Kukjin Kim <[email protected]>, Senior Engineer, SW Solution Development Team, Samsung Electronics Co., Ltd.

#2 lore raw

Hello,

Quoted 43 lines · Kukjin Kim

arch/arm/mach-

Quoted 12 lines · Marek Szyprowski

s5p_timer requires PWM device to be compiled in. Add aproperiate Kconfig select directive for GONI machine, so compilation won't fail if GONI is the only machine compiled into the kernel.

---
  arch/arm/mach-s5pv210/Kconfig |    1 +
  1 files changed, 1 insertions(+), 0 deletions(-)
arch/arm/mach- renamed from arch/arm/mach-s5pv210/Kconfig +0 -0

s5pv210/Kconfig

arch/arm/mach-s5pv210/Kconfig config MACH_GONI · line 98

Quoted 11 lines

index 37b5a97..aceafb4 100644

arch/arm/mach-s5pv210/Kconfig +1 -0
@@ -92,6 +92,7 @@ config MACH_GONI
  	select S3C_DEV_I2C2
  	select S3C_DEV_USB_HSOTG
  	select S5P_DEV_ONENAND
+	select SAMSUNG_DEV_PWM
  	select SAMSUNG_DEV_KEYPAD
  	select S5PV210_SETUP_FB_24BPP
  	select S5PV210_SETUP_I2C1

Yeah, SAMSUNG_DEV_PWM is required to use s5p-time.c for HRT. So I think following is better.

Marek, if you don't mind, I'd like to apply below...

arch/arm/plat-s5p/Kconfig +1 -0
index e98f5c5..7f9ff2a 100644
@@ -39,6 +39,7 @@ config S5P_GPIO_INT
 
  config S5P_HRT
         bool
+       select SAMSUNG_DEV_PWM
         help
           Use the High Resolution timer support
 
Quoted 1 line

Thanks.

Yes, this one looks better.

Best regards

Signature · 2 lines
Marek Szyprowski
Samsung Poland R&D Center