gpio-syscon.c (bc0868c62bb13834b20a864f684cced1f84a2412) gpio-syscon.c (2e607fca7a2f842c73cf0c12ea4cf4776bdf7e46)
1/*
2 * SYSCON GPIO driver
3 *
4 * Copyright (C) 2014 Alexander Shiyan <shc_work@mail.ru>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

124
125 priv->data->set(chip, offset, val);
126
127 return 0;
128}
129
130static const struct syscon_gpio_data clps711x_mctrl_gpio = {
131 /* ARM CLPS711X SYSFLG1 Bits 8-10 */
1/*
2 * SYSCON GPIO driver
3 *
4 * Copyright (C) 2014 Alexander Shiyan <shc_work@mail.ru>
5 *
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or

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

124
125 priv->data->set(chip, offset, val);
126
127 return 0;
128}
129
130static const struct syscon_gpio_data clps711x_mctrl_gpio = {
131 /* ARM CLPS711X SYSFLG1 Bits 8-10 */
132 .compatible = "cirrus,clps711x-syscon1",
132 .compatible = "cirrus,ep7209-syscon1",
133 .flags = GPIO_SYSCON_FEAT_IN,
134 .bit_count = 3,
135 .dat_bit_offset = 0x40 * 8 + 8,
136};
137
138#define KEYSTONE_LOCK_BIT BIT(0)
139
140static void keystone_gpio_set(struct gpio_chip *chip, unsigned offset, int val)

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

163 .flags = GPIO_SYSCON_FEAT_OUT,
164 .bit_count = 28,
165 .dat_bit_offset = 4,
166 .set = keystone_gpio_set,
167};
168
169static const struct of_device_id syscon_gpio_ids[] = {
170 {
133 .flags = GPIO_SYSCON_FEAT_IN,
134 .bit_count = 3,
135 .dat_bit_offset = 0x40 * 8 + 8,
136};
137
138#define KEYSTONE_LOCK_BIT BIT(0)
139
140static void keystone_gpio_set(struct gpio_chip *chip, unsigned offset, int val)

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

163 .flags = GPIO_SYSCON_FEAT_OUT,
164 .bit_count = 28,
165 .dat_bit_offset = 4,
166 .set = keystone_gpio_set,
167};
168
169static const struct of_device_id syscon_gpio_ids[] = {
170 {
171 .compatible = "cirrus,clps711x-mctrl-gpio",
171 .compatible = "cirrus,ep7209-mctrl-gpio",
172 .data = &clps711x_mctrl_gpio,
173 },
174 {
175 .compatible = "ti,keystone-dsp-gpio",
176 .data = &keystone_dsp_gpio,
177 },
178 { }
179};

--- 76 unchanged lines hidden ---
172 .data = &clps711x_mctrl_gpio,
173 },
174 {
175 .compatible = "ti,keystone-dsp-gpio",
176 .data = &keystone_dsp_gpio,
177 },
178 { }
179};

--- 76 unchanged lines hidden ---