* [PATCH 0/2] gpio: davinci: Add support for TI K3 AM6 platform @ 2019-06-05 5:55 Keerthy 2019-06-05 5:55 ` [PATCH 1/2] gpio: davinci: Fix the compiler warning with ARM64 config enabled Keerthy 2019-06-05 5:55 ` [PATCH 2/2] gpio: Davinci: Add K3 dependencies Keerthy 0 siblings, 2 replies; 3+ messages in thread From: Keerthy @ 2019-06-05 5:55 UTC (permalink / raw) To: linus.walleij, bgolaszewski Cc: lokeshvutla, linux-gpio, t-kristo, j-keerthy, linux-kernel K3 AM6 platform has 2 instances of gpio banks on main domain and 1 instance on wakeup domin. All are capable of generating banked interrupts. Keerthy (2): gpio: davinci: Fix the compiler warning with ARM64 config enabled gpio: Davinci: Add K3 Specific dependencies drivers/gpio/Kconfig | 2 +- drivers/gpio/gpio-davinci.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) -- 2.17.1 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] gpio: davinci: Fix the compiler warning with ARM64 config enabled 2019-06-05 5:55 [PATCH 0/2] gpio: davinci: Add support for TI K3 AM6 platform Keerthy @ 2019-06-05 5:55 ` Keerthy 2019-06-05 5:55 ` [PATCH 2/2] gpio: Davinci: Add K3 dependencies Keerthy 1 sibling, 0 replies; 3+ messages in thread From: Keerthy @ 2019-06-05 5:55 UTC (permalink / raw) To: linus.walleij, bgolaszewski Cc: lokeshvutla, linux-gpio, t-kristo, j-keerthy, linux-kernel Fix the compiler warning with ARM64 config enabled as the current mask assumes 32 bit by default. Signed-off-by: Keerthy <j-keerthy@ti.com> --- drivers/gpio/gpio-davinci.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/gpio/gpio-davinci.c b/drivers/gpio/gpio-davinci.c index 3bbf5804bd11..0977590eb996 100644 --- a/drivers/gpio/gpio-davinci.c +++ b/drivers/gpio/gpio-davinci.c @@ -297,7 +297,7 @@ static int davinci_gpio_probe(struct platform_device *pdev) static void gpio_irq_disable(struct irq_data *d) { struct davinci_gpio_regs __iomem *g = irq2regs(d); - u32 mask = (u32) irq_data_get_irq_handler_data(d); + uintptr_t mask = (uintptr_t)irq_data_get_irq_handler_data(d); writel_relaxed(mask, &g->clr_falling); writel_relaxed(mask, &g->clr_rising); @@ -306,7 +306,7 @@ static void gpio_irq_disable(struct irq_data *d) static void gpio_irq_enable(struct irq_data *d) { struct davinci_gpio_regs __iomem *g = irq2regs(d); - u32 mask = (u32) irq_data_get_irq_handler_data(d); + uintptr_t mask = (uintptr_t)irq_data_get_irq_handler_data(d); unsigned status = irqd_get_trigger_type(d); status &= IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING; @@ -447,7 +447,7 @@ davinci_gpio_irq_map(struct irq_domain *d, unsigned int irq, "davinci_gpio"); irq_set_irq_type(irq, IRQ_TYPE_NONE); irq_set_chip_data(irq, (__force void *)g); - irq_set_handler_data(irq, (void *)__gpio_mask(hw)); + irq_set_handler_data(irq, (void *)(uintptr_t)__gpio_mask(hw)); return 0; } -- 2.17.1 ^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 2/2] gpio: Davinci: Add K3 dependencies 2019-06-05 5:55 [PATCH 0/2] gpio: davinci: Add support for TI K3 AM6 platform Keerthy 2019-06-05 5:55 ` [PATCH 1/2] gpio: davinci: Fix the compiler warning with ARM64 config enabled Keerthy @ 2019-06-05 5:55 ` Keerthy 1 sibling, 0 replies; 3+ messages in thread From: Keerthy @ 2019-06-05 5:55 UTC (permalink / raw) To: linus.walleij, bgolaszewski Cc: lokeshvutla, linux-gpio, t-kristo, j-keerthy, linux-kernel Add K3 dependencies to enable the driver on K3 platforms. Signed-off-by: Keerthy <j-keerthy@ti.com> --- drivers/gpio/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/gpio/Kconfig b/drivers/gpio/Kconfig index 62f3fe06cd2f..28dba62e2219 100644 --- a/drivers/gpio/Kconfig +++ b/drivers/gpio/Kconfig @@ -174,7 +174,7 @@ config GPIO_CLPS711X config GPIO_DAVINCI bool "TI Davinci/Keystone GPIO support" default y if ARCH_DAVINCI - depends on ARM && (ARCH_DAVINCI || ARCH_KEYSTONE) + depends on (ARM || ARM64) && (ARCH_DAVINCI || ARCH_KEYSTONE || ARCH_K3) help Say yes here to enable GPIO support for TI Davinci/Keystone SoCs. -- 2.17.1 ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2019-06-05 5:55 UTC | newest] Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed) -- links below jump to the message on this page -- 2019-06-05 5:55 [PATCH 0/2] gpio: davinci: Add support for TI K3 AM6 platform Keerthy 2019-06-05 5:55 ` [PATCH 1/2] gpio: davinci: Fix the compiler warning with ARM64 config enabled Keerthy 2019-06-05 5:55 ` [PATCH 2/2] gpio: Davinci: Add K3 dependencies Keerthy
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®