summaryrefslogtreecommitdiff
path: root/arch/arm/cpu/armv7/mx5
diff options
context:
space:
mode:
authorStefano Babic <sbabic@denx.de>2012-02-22 00:24:36 +0000
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>2012-05-15 08:31:30 +0200
commitd87c85ce4314cab49bf2664bb094df748a90cb29 (patch)
treec593dd431d61f812e62f0a58b1d392c99f32eb5f /arch/arm/cpu/armv7/mx5
parentb774fe9d8a3047293867267ca60355cf14f8268d (diff)
downloadu-boot-imx-d87c85ce4314cab49bf2664bb094df748a90cb29.zip
u-boot-imx-d87c85ce4314cab49bf2664bb094df748a90cb29.tar.gz
u-boot-imx-d87c85ce4314cab49bf2664bb094df748a90cb29.tar.bz2
MX5: Add definitions for SATA controller
Add base address and MXC_SATA_CLK to return the clock used for the SATA controller. Signed-off-by: Stefano Babic <sbabic@denx.de> CC: Fabio Estevam <fabio.estevam@freescale.com> CC: Dirk Behme <dirk.behme@de.bosch.com>
Diffstat (limited to 'arch/arm/cpu/armv7/mx5')
-rw-r--r--arch/arm/cpu/armv7/mx5/clock.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/arm/cpu/armv7/mx5/clock.c b/arch/arm/cpu/armv7/mx5/clock.c
index e92f106..8f8d01c 100644
--- a/arch/arm/cpu/armv7/mx5/clock.c
+++ b/arch/arm/cpu/armv7/mx5/clock.c
@@ -380,6 +380,8 @@ unsigned int mxc_get_clock(enum mxc_clock clk)
case MXC_FEC_CLK:
return decode_pll(mxc_plls[PLL1_CLOCK],
CONFIG_SYS_MX5_HCLK);
+ case MXC_SATA_CLK:
+ return get_ahb_clk();
default:
break;
}