diff options
author | Tim Harvey <tharvey@gateworks.com> | 2014-05-07 22:24:47 -0700 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2014-06-06 10:14:52 +0200 |
commit | 22452fd821300ef715c2c9d62ea466767e5eafd3 (patch) | |
tree | df658667bdb26194213043e137332d61a23e9fb8 /arch/arm | |
parent | ca84d72d1cfd7629118abce15c0b24cd7413692c (diff) | |
download | u-boot-imx-22452fd821300ef715c2c9d62ea466767e5eafd3.zip u-boot-imx-22452fd821300ef715c2c9d62ea466767e5eafd3.tar.gz u-boot-imx-22452fd821300ef715c2c9d62ea466767e5eafd3.tar.bz2 |
imx: sata: return failure if not IMX6Q/IMX6D
The IMX6QUAD/DUAL have SATA, but the IMX6SOLO/DL do not. Return
instead of configuring the SATA clock and GPR13 registers.
Signed-off-by: Tim Harvey <tharvey@gateworks.com>
Diffstat (limited to 'arch/arm')
-rw-r--r-- | arch/arm/imx-common/sata.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/arch/arm/imx-common/sata.c b/arch/arm/imx-common/sata.c index 2e69486..c10dd28 100644 --- a/arch/arm/imx-common/sata.c +++ b/arch/arm/imx-common/sata.c @@ -8,13 +8,18 @@ #include <asm/arch/iomux.h> #include <asm/io.h> #include <asm/arch/clock.h> +#include <asm/arch/sys_proto.h> int setup_sata(void) { struct iomuxc_base_regs *const iomuxc_regs = (struct iomuxc_base_regs *)IOMUXC_BASE_ADDR; + int ret; - int ret = enable_sata_clock(); + if (!is_cpu_type(MXC_CPU_MX6Q) && !is_cpu_type(MXC_CPU_MX6D)) + return 1; + + ret = enable_sata_clock(); if (ret) return ret; |