ARM: S3C64XX: Dynamically allocate the IRQ range for WM8994 on Cragganmore
Subsystems (3)
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
@@ -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
@@ -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
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
@@ -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
@@ -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
PATCH 1/2 ARM: S3C64XX: Dynamically allocate the IRQ range for WM8994 on Cragganmore
In reply to Mark BrownQuoted 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.
Signed-off-by Mark Brown <[email protected]>--- 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@@ -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 100644arch/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.
PATCH 2/2 ARM: S3C64XX: Dynamically assign interrupts for CPU PMIC on Cragganmore
In reply to Mark BrownQuoted 40 lines · Mark Brown
Now that the WM831x driver uses
irq_domainwe can happily allow it to assign its own IRQs.Signed-off-by Mark Brown <[email protected]>--- 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@@ -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 100644arch/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.