summaryrefslogtreecommitdiff
path: root/board/freescale/mx53_ard
diff options
context:
space:
mode:
authorLily Zhang <r58066@freescale.com>2011-05-14 14:24:44 +0800
committerLily Zhang <r58066@freescale.com>2011-05-14 16:06:15 +0800
commit6e1ca60b50a5b3b0c9a7a249ed49e244411b575f (patch)
tree849b8847abe22f3fff19440e17458630e455fc15 /board/freescale/mx53_ard
parentc53f846a0b72a22f65f07b9eb6638168cc7004a9 (diff)
downloadu-boot-imx-6e1ca60b50a5b3b0c9a7a249ed49e244411b575f.zip
u-boot-imx-6e1ca60b50a5b3b0c9a7a249ed49e244411b575f.tar.gz
u-boot-imx-6e1ca60b50a5b3b0c9a7a249ed49e244411b575f.tar.bz2
ENGR00143428 mx53 ard RevB: use internal clock for sata
Switch to use SATA internal clock in mx53 ARD RevB board. Signed-off-by: Lily Zhang <r58066@freescale.com>
Diffstat (limited to 'board/freescale/mx53_ard')
-rwxr-xr-xboard/freescale/mx53_ard/mx53_ard.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/board/freescale/mx53_ard/mx53_ard.c b/board/freescale/mx53_ard/mx53_ard.c
index 925bd2a..1ece2a5 100755
--- a/board/freescale/mx53_ard/mx53_ard.c
+++ b/board/freescale/mx53_ard/mx53_ard.c
@@ -990,6 +990,21 @@ void setup_nfc(void)
}
#endif
+#if defined(CONFIG_DWC_AHSATA)
+static void setup_sata_device(void)
+{
+ /* only RevB board uses internal SATA clock */
+#if defined(CONFIG_MX53_ARD_DDR3)
+ u32 *tmp_base =
+ (u32 *)(IIM_BASE_ADDR + 0x180c);
+
+ /* Set USB_PHY1 clk, fuse bank4 row3 bit2 */
+ set_usb_phy1_clk();
+ writel((readl(tmp_base) & (~0x7)) | 0x4, tmp_base);
+#endif
+}
+#endif
+
int board_init(void)
{
#ifdef CONFIG_MFG
@@ -1021,6 +1036,10 @@ int board_init(void)
weim_smc911x_iomux();
weim_cs1_settings();
+#if defined(CONFIG_DWC_AHSATA)
+ setup_sata_device();
+#endif
+
#ifdef CONFIG_VIDEO_MX5
panel_info_init();