Skip to contentSkip to conversation

armv8/fsl-layerscape: fdt: On ls1012 don't check sysclk for USB

PATCH New Yingxi Yu 2 participants 4 messages Mar 16, 2017 – Mar 28, 2017 Arm (32-bit)

lore
Share & tools
lore

Yingxi Yu

author
#0 lore raw

PATCH 1/1 armv8/fsl-layerscape: fdt: On ls1012 don't check sysclk for USB

USB requires 100MHz clock. On ls1012, sysclk(125MHz) is not for USB. Another 100MHz clock is for USB. So For USB, check if sysclk is 100MHz is failed on ls1012, sysclk is not for USB. Don't check sysclk for USB on ls1012.

---
 arch/arm/cpu/armv8/fsl-layerscape/fdt.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
arch/arm/cpu/armv8/fsl-layerscape/fdt.c +2 -1
index 26d4a30..762a95b 100644
@@ -387,8 +387,9 @@ void ft_cpu_setup(void *blob, bd_t *bd)
 #ifdef CONFIG_SYS_DPAA_FMAN
 	fdt_fixup_fman_firmware(blob);
 #endif
+#ifndef CONFIG_LS1012A
 	fsl_fdt_disable_usb(blob);
-
+#endif
 #ifdef CONFIG_HAS_FEATURE_GIC64K_ALIGN
 	fdt_fixup_gic(blob);
 #endif
Signature · 1 line
2.1.0.27.g96db324
#1 lore raw

PATCH 1/1 armv8/fsl-layerscape: fdt: On ls1012 don't check sysclk for USB

Quoted 4 lines · Yingxi Yu

USB requires 100MHz clock. On ls1012, sysclk(125MHz) is not for USB. Another 100MHz clock is for USB. So For USB, check if sysclk is 100MHz is failed on ls1012, sysclk is not for USB. Don't check sysclk for USB on ls1012.

Does this only apply to LS1012A? Or does this apply a group of SoCs?

York

author
#2 lore raw

Hi York:

Currenly LS1012A is the only case. If there is other platform apply it in the future, we can add other platform later.

Best Regards

Yingxi Yu

________________________________
发件人: york sun
发送时间: 2017年3月27日 8:29:02
收件人: Yingxi Yu; u-boot at lists.denx.de
主题: Re: [PATCH] armv8/fsl-layerscape: fdt: On ls1012 don't check sysclk for USB

Quoted 4 lines · Yingxi Yu

USB requires 100MHz clock. On ls1012, sysclk(125MHz) is not for USB. Another 100MHz clock is for USB. So For USB, check if sysclk is 100MHz is failed on ls1012, sysclk is not for USB. Don't check sysclk for USB on ls1012.

Does this only apply to LS1012A? Or does this apply a group of SoCs?

York

#3 lore raw

PATCH 1/1 armv8/fsl-layerscape: fdt: On ls1012 don't check sysclk for USB

In reply to Yingxi Yu
Quoted 7 lines · Yingxi Yu

USB requires 100MHz clock. On ls1012, sysclk(125MHz) is not for USB. Another 100MHz clock is for USB. So For USB, check if sysclk is 100MHz is failed on ls1012, sysclk is not for USB. Don't check sysclk for USB on ls1012.

---

Rewrote commit message. Applied to fsl-qoriq master, awaiting upstream. Thanks.

York