Tom Rini | 83d290c | 2018-05-06 17:58:06 -0400 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0+ */ |
Nikita Kiryanov | e32028a | 2014-09-07 18:59:29 +0300 | [diff] [blame] | 2 | /* |
| 3 | * Copyright (C) 2014, Compulab Ltd - http://compulab.co.il/ |
| 4 | * |
| 5 | * Author: Nikita Kiryanov <nikita@compulab.co.il> |
Nikita Kiryanov | e32028a | 2014-09-07 18:59:29 +0300 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #include <asm/arch/mx6-pins.h> |
| 9 | #include <asm/arch/clock.h> |
| 10 | |
| 11 | #define UART_PAD_CTRL (PAD_CTL_PUS_100K_UP | \ |
| 12 | PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm | \ |
| 13 | PAD_CTL_SRE_FAST | PAD_CTL_HYS) |
| 14 | |
| 15 | #define CM_FX6_ECSPI_BUS0_CS0 IMX_GPIO_NR(2, 30) |
| 16 | #define CM_FX6_GREEN_LED IMX_GPIO_NR(2, 31) |
Nikita Kiryanov | 02b1343 | 2014-08-20 15:09:02 +0300 | [diff] [blame] | 17 | #define CM_FX6_ENET_NRST IMX_GPIO_NR(2, 8) |
Nikita Kiryanov | 0f3effb | 2014-08-20 15:09:03 +0300 | [diff] [blame] | 18 | #define CM_FX6_ENET_NRST IMX_GPIO_NR(2, 8) |
| 19 | #define CM_FX6_USB_HUB_RST IMX_GPIO_NR(7, 8) |
| 20 | #define SB_FX6_USB_OTG_PWR IMX_GPIO_NR(3, 22) |
Nikita Kiryanov | 206f38f | 2014-08-20 15:09:06 +0300 | [diff] [blame] | 21 | #define CM_FX6_ENET_NRST IMX_GPIO_NR(2, 8) |
| 22 | #define CM_FX6_USB_HUB_RST IMX_GPIO_NR(7, 8) |
| 23 | #define SB_FX6_USB_OTG_PWR IMX_GPIO_NR(3, 22) |
| 24 | #define CM_FX6_SATA_PWREN IMX_GPIO_NR(1, 28) |
| 25 | #define CM_FX6_SATA_VDDC_CTRL IMX_GPIO_NR(1, 30) |
| 26 | #define CM_FX6_SATA_LDO_EN IMX_GPIO_NR(2, 16) |
| 27 | #define CM_FX6_SATA_NSTANDBY1 IMX_GPIO_NR(3, 20) |
| 28 | #define CM_FX6_SATA_PHY_SLP IMX_GPIO_NR(3, 23) |
| 29 | #define CM_FX6_SATA_STBY_REQ IMX_GPIO_NR(3, 29) |
| 30 | #define CM_FX6_SATA_NSTANDBY2 IMX_GPIO_NR(5, 2) |
| 31 | #define CM_FX6_SATA_NRSTDLY IMX_GPIO_NR(6, 6) |
| 32 | #define CM_FX6_SATA_PWLOSS_INT IMX_GPIO_NR(6, 31) |
| 33 | |
Nikita Kiryanov | e32028a | 2014-09-07 18:59:29 +0300 | [diff] [blame] | 34 | |
| 35 | void cm_fx6_set_usdhc_iomux(void); |
| 36 | void cm_fx6_set_ecspi_iomux(void); |