Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Ilya Ledvich | 6963204 | 2017-09-24 09:00:25 +0300 | [diff] [blame] | 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@compulab.co.il> |
Ilya Ledvich | 6963204 | 2017-09-24 09:00:25 +0300 | [diff] [blame] | 8 | */ |
| 9 | |
| 10 | #define PADS_SET_PROT(pads_array) void cl_som_imx7_##pads_array##_set(void) |
| 11 | |
Yangbo Lu | e37ac71 | 2019-06-21 11:42:28 +0800 | [diff] [blame] | 12 | #ifdef CONFIG_FSL_ESDHC_IMX |
Ilya Ledvich | 6963204 | 2017-09-24 09:00:25 +0300 | [diff] [blame] | 13 | #define CL_SOM_IMX7_GPIO_USDHC1_CD IMX_GPIO_NR(5, 0) |
| 14 | PADS_SET_PROT(usdhc1_pads); |
Yangbo Lu | e37ac71 | 2019-06-21 11:42:28 +0800 | [diff] [blame] | 15 | #endif /* CONFIG_FSL_ESDHC_IMX */ |
Ilya Ledvich | 6963204 | 2017-09-24 09:00:25 +0300 | [diff] [blame] | 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 |
Yangbo Lu | e37ac71 | 2019-06-21 11:42:28 +0800 | [diff] [blame] | 22 | #ifdef CONFIG_FSL_ESDHC_IMX |
Ilya Ledvich | 6963204 | 2017-09-24 09:00:25 +0300 | [diff] [blame] | 23 | PADS_SET_PROT(usdhc3_emmc_pads); |
Yangbo Lu | e37ac71 | 2019-06-21 11:42:28 +0800 | [diff] [blame] | 24 | #endif /* CONFIG_FSL_ESDHC_IMX */ |
Ilya Ledvich | 6963204 | 2017-09-24 09:00:25 +0300 | [diff] [blame] | 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 */ |