pinctrl-meson8.c (8c57a5e7b2820f349c95b8c8393fec1e0f4070d2) | pinctrl-meson8.c (db80f0e158e62164308a857bce442dfeddb5c29e) |
---|---|
1/* 2 * Pin controller and GPIO driver for Amlogic Meson8. 3 * 4 * Copyright (C) 2014 Beniamino Galvani <b.galvani@gmail.com> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. --- 917 unchanged lines hidden (view full) --- 926 BANK("BOOT", PIN(BOOT_0, 0), PIN(BOOT_18, 0), 2, 0, 2, 0, 9, 0, 10, 0, 11, 0), 927}; 928 929static struct meson_bank meson8_aobus_banks[] = { 930 /* name first last pullen pull dir out in */ 931 BANK("AO", PIN(GPIOAO_0, AO_OFF), PIN(GPIO_TEST_N, AO_OFF), 0, 0, 0, 16, 0, 0, 0, 16, 1, 0), 932}; 933 | 1/* 2 * Pin controller and GPIO driver for Amlogic Meson8. 3 * 4 * Copyright (C) 2014 Beniamino Galvani <b.galvani@gmail.com> 5 * 6 * This program is free software; you can redistribute it and/or 7 * modify it under the terms of the GNU General Public License 8 * version 2 as published by the Free Software Foundation. --- 917 unchanged lines hidden (view full) --- 926 BANK("BOOT", PIN(BOOT_0, 0), PIN(BOOT_18, 0), 2, 0, 2, 0, 9, 0, 10, 0, 11, 0), 927}; 928 929static struct meson_bank meson8_aobus_banks[] = { 930 /* name first last pullen pull dir out in */ 931 BANK("AO", PIN(GPIOAO_0, AO_OFF), PIN(GPIO_TEST_N, AO_OFF), 0, 0, 0, 16, 0, 0, 0, 16, 1, 0), 932}; 933 |
934static struct meson_domain_data meson8_cbus_domain_data = { | 934struct meson_pinctrl_data meson8_cbus_pinctrl_data = { |
935 .name = "cbus-banks", | 935 .name = "cbus-banks", |
936 .banks = meson8_cbus_banks, 937 .num_banks = ARRAY_SIZE(meson8_cbus_banks), | |
938 .pin_base = 0, | 936 .pin_base = 0, |
939 .num_pins = 120, 940}; 941 942static struct meson_domain_data meson8_aobus_domain_data = { 943 .name = "ao-bank", 944 .banks = meson8_aobus_banks, 945 .num_banks = ARRAY_SIZE(meson8_aobus_banks), 946 .pin_base = 120, 947 .num_pins = 16, 948}; 949 950struct meson_pinctrl_data meson8_cbus_pinctrl_data = { | |
951 .pins = meson8_cbus_pins, 952 .groups = meson8_cbus_groups, 953 .funcs = meson8_cbus_functions, | 937 .pins = meson8_cbus_pins, 938 .groups = meson8_cbus_groups, 939 .funcs = meson8_cbus_functions, |
954 .domain_data = &meson8_cbus_domain_data, | 940 .banks = meson8_cbus_banks, |
955 .num_pins = ARRAY_SIZE(meson8_cbus_pins), 956 .num_groups = ARRAY_SIZE(meson8_cbus_groups), 957 .num_funcs = ARRAY_SIZE(meson8_cbus_functions), | 941 .num_pins = ARRAY_SIZE(meson8_cbus_pins), 942 .num_groups = ARRAY_SIZE(meson8_cbus_groups), 943 .num_funcs = ARRAY_SIZE(meson8_cbus_functions), |
944 .num_banks = ARRAY_SIZE(meson8_cbus_banks), |
|
958}; 959 960struct meson_pinctrl_data meson8_aobus_pinctrl_data = { | 945}; 946 947struct meson_pinctrl_data meson8_aobus_pinctrl_data = { |
948 .name = "ao-bank", 949 .pin_base = 120, |
|
961 .pins = meson8_aobus_pins, 962 .groups = meson8_aobus_groups, 963 .funcs = meson8_aobus_functions, | 950 .pins = meson8_aobus_pins, 951 .groups = meson8_aobus_groups, 952 .funcs = meson8_aobus_functions, |
964 .domain_data = &meson8_aobus_domain_data, | 953 .banks = meson8_aobus_banks, |
965 .num_pins = ARRAY_SIZE(meson8_aobus_pins), 966 .num_groups = ARRAY_SIZE(meson8_aobus_groups), 967 .num_funcs = ARRAY_SIZE(meson8_aobus_functions), | 954 .num_pins = ARRAY_SIZE(meson8_aobus_pins), 955 .num_groups = ARRAY_SIZE(meson8_aobus_groups), 956 .num_funcs = ARRAY_SIZE(meson8_aobus_functions), |
957 .num_banks = ARRAY_SIZE(meson8_aobus_banks), |
|
968}; | 958}; |