summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Niebel <Markus.Niebel@tq-group.com>2017-02-03 15:25:00 (GMT)
committerStefano Babic <sbabic@denx.de>2017-03-17 08:27:08 (GMT)
commite8548f820e9c806286d33cb1fa561d585fe6ace8 (patch)
treeebd747bafd746b2aae96206888ddb7bba6647c65
parent03cfff0e48495a7904c005aae67ccd38b7f92512 (diff)
downloadu-boot-e8548f820e9c806286d33cb1fa561d585fe6ace8.tar.xz
imx6: tqma6: disable spi CS unused in U-Boot
Since the CS are not in use, do not map them. User of starterkit mainboard is free to use them otherwise. When using these pins later in the OS for instance as GPIO IRQ pin, they need to be input. Signed-off-by: Markus Niebel <Markus.Niebel@tq-group.com>
-rw-r--r--board/tqc/tqma6/tqma6_mba6.c22
1 files changed, 0 insertions, 22 deletions
diff --git a/board/tqc/tqma6/tqma6_mba6.c b/board/tqc/tqma6/tqma6_mba6.c
index af92967..02705be 100644
--- a/board/tqc/tqma6/tqma6_mba6.c
+++ b/board/tqc/tqma6/tqma6_mba6.c
@@ -234,27 +234,6 @@ static void mba6_setup_i2c(void)
printf("setup I2C1 failed: %d\n", ret);
}
-
-static iomux_v3_cfg_t const mba6_ecspi1_pads[] = {
- NEW_PAD_CTRL(MX6_PAD_EIM_D24__GPIO3_IO24, SPI_PAD_CTRL),
- NEW_PAD_CTRL(MX6_PAD_EIM_D25__GPIO3_IO25, SPI_PAD_CTRL),
-};
-
-static unsigned const mba6_ecspi1_cs[] = {
- IMX_GPIO_NR(3, 24),
- IMX_GPIO_NR(3, 25),
-};
-
-static void mba6_setup_iomuxc_spi(void)
-{
- unsigned i;
-
- for (i = 0; i < ARRAY_SIZE(mba6_ecspi1_cs); ++i)
- gpio_direction_output(mba6_ecspi1_cs[i], 1);
- imx_iomux_v3_setup_multiple_pads(mba6_ecspi1_pads,
- ARRAY_SIZE(mba6_ecspi1_pads));
-}
-
int board_phy_config(struct phy_device *phydev)
{
/*
@@ -341,7 +320,6 @@ int tqma6_bb_board_early_init_f(void)
int tqma6_bb_board_init(void)
{
mba6_setup_i2c();
- mba6_setup_iomuxc_spi();
/* do it here - to have reset completed */
mba6_setup_iomuxc_enet();