blob: 8b15a59abeb8910498f216c6b1fbf4166a860065 [file] [log] [blame]
Tom Rini10e47792018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Ilya Ledvich38a53c62017-09-24 09:00:25 +03002/*
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@compulab.co.il>
Ilya Ledvich38a53c62017-09-24 09:00:25 +03008 */
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)
14PADS_SET_PROT(usdhc1_pads);
15#endif /* CONFIG_FSL_ESDHC */
16PADS_SET_PROT(uart1_pads);
17#ifdef CONFIG_SPI
18PADS_SET_PROT(espi1_pads);
19#endif /* CONFIG_SPI */
20
21#ifndef CONFIG_SPL_BUILD
22#ifdef CONFIG_FSL_ESDHC
23PADS_SET_PROT(usdhc3_emmc_pads);
24#endif /* CONFIG_FSL_ESDHC */
25#ifdef CONFIG_FEC_MXC
26PADS_SET_PROT(phy1_rst_pads);
27PADS_SET_PROT(fec1_pads);
28#endif /* CONFIG_FEC_MXC */
29PADS_SET_PROT(usb_otg1_pads);
30PADS_SET_PROT(wdog_pads);
31#endif /* !CONFIG_SPL_BUILD */