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