History log of /rk3399_rockchip-uboot/drivers/irq/irq-gpio-switch.c (Results 1 – 9 of 9)
Revision Date Author Comments
# b476d716 16-Oct-2023 Joseph Chen <chenjh@rock-chips.com>

irq: gpio: Support GPIO id in neither aliases nor node name

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: If71c79c7cab8cbf9cd22d3e19856d159dbea4a71


# e6b2bd87 17-Dec-2020 Joseph Chen <chenjh@rock-chips.com>

irq: irq-gpio-switch: correct usage of strstr()

Fix gpio interrupt register with wrong gpio bank.

(Fixes: 8db677370c irq: irq-gpio-switch: add gpio alias name support)

Signed-off-by: Joseph Chen <

irq: irq-gpio-switch: correct usage of strstr()

Fix gpio interrupt register with wrong gpio bank.

(Fixes: 8db677370c irq: irq-gpio-switch: add gpio alias name support)

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: Ia60e55a134cfab19ed015796486417e0699bd087

show more ...


# 8db67737 14-Nov-2020 Joseph Chen <chenjh@rock-chips.com>

irq: irq-gpio-switch: add gpio alias name support

Before the patch, we get gpio index(0,1,2..) depends on gpio
fdt node name, such as: gpio0@..., gpio1@..., etc.

But from RK3568, we add gpio alias

irq: irq-gpio-switch: add gpio alias name support

Before the patch, we get gpio index(0,1,2..) depends on gpio
fdt node name, such as: gpio0@..., gpio1@..., etc.

But from RK3568, we add gpio alias to indicate gpio index
information and index is removed from gpio node name, ie:
gpio@fdd60000, gpio@fe740000, etc.

Signed-off-by: Joseph Chen <chenjh@rock-chips.com>
Change-Id: I56e45941f9572fbc6a5a5916896e12f6eff9dcf3

show more ...


# cf344252 27-Jul-2019 Joseph Chen <chenjh@rock-chips.com>

irq: clean up code

Change-Id: I51c2713b7c42fa798fee6971a2c91d867042ef70
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>


# 269512fd 19-Feb-2019 Joseph Chen <chenjh@rock-chips.com>

irq: clean up code

- using IRQ_X() to print message;
- update some comment;
- rename some function;
- add more strict irq sanity;

Change-Id: If5432818d4bc12fc1aa0b8aca6898bbf79dfa9fb
Signed-off-by:

irq: clean up code

- using IRQ_X() to print message;
- update some comment;
- rename some function;
- add more strict irq sanity;

Change-Id: If5432818d4bc12fc1aa0b8aca6898bbf79dfa9fb
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# 8696cc38 19-Feb-2019 Joseph Chen <chenjh@rock-chips.com>

irq: add irq busy validation

return -EBUSY when this irq is occupied.

Change-Id: I75ad6c0b13e167762cab2b8f9a2b786e588b2ade
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>


# 5db1153e 19-Oct-2017 Joseph Chen <chenjh@rock-chips.com>

drivers: irq: support convert gpio to irq by gpio fdt phandle

add funtion: phandle_gpio_to_irq(u32 gpio_phandle, u32 pin)

Change-Id: Iec2d1ed08138c2476bb13deb16ca06960fadd60d
Signed-off-by: Joseph

drivers: irq: support convert gpio to irq by gpio fdt phandle

add funtion: phandle_gpio_to_irq(u32 gpio_phandle, u32 pin)

Change-Id: Iec2d1ed08138c2476bb13deb16ca06960fadd60d
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...


# dbcd1484 29-Sep-2017 Joseph Chen <chenjh@rock-chips.com>

drivers: irq: malloc a temporary string for strtok

strtok will update original input string.

Change-Id: I9c81a72045f057c8a7d17f688e2d9f70dd849880
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>


# 4e6670fe 25-Sep-2017 Joseph Chen <chenjh@rock-chips.com>

drivers: add irq interrupt framework support

This patch add support for IRQ interrupt, FIQ not included.
It will be enabled when you select CONFIG_GICV2 or CONFIG_GICV3.

The framework support gic i

drivers: add irq interrupt framework support

This patch add support for IRQ interrupt, FIQ not included.
It will be enabled when you select CONFIG_GICV2 or CONFIG_GICV3.

The framework support gic interrupt and gpio interrupt, relative APIs
are provided in: ./include/irq-platform.h

If you'd like to add a new platform support into interrupt framework,
please follow the steps:
1. add relative definitions in the file like other platforms:
./include/irq-platform.h

2. add GICD, GICC and GICR(for GICV3) base address definitions in the
rkxxx-common.h, they are needed in: arch/arm/cpu/armv8/start.S;

3. enable CONFIG_GICV2 or CONFIG_GICV3.

Notice:
1. the framework is initialize in function 'interrupt_init()' of
_sequence_r[]. So you should not request irqs too early.

2. IRQ stack size is configured by CONFIG_IRQ_STACK_SIZE, the default
value is 8KB when CONFIG_IRQ_STACK_SIZE is absent.

Change-Id: I3d9e29873c9d64cd28aabd13a61111438c5902b0
Signed-off-by: Joseph Chen <chenjh@rock-chips.com>

show more ...