1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * SPL/U-Boot common header file for CompuLab CL-SOM-iMX7 module
5 * (C) Copyright 2017 CompuLab, Ltd. http://www.compulab.com
7 * Author: Uri Mashiach <uri.mashiach@compulab.co.il>
10 #define PADS_SET_PROT(pads_array) void cl_som_imx7_##pads_array##_set(void)
12 #ifdef CONFIG_FSL_ESDHC_IMX
13 #define CL_SOM_IMX7_GPIO_USDHC1_CD IMX_GPIO_NR(5, 0)
14 PADS_SET_PROT(usdhc1_pads);
15 #endif /* CONFIG_FSL_ESDHC_IMX */
16 PADS_SET_PROT(uart1_pads);
18 PADS_SET_PROT(espi1_pads);
19 #endif /* CONFIG_SPI */
21 #ifndef CONFIG_SPL_BUILD
22 #ifdef CONFIG_FSL_ESDHC_IMX
23 PADS_SET_PROT(usdhc3_emmc_pads);
24 #endif /* CONFIG_FSL_ESDHC_IMX */
26 PADS_SET_PROT(phy1_rst_pads);
27 PADS_SET_PROT(fec1_pads);
28 #endif /* CONFIG_FEC_MXC */
29 PADS_SET_PROT(usb_otg1_pads);
30 PADS_SET_PROT(wdog_pads);
31 #endif /* !CONFIG_SPL_BUILD */