pinctrl-meson8b.c (277d14eb815fdfb95a72ea126bc09f75a2bd58fd) pinctrl-meson8b.c (ce385aa24a0dcccdc81dfcbc90cf7aa290d8b758)
1/*
2 * Pin controller and GPIO driver for Amlogic Meson8b.
3 *
4 * Copyright (C) 2015 Endless Mobile, Inc.
5 * Author: Carlo Caione <carlo@endlessm.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * version 2 as published by the Free Software Foundation.
10 *
11 * You should have received a copy of the GNU General Public License
12 * along with this program. If not, see <http://www.gnu.org/licenses/>.
13 */
14
15#include <dt-bindings/gpio/meson8b-gpio.h>
16#include "pinctrl-meson.h"
1/*
2 * Pin controller and GPIO driver for Amlogic Meson8b.
3 *
4 * Copyright (C) 2015 Endless Mobile, Inc.
5 * Author: Carlo Caione <carlo@endlessm.com>
6 *
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License
9 * version 2 as published by the Free Software Foundation.
10 *
11 * You should have received a copy of the GNU General Public License
12 * along with this program. If not, see <http://www.gnu.org/licenses/>.
13 */
14
15#include <dt-bindings/gpio/meson8b-gpio.h>
16#include "pinctrl-meson.h"
17#include "pinctrl-meson8-pmx.h"
17
18static const struct pinctrl_pin_desc meson8b_cbus_pins[] = {
19 MESON_PIN(GPIOX_0),
20 MESON_PIN(GPIOX_1),
21 MESON_PIN(GPIOX_2),
22 MESON_PIN(GPIOX_3),
23 MESON_PIN(GPIOX_4),
24 MESON_PIN(GPIOX_5),

--- 884 unchanged lines hidden (view full) ---

909 .pins = meson8b_cbus_pins,
910 .groups = meson8b_cbus_groups,
911 .funcs = meson8b_cbus_functions,
912 .banks = meson8b_cbus_banks,
913 .num_pins = ARRAY_SIZE(meson8b_cbus_pins),
914 .num_groups = ARRAY_SIZE(meson8b_cbus_groups),
915 .num_funcs = ARRAY_SIZE(meson8b_cbus_functions),
916 .num_banks = ARRAY_SIZE(meson8b_cbus_banks),
18
19static const struct pinctrl_pin_desc meson8b_cbus_pins[] = {
20 MESON_PIN(GPIOX_0),
21 MESON_PIN(GPIOX_1),
22 MESON_PIN(GPIOX_2),
23 MESON_PIN(GPIOX_3),
24 MESON_PIN(GPIOX_4),
25 MESON_PIN(GPIOX_5),

--- 884 unchanged lines hidden (view full) ---

910 .pins = meson8b_cbus_pins,
911 .groups = meson8b_cbus_groups,
912 .funcs = meson8b_cbus_functions,
913 .banks = meson8b_cbus_banks,
914 .num_pins = ARRAY_SIZE(meson8b_cbus_pins),
915 .num_groups = ARRAY_SIZE(meson8b_cbus_groups),
916 .num_funcs = ARRAY_SIZE(meson8b_cbus_functions),
917 .num_banks = ARRAY_SIZE(meson8b_cbus_banks),
918 .pmx_ops = &meson8_pmx_ops,
917};
918
919static struct meson_pinctrl_data meson8b_aobus_pinctrl_data = {
920 .name = "aobus-banks",
921 .pins = meson8b_aobus_pins,
922 .groups = meson8b_aobus_groups,
923 .funcs = meson8b_aobus_functions,
924 .banks = meson8b_aobus_banks,
925 .num_pins = ARRAY_SIZE(meson8b_aobus_pins),
926 .num_groups = ARRAY_SIZE(meson8b_aobus_groups),
927 .num_funcs = ARRAY_SIZE(meson8b_aobus_functions),
928 .num_banks = ARRAY_SIZE(meson8b_aobus_banks),
919};
920
921static struct meson_pinctrl_data meson8b_aobus_pinctrl_data = {
922 .name = "aobus-banks",
923 .pins = meson8b_aobus_pins,
924 .groups = meson8b_aobus_groups,
925 .funcs = meson8b_aobus_functions,
926 .banks = meson8b_aobus_banks,
927 .num_pins = ARRAY_SIZE(meson8b_aobus_pins),
928 .num_groups = ARRAY_SIZE(meson8b_aobus_groups),
929 .num_funcs = ARRAY_SIZE(meson8b_aobus_functions),
930 .num_banks = ARRAY_SIZE(meson8b_aobus_banks),
931 .pmx_ops = &meson8_pmx_ops,
929};
930
931static const struct of_device_id meson8b_pinctrl_dt_match[] = {
932 {
933 .compatible = "amlogic,meson8b-cbus-pinctrl",
934 .data = &meson8b_cbus_pinctrl_data,
935 },
936 {

--- 14 unchanged lines hidden ---
932};
933
934static const struct of_device_id meson8b_pinctrl_dt_match[] = {
935 {
936 .compatible = "amlogic,meson8b-cbus-pinctrl",
937 .data = &meson8b_cbus_pinctrl_data,
938 },
939 {

--- 14 unchanged lines hidden ---