xref: /openbmc/u-boot/board/compulab/cm_fx6/common.h (revision 206f38f7)
1e32028a7SNikita Kiryanov /*
2e32028a7SNikita Kiryanov  * Copyright (C) 2014, Compulab Ltd - http://compulab.co.il/
3e32028a7SNikita Kiryanov  *
4e32028a7SNikita Kiryanov  * Author: Nikita Kiryanov <nikita@compulab.co.il>
5e32028a7SNikita Kiryanov  *
6e32028a7SNikita Kiryanov  * SPDX-License-Identifier:	GPL-2.0+
7e32028a7SNikita Kiryanov  */
8e32028a7SNikita Kiryanov 
9e32028a7SNikita Kiryanov #include <asm/arch/mx6-pins.h>
10e32028a7SNikita Kiryanov #include <asm/arch/clock.h>
11e32028a7SNikita Kiryanov 
12e32028a7SNikita Kiryanov #define UART_PAD_CTRL  (PAD_CTL_PUS_100K_UP |	\
13e32028a7SNikita Kiryanov 			PAD_CTL_SPEED_MED | PAD_CTL_DSE_40ohm |	\
14e32028a7SNikita Kiryanov 			PAD_CTL_SRE_FAST  | PAD_CTL_HYS)
15e32028a7SNikita Kiryanov 
16e32028a7SNikita Kiryanov #define CM_FX6_ECSPI_BUS0_CS0	IMX_GPIO_NR(2, 30)
17e32028a7SNikita Kiryanov #define CM_FX6_GREEN_LED	IMX_GPIO_NR(2, 31)
1802b1343eSNikita Kiryanov #define CM_FX6_ENET_NRST	IMX_GPIO_NR(2, 8)
190f3effb9SNikita Kiryanov #define CM_FX6_ENET_NRST	IMX_GPIO_NR(2, 8)
200f3effb9SNikita Kiryanov #define CM_FX6_USB_HUB_RST	IMX_GPIO_NR(7, 8)
210f3effb9SNikita Kiryanov #define SB_FX6_USB_OTG_PWR	IMX_GPIO_NR(3, 22)
22*206f38f7SNikita Kiryanov #define CM_FX6_ENET_NRST	IMX_GPIO_NR(2, 8)
23*206f38f7SNikita Kiryanov #define CM_FX6_USB_HUB_RST	IMX_GPIO_NR(7, 8)
24*206f38f7SNikita Kiryanov #define SB_FX6_USB_OTG_PWR	IMX_GPIO_NR(3, 22)
25*206f38f7SNikita Kiryanov #define CM_FX6_SATA_PWREN	IMX_GPIO_NR(1, 28)
26*206f38f7SNikita Kiryanov #define CM_FX6_SATA_VDDC_CTRL	IMX_GPIO_NR(1, 30)
27*206f38f7SNikita Kiryanov #define CM_FX6_SATA_LDO_EN	IMX_GPIO_NR(2, 16)
28*206f38f7SNikita Kiryanov #define CM_FX6_SATA_NSTANDBY1	IMX_GPIO_NR(3, 20)
29*206f38f7SNikita Kiryanov #define CM_FX6_SATA_PHY_SLP	IMX_GPIO_NR(3, 23)
30*206f38f7SNikita Kiryanov #define CM_FX6_SATA_STBY_REQ	IMX_GPIO_NR(3, 29)
31*206f38f7SNikita Kiryanov #define CM_FX6_SATA_NSTANDBY2	IMX_GPIO_NR(5, 2)
32*206f38f7SNikita Kiryanov #define CM_FX6_SATA_NRSTDLY	IMX_GPIO_NR(6, 6)
33*206f38f7SNikita Kiryanov #define CM_FX6_SATA_PWLOSS_INT	IMX_GPIO_NR(6, 31)
34*206f38f7SNikita Kiryanov 
35e32028a7SNikita Kiryanov 
36e32028a7SNikita Kiryanov void cm_fx6_set_usdhc_iomux(void);
37e32028a7SNikita Kiryanov void cm_fx6_set_ecspi_iomux(void);
38