2013-03-13 07:32:13 -04:00
|
|
|
/*
|
|
|
|
* Renesas R-Car GPIO Support
|
|
|
|
*
|
|
|
|
* Copyright (C) 2013 Magnus Damm
|
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __GPIO_RCAR_H__
|
|
|
|
#define __GPIO_RCAR_H__
|
|
|
|
|
|
|
|
struct gpio_rcar_config {
|
2013-05-10 10:48:36 -04:00
|
|
|
int gpio_base;
|
2013-03-13 07:32:13 -04:00
|
|
|
unsigned int irq_base;
|
|
|
|
unsigned int number_of_pins;
|
2013-03-09 21:27:00 -05:00
|
|
|
const char *pctl_name;
|
2013-05-24 05:47:24 -04:00
|
|
|
unsigned has_both_edge_trigger:1;
|
2013-03-13 07:32:13 -04:00
|
|
|
};
|
|
|
|
|
2013-04-08 05:36:13 -04:00
|
|
|
#define RCAR_GP_PIN(bank, pin) (((bank) * 32) + (pin))
|
|
|
|
|
2013-03-13 07:32:13 -04:00
|
|
|
#endif /* __GPIO_RCAR_H__ */
|