diff options
author | Tom Rini <trini@ti.com> | 2014-10-27 09:08:42 -0400 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-10-27 09:08:42 -0400 |
commit | 0ce4af99c07acebf4fce9a91f1099d2460629293 (patch) | |
tree | d87d969bfc91662e7a90b3c4fcce35acf4a3cdaf /board/bachmann/ot1200/ot1200.c | |
parent | 5aa7bece1045c28806ce919099616ebe8fa63325 (diff) | |
parent | 3f97af5302ee15530411232b464d255eb2ff2ffb (diff) | |
download | u-boot-imx-0ce4af99c07acebf4fce9a91f1099d2460629293.zip u-boot-imx-0ce4af99c07acebf4fce9a91f1099d2460629293.tar.gz u-boot-imx-0ce4af99c07acebf4fce9a91f1099d2460629293.tar.bz2 |
Merge branch 'master' of git://git.denx.de/u-boot-imx
Diffstat (limited to 'board/bachmann/ot1200/ot1200.c')
-rw-r--r-- | board/bachmann/ot1200/ot1200.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/board/bachmann/ot1200/ot1200.c b/board/bachmann/ot1200/ot1200.c index 0d5ede5..acf95cb 100644 --- a/board/bachmann/ot1200/ot1200.c +++ b/board/bachmann/ot1200/ot1200.c @@ -12,6 +12,7 @@ #include <malloc.h> #include <asm/arch/mx6-pins.h> #include <asm/imx-common/iomux-v3.h> +#include <asm/imx-common/sata.h> #include <asm/imx-common/mxc_i2c.h> #include <asm/imx-common/boot_mode.h> #include <asm/arch/crm_regs.h> @@ -98,6 +99,11 @@ static void setup_iomux_spi(void) imx_iomux_v3_setup_multiple_pads(ecspi1_pads, ARRAY_SIZE(ecspi1_pads)); } +int board_spi_cs_gpio(unsigned bus, unsigned cs) +{ + return (bus == 2 && cs == 0) ? (IMX_GPIO_NR(1, 3)) : -1; +} + int board_early_init_f(void) { setup_iomux_uart(); @@ -225,6 +231,10 @@ int board_init(void) /* enable ecspi3 clocks */ enable_cspi_clock(1, 2); +#ifdef CONFIG_CMD_SATA + setup_sata(); +#endif + return 0; } |