blob: 72d96af2ba43f7f63ca4154c44d47eade3b3a0cb [file] [log] [blame]
Ilya Ledvich38a53c62017-09-24 09:00:25 +03001/*
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)
15PADS_SET_PROT(usdhc1_pads);
16#endif /* CONFIG_FSL_ESDHC */
17PADS_SET_PROT(uart1_pads);
18#ifdef CONFIG_SPI
19PADS_SET_PROT(espi1_pads);
20#endif /* CONFIG_SPI */
21
22#ifndef CONFIG_SPL_BUILD
23#ifdef CONFIG_FSL_ESDHC
24PADS_SET_PROT(usdhc3_emmc_pads);
25#endif /* CONFIG_FSL_ESDHC */
26#ifdef CONFIG_FEC_MXC
27PADS_SET_PROT(phy1_rst_pads);
28PADS_SET_PROT(fec1_pads);
29#endif /* CONFIG_FEC_MXC */
30PADS_SET_PROT(usb_otg1_pads);
31PADS_SET_PROT(wdog_pads);
32#endif /* !CONFIG_SPL_BUILD */