mirror of
https://github.com/torvalds/linux.git
synced 2024-11-29 23:51:37 +00:00
gpio: rcar: Add R-Car Gen4 support
R-Car V3U (R8A779A0) was the first member of the R-Car Gen4 family. Generalize the support for R-Car V3U to other SoCs in the R-Car Gen4 family by adding a family-specific compatible value. Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Reviewed-by: Wolfram Sang <wsa+renesas@sang-engineering.com> Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
This commit is contained in:
parent
afd24a50c7
commit
43ebbb92e4
@ -411,7 +411,7 @@ static const struct gpio_rcar_info gpio_rcar_info_gen3 = {
|
||||
.has_inen = false,
|
||||
};
|
||||
|
||||
static const struct gpio_rcar_info gpio_rcar_info_v3u = {
|
||||
static const struct gpio_rcar_info gpio_rcar_info_gen4 = {
|
||||
.has_outdtsel = true,
|
||||
.has_both_edge_trigger = true,
|
||||
.has_always_in = true,
|
||||
@ -421,7 +421,7 @@ static const struct gpio_rcar_info gpio_rcar_info_v3u = {
|
||||
static const struct of_device_id gpio_rcar_of_table[] = {
|
||||
{
|
||||
.compatible = "renesas,gpio-r8a779a0",
|
||||
.data = &gpio_rcar_info_v3u,
|
||||
.data = &gpio_rcar_info_gen4,
|
||||
}, {
|
||||
.compatible = "renesas,rcar-gen1-gpio",
|
||||
.data = &gpio_rcar_info_gen1,
|
||||
@ -431,6 +431,9 @@ static const struct of_device_id gpio_rcar_of_table[] = {
|
||||
}, {
|
||||
.compatible = "renesas,rcar-gen3-gpio",
|
||||
.data = &gpio_rcar_info_gen3,
|
||||
}, {
|
||||
.compatible = "renesas,rcar-gen4-gpio",
|
||||
.data = &gpio_rcar_info_gen4,
|
||||
}, {
|
||||
.compatible = "renesas,gpio-rcar",
|
||||
.data = &gpio_rcar_info_gen1,
|
||||
|
Loading…
Reference in New Issue
Block a user