Scott Wood | f64c98c | 2015-03-20 19:28:12 -0700 | [diff] [blame] | 1 | /* |
| 2 | * Copyright 2015 Freescale Semiconductor |
| 3 | * |
| 4 | * SPDX-License-Identifier: GPL-2.0+ |
| 5 | */ |
| 6 | |
| 7 | #include <common.h> |
| 8 | #include <fsl_ifc.h> |
| 9 | #include <asm/arch-fsl-lsch3/soc.h> |
Scott Wood | ae1df32 | 2015-03-20 19:28:13 -0700 | [diff] [blame^] | 10 | #include <asm/io.h> |
| 11 | |
| 12 | static void erratum_a008751(void) |
| 13 | { |
| 14 | #ifdef CONFIG_SYS_FSL_ERRATUM_A008751 |
| 15 | u32 __iomem *scfg = (u32 __iomem *)SCFG_BASE; |
| 16 | |
| 17 | writel(0x27672b2a, scfg + SCFG_USB3PRM1CR / 4); |
| 18 | #endif |
| 19 | } |
Scott Wood | f64c98c | 2015-03-20 19:28:12 -0700 | [diff] [blame] | 20 | |
| 21 | void fsl_lsch3_early_init_f(void) |
| 22 | { |
Scott Wood | ae1df32 | 2015-03-20 19:28:13 -0700 | [diff] [blame^] | 23 | erratum_a008751(); |
Scott Wood | f64c98c | 2015-03-20 19:28:12 -0700 | [diff] [blame] | 24 | init_early_memctl_regs(); /* tighten IFC timing */ |
| 25 | } |