mirror of
https://github.com/brain-hackers/u-boot-brain
synced 2024-08-31 14:28:52 +09:00
![Wolfgang Denk](/assets/img/avatar_default.png)
Signed-off-by: Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by: Tom Rini <trini@ti.com>
25 lines
436 B
C
25 lines
436 B
C
/*
|
|
* Copyright (C) 2012 Stefan Roese <sr@denx.de>
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0+
|
|
*/
|
|
|
|
|
|
#ifndef __ASM_ARCH_SPEAR_GPIO_H
|
|
#define __ASM_ARCH_SPEAR_GPIO_H
|
|
|
|
enum gpio_direction {
|
|
GPIO_DIRECTION_IN,
|
|
GPIO_DIRECTION_OUT,
|
|
};
|
|
|
|
struct gpio_regs {
|
|
u32 gpiodata[0x100]; /* 0x000 ... 0x3fc */
|
|
u32 gpiodir; /* 0x400 */
|
|
};
|
|
|
|
#define SPEAR_GPIO_COUNT 8
|
|
#define DATA_REG_ADDR(gpio) (1 << (gpio + 2))
|
|
|
|
#endif /* __ASM_ARCH_SPEAR_GPIO_H */
|