Skip to contentSkip to conversation

ARM: S3C64XX: Dynamically allocate the IRQ range for WM8994 on Cragganmore

PATCH New Mark Brown 2 participants 4 messages Jun 3, 2012 – Jun 19, 2012

Subsystems (3)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/2 ARM: S3C64XX: Dynamically allocate the IRQ range for WM8994 on Cragganmore

Use the new irqdomain support in the WM8994 driver to dynamically allocate the interrupt range for the WM8994 rather than doing it explicitly. This is more idiomatic for modern interrupt usage.

---
 arch/arm/mach-s3c64xx/include/mach/crag6410.h |    1 -
 arch/arm/mach-s3c64xx/mach-crag6410-module.c  |    1 -
 2 files changed, 2 deletions(-)
arch/arm/mach-s3c64xx/include/mach/crag6410.h +0 -1
index 4cb2f951..ec97c15 100644
@@ -15,7 +15,6 @@
 
 #define BANFF_PMIC_IRQ_BASE		IRQ_BOARD_START
 #define GLENFARCLAS_PMIC_IRQ_BASE	(IRQ_BOARD_START + 64)
-#define CODEC_IRQ_BASE			(IRQ_BOARD_START + 128)
 
 #define PCA935X_GPIO_BASE		GPIO_BOARD_START
 #define CODEC_GPIO_BASE			(GPIO_BOARD_START + 8)
arch/arm/mach-s3c64xx/mach-crag6410-module.c +0 -1
index 4979372..4a83b4e 100644
@@ -168,7 +168,6 @@ static struct wm8994_pdata wm8994_pdata = {
 	.gpio_defaults = {
 		0x3,          /* IRQ out, active high, CMOS */
 	},
-	.irq_base = CODEC_IRQ_BASE,
 	.ldo = {
 		 { .init_data = &wm8994_ldo1, },
 		 { .init_data = &wm8994_ldo2, },
Signature · 1 line
1.7.10
author
#1 lore raw

PATCH 2/2 ARM: S3C64XX: Dynamically assign interrupts for CPU PMIC on Cragganmore

Now that the WM831x driver uses irq_domain we can happily allow it to assign its own IRQs.

---
 arch/arm/mach-s3c64xx/include/mach/crag6410.h |    3 +--
 arch/arm/mach-s3c64xx/mach-crag6410.c         |    1 -
 2 files changed, 1 insertion(+), 3 deletions(-)
arch/arm/mach-s3c64xx/include/mach/crag6410.h +1 -2
index ec97c15..4c3c999 100644
@@ -13,8 +13,7 @@
 
 #include <linux/gpio.h>
 
-#define BANFF_PMIC_IRQ_BASE		IRQ_BOARD_START
-#define GLENFARCLAS_PMIC_IRQ_BASE	(IRQ_BOARD_START + 64)
+#define GLENFARCLAS_PMIC_IRQ_BASE	IRQ_BOARD_START
 
 #define PCA935X_GPIO_BASE		GPIO_BOARD_START
 #define CODEC_GPIO_BASE			(GPIO_BOARD_START + 8)
arch/arm/mach-s3c64xx/mach-crag6410.c +0 -1
index d0c352d..161c3b6 100644
@@ -525,7 +525,6 @@ static struct wm831x_touch_pdata touch_pdata __initdata = {
 
 static struct wm831x_pdata crag_pmic_pdata __initdata = {
 	.wm831x_num = 1,
-	.irq_base = BANFF_PMIC_IRQ_BASE,
 	.gpio_base = BANFF_PMIC_GPIO_BASE,
 	.soft_shutdown = true,
 
Signature · 1 line
1.7.10
#2 lore raw

PATCH 2/2 ARM: S3C64XX: Dynamically assign interrupts for CPU PMIC on Cragganmore

Quoted 40 lines · Mark Brown

Now that the WM831x driver uses irq_domain we can happily allow it to assign its own IRQs.

---
 arch/arm/mach-s3c64xx/include/mach/crag6410.h |    3 +--
 arch/arm/mach-s3c64xx/mach-crag6410.c         |    1 -
 2 files changed, 1 insertion(+), 3 deletions(-)
arch/arm/mach-s3c64xx/include/mach/crag6410.h +1 -2
index ec97c15..4c3c999 100644
@@ -13,8 +13,7 @@
 
 #include <linux/gpio.h>
 
-#define BANFF_PMIC_IRQ_BASE		IRQ_BOARD_START
-#define GLENFARCLAS_PMIC_IRQ_BASE	(IRQ_BOARD_START + 64)
+#define GLENFARCLAS_PMIC_IRQ_BASE	IRQ_BOARD_START
 
 #define PCA935X_GPIO_BASE		GPIO_BOARD_START
 #define CODEC_GPIO_BASE			(GPIO_BOARD_START + 8)
arch/arm/mach- renamed from arch/arm/mach-s3c64xx/mach-crag6410.c +0 -0

s3c64xx/mach-crag6410.c
index d0c352d..161c3b6 100644

arch/arm/mach-s3c64xx/mach-crag6410.c +0 -2
@@ -525,7 +525,6 @@ static struct wm831x_touch_pdata touch_pdata
 __initdata = {
 
 static struct wm831x_pdata crag_pmic_pdata __initdata = {
 	.wm831x_num = 1,
-	.irq_base = BANFF_PMIC_IRQ_BASE,
 	.gpio_base = BANFF_PMIC_GPIO_BASE,
 	.soft_shutdown = true,
 
--
Quoted 1 line

1.7.10

OK, will apply.
Thanks.

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

#3 lore raw

PATCH 1/2 ARM: S3C64XX: Dynamically allocate the IRQ range for WM8994 on Cragganmore

In reply to Mark Brown
Quoted 38 lines · Mark Brown

Use the new irqdomain support in the WM8994 driver to dynamically allocate the interrupt range for the WM8994 rather than doing it explicitly. This is more idiomatic for modern interrupt usage.

---
 arch/arm/mach-s3c64xx/include/mach/crag6410.h |    1 -
 arch/arm/mach-s3c64xx/mach-crag6410-module.c  |    1 -
 2 files changed, 2 deletions(-)
arch/arm/mach-s3c64xx/include/mach/crag6410.h +0 -1
index 4cb2f951..ec97c15 100644
@@ -15,7 +15,6 @@
 
 #define BANFF_PMIC_IRQ_BASE		IRQ_BOARD_START
 #define GLENFARCLAS_PMIC_IRQ_BASE	(IRQ_BOARD_START + 64)
-#define CODEC_IRQ_BASE			(IRQ_BOARD_START + 128)
 
 #define PCA935X_GPIO_BASE		GPIO_BOARD_START
 #define CODEC_GPIO_BASE			(GPIO_BOARD_START + 8)
arch/arm/mach- renamed from arch/arm/mach-s3c64xx/mach-crag6410-module.c +0 -0

s3c64xx/mach-crag6410-module.c
index 4979372..4a83b4e 100644

arch/arm/mach-s3c64xx/mach-crag6410-module.c +0 -2
@@ -168,7 +168,6 @@ static struct wm8994_pdata wm8994_pdata = {
 	.gpio_defaults = {
 		0x3,          /* IRQ out, active high, CMOS */
 	},
-	.irq_base = CODEC_IRQ_BASE,
 	.ldo = {
 		 { .init_data = &wm8994_ldo1, },
 		 { .init_data = &wm8994_ldo2, },
--
Quoted 1 line

1.7.10

Yeah, I agree with your comments. Will apply.
Thanks.

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