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