mirror of
https://github.com/torvalds/linux.git
synced 2026-10-07 22:37:45 -04:00
The basic GPIO controllers may be found in various on-board FPGA and ASIC solutions that are used to control board's switches, LEDs, chip-selects, Ethernet/USB PHY power, etc. These controllers may not provide any means of pin setup (in/out/open drain). The driver supports: - 8/16/32/64 bits registers; - GPIO controllers with clear/set registers; - GPIO controllers with a single "data" register; - Big endian bits/GPIOs ordering (mostly used on PowerPC). Signed-off-by: Anton Vorontsov <[email protected]> Reviewed-by: Mark Brown <[email protected]> Cc: David Brownell <[email protected]> Cc: Samuel Ortiz <[email protected]>, Cc: Alan Cox <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
21 lines
547 B
C
21 lines
547 B
C
/*
|
|
* Basic memory-mapped GPIO controllers.
|
|
*
|
|
* Copyright 2008 MontaVista Software, Inc.
|
|
* Copyright 2008,2010 Anton Vorontsov <[email protected]>
|
|
*
|
|
* 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, or (at your
|
|
* option) any later version.
|
|
*/
|
|
|
|
#ifndef __BASIC_MMIO_GPIO_H
|
|
#define __BASIC_MMIO_GPIO_H
|
|
|
|
struct bgpio_pdata {
|
|
int base;
|
|
};
|
|
|
|
#endif /* __BASIC_MMIO_GPIO_H */
|