summaryrefslogtreecommitdiffstats
path: root/include/asm-ppc/gpio.h
diff options
context:
space:
mode:
authorStefan Roese <sr@denx.de>2007-06-15 07:39:43 +0200
committerStefan Roese <sr@denx.de>2007-06-15 07:39:43 +0200
commit85f737376d5ff3d5f0d45a8b657686326d175307 (patch)
tree5f3393f5cfbaccb32051cba390a4b1bc9bce7cb0 /include/asm-ppc/gpio.h
parentdbca208518e5e7f01a6420588d1cd6e60db74c2b (diff)
downloadbootable_bootloader_goldelico_gta04-85f737376d5ff3d5f0d45a8b657686326d175307.zip
bootable_bootloader_goldelico_gta04-85f737376d5ff3d5f0d45a8b657686326d175307.tar.gz
bootable_bootloader_goldelico_gta04-85f737376d5ff3d5f0d45a8b657686326d175307.tar.bz2
[ppc4xx] Extend 44x GPIO setup with default output state
The board config array CFG_440_GPIO_TABLE for the ppc440 GPIO setup is extended with the default GPIO output state (level). Signed-off-by: Stefan Roese <sr@denx.de>
Diffstat (limited to 'include/asm-ppc/gpio.h')
-rw-r--r--include/asm-ppc/gpio.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/asm-ppc/gpio.h b/include/asm-ppc/gpio.h
index 114dc92..c9b6a36 100644
--- a/include/asm-ppc/gpio.h
+++ b/include/asm-ppc/gpio.h
@@ -45,12 +45,14 @@ typedef enum gpio_driver { GPIO_DIS, GPIO_IN, GPIO_OUT, GPIO_BI } gpio_driver_t;
typedef enum gpio_out { GPIO_OUT_0, GPIO_OUT_1, GPIO_OUT_NO_CHG } gpio_out_t;
typedef struct {
- unsigned long add; /* gpio core base address */
- gpio_driver_t in_out; /* Driver Setting */
- gpio_select_t alt_nb; /* Selected Alternate */
+ unsigned long add; /* gpio core base address */
+ gpio_driver_t in_out; /* Driver Setting */
+ gpio_select_t alt_nb; /* Selected Alternate */
+ gpio_out_t out_val;/* Default Output Value */
} gpio_param_s;
#endif
void gpio_config(int pin, int in_out, int gpio_alt, int out_val);
void gpio_write_bit(int pin, int val);
+int gpio_read_out_bit(int pin);
void gpio_set_chip_configuration(void);