diff options
Diffstat (limited to 'include/dm/platform_data/gpio_mpc8xxx.h')
-rw-r--r-- | include/dm/platform_data/gpio_mpc8xxx.h | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/include/dm/platform_data/gpio_mpc8xxx.h b/include/dm/platform_data/gpio_mpc8xxx.h new file mode 100644 index 0000000..37e5241 --- /dev/null +++ b/include/dm/platform_data/gpio_mpc8xxx.h @@ -0,0 +1,21 @@ +/* + * Copyright (c) 2016 Scalys B.V. <u-boot@scalys.com> + * SPDX-License-Identifier: GPL-2.0+ + */ + +#ifndef _MPC8XXX_GPIO_H +#define _MPC8XXX_GPIO_H + +struct mpc8xxx_gpio_platdata { + const char *bank_name; + ccsr_gpio_t *regs; + int gpio_count; +#if defined(CONFIG_MPC8572) || defined(CONFIG_MPC8536) + /* shadowed data register used to work around errata on + * MPC8572 and MPC8535 where it is not possible to read the + * state of an output pin */ + uint32_t data; +#endif +}; + +#endif |