1877bfe37SValentin Longchamp /* 2877bfe37SValentin Longchamp * (C) Copyright 2013 Keymile AG 3877bfe37SValentin Longchamp * Valentin Longchamp <valentin.longchamp@keymile.com> 4877bfe37SValentin Longchamp * 5877bfe37SValentin Longchamp * SPDX-License-Identifier: GPL-2.0+ 6877bfe37SValentin Longchamp */ 7877bfe37SValentin Longchamp 887ea2c0fSValentin Longchamp /* QRIO GPIO ports */ 987ea2c0fSValentin Longchamp #define GPIO_A 0x40 1087ea2c0fSValentin Longchamp #define GPIO_B 0x60 1187ea2c0fSValentin Longchamp 1287ea2c0fSValentin Longchamp int qrio_get_gpio(u8 port_off, u8 gpio_nr); 1387ea2c0fSValentin Longchamp void qrio_set_opendrain_gpio(u8 port_off, u8 gpio_nr, u8 val); 1487ea2c0fSValentin Longchamp void qrio_set_gpio(u8 port_off, u8 gpio_nr, bool value); 1587ea2c0fSValentin Longchamp void qrio_gpio_direction_output(u8 port_off, u8 gpio_nr, bool value); 1687ea2c0fSValentin Longchamp void qrio_gpio_direction_input(u8 port_off, u8 gpio_nr); 1787ea2c0fSValentin Longchamp 18877bfe37SValentin Longchamp #define PRSTCFG_POWUP_UNIT_CORE_RST 0x0 19877bfe37SValentin Longchamp #define PRSTCFG_POWUP_UNIT_RST 0x1 20877bfe37SValentin Longchamp #define PRSTCFG_POWUP_RST 0x3 21877bfe37SValentin Longchamp 22877bfe37SValentin Longchamp void qrio_prst(u8 bit, bool en, bool wden); 23877bfe37SValentin Longchamp void qrio_prstcfg(u8 bit, u8 mode); 24a53e65d0SStefan Bigler void qrio_set_leds(void); 25*4921a149SStefan Bigler void qrio_enable_app_buffer(void); 26877bfe37SValentin Longchamp 27877bfe37SValentin Longchamp void pci_of_setup(void *blob, bd_t *bd); 28