blob: bc19867f876bd7a7c2dae777804470d6f74fae12 [file] [log] [blame]
Tom Rini83d290c2018-05-06 17:58:06 -04001/* SPDX-License-Identifier: GPL-2.0+ */
Ilya Ledvich69632042017-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 Ledvich69632042017-09-24 09:00:25 +03008 */
9
10#define PADS_SET_PROT(pads_array) void cl_som_imx7_##pads_array##_set(void)
11
Yangbo Lue37ac712019-06-21 11:42:28 +080012#ifdef CONFIG_FSL_ESDHC_IMX
Ilya Ledvich69632042017-09-24 09:00:25 +030013#define CL_SOM_IMX7_GPIO_USDHC1_CD IMX_GPIO_NR(5, 0)
14PADS_SET_PROT(usdhc1_pads);
Yangbo Lue37ac712019-06-21 11:42:28 +080015#endif /* CONFIG_FSL_ESDHC_IMX */
Ilya Ledvich69632042017-09-24 09:00:25 +030016PADS_SET_PROT(uart1_pads);
17#ifdef CONFIG_SPI
18PADS_SET_PROT(espi1_pads);
19#endif /* CONFIG_SPI */
20
21#ifndef CONFIG_SPL_BUILD
Yangbo Lue37ac712019-06-21 11:42:28 +080022#ifdef CONFIG_FSL_ESDHC_IMX
Ilya Ledvich69632042017-09-24 09:00:25 +030023PADS_SET_PROT(usdhc3_emmc_pads);
Yangbo Lue37ac712019-06-21 11:42:28 +080024#endif /* CONFIG_FSL_ESDHC_IMX */
Ilya Ledvich69632042017-09-24 09:00:25 +030025#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 */