* [U-Boot] [PATCH 09/10] imx8m: evk: spl: probe clk in spl early stage
@ 2019-11-04 8:54 sbabic at denx.de
0 siblings, 0 replies; 2+ messages in thread
From: sbabic at denx.de @ 2019-11-04 8:54 UTC (permalink / raw)
To: u-boot
> We are going to add i2c pmic support before dram could be used.
> So we need enable clk driver earlier, so use spl_early_init
> and move clock controller probe eariler to board_init_f.
> Signed-off-by: Peng Fan <peng.fan@nxp.com>
Applied to u-boot-imx, master, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH 00/10] Enable i.MX8MM EVK BD71837 pmic
@ 2019-10-16 10:24 Peng Fan
2019-10-16 10:24 ` [U-Boot] [PATCH 09/10] imx8m: evk: spl: probe clk in spl early stage Peng Fan
0 siblings, 1 reply; 2+ messages in thread
From: Peng Fan @ 2019-10-16 10:24 UTC (permalink / raw)
To: u-boot
This patch is to enable BD71837 pmic for i.MX8MM EVK.
Two i.MX8MQ patches are also included.
Peng Fan (10):
imx8m: imx8mq: get chip rev for B1 revision
imx8m: clock: improve irq response latency
imx: imx8mq: add init_nand_clk
imx: spl: implement spl_boot_mode for i.MX7/8/8M
dt-bindings: import usb pd
arm: dts: imx8mm: sync dts from Linux Kernel
pmic: bd71837: drop DEBUG macro
power: pmic: Kconfig: add CONFIG_SPL_DM_PMIC_BD71837
imx8m: evk: spl: probe clk in spl early stage
imx8mm: evk: enable bd71837 pmic
arch/arm/dts/imx8mm-evk-u-boot.dtsi | 22 +-
arch/arm/dts/imx8mm-evk.dts | 285 ++++++++++++++++++++++++-
arch/arm/dts/imx8mm.dtsi | 222 +++++++++++++++----
arch/arm/include/asm/arch-imx8m/clock_imx8mq.h | 2 +
arch/arm/mach-imx/imx8m/clock_imx8mq.c | 16 ++
arch/arm/mach-imx/imx8m/soc.c | 21 +-
arch/arm/mach-imx/spl.c | 29 +++
board/freescale/imx8mm_evk/spl.c | 63 +++++-
configs/imx8mm_evk_defconfig | 5 +-
drivers/power/pmic/Kconfig | 8 +
drivers/power/pmic/bd71837.c | 2 -
include/dt-bindings/usb/pd.h | 88 ++++++++
12 files changed, 692 insertions(+), 71 deletions(-)
create mode 100644 include/dt-bindings/usb/pd.h
--
2.16.4
^ permalink raw reply [flat|nested] 2+ messages in thread
* [U-Boot] [PATCH 09/10] imx8m: evk: spl: probe clk in spl early stage
2019-10-16 10:24 [U-Boot] [PATCH 00/10] Enable i.MX8MM EVK BD71837 pmic Peng Fan
@ 2019-10-16 10:24 ` Peng Fan
0 siblings, 0 replies; 2+ messages in thread
From: Peng Fan @ 2019-10-16 10:24 UTC (permalink / raw)
To: u-boot
We are going to add i2c pmic support before dram could be used.
So we need enable clk driver earlier, so use spl_early_init
and move clock controller probe eariler to board_init_f.
Signed-off-by: Peng Fan <peng.fan@nxp.com>
---
board/freescale/imx8mm_evk/spl.c | 22 +++++++++++-----------
1 file changed, 11 insertions(+), 11 deletions(-)
diff --git a/board/freescale/imx8mm_evk/spl.c b/board/freescale/imx8mm_evk/spl.c
index 043b5f4342..2a5fb27a73 100644
--- a/board/freescale/imx8mm_evk/spl.c
+++ b/board/freescale/imx8mm_evk/spl.c
@@ -41,16 +41,7 @@ void spl_dram_init(void)
void spl_board_init(void)
{
- struct udevice *dev;
- int ret;
-
puts("Normal Boot\n");
-
- ret = uclass_get_device_by_name(UCLASS_CLK,
- "clock-controller at 30380000",
- &dev);
- if (ret < 0)
- printf("Failed to find clock node. Check device tree\n");
}
#ifdef CONFIG_SPL_LOAD_FIT
@@ -90,6 +81,7 @@ int board_early_init_f(void)
void board_init_f(ulong dummy)
{
+ struct udevice *dev;
int ret;
arch_cpu_init();
@@ -105,9 +97,17 @@ void board_init_f(ulong dummy)
/* Clear the BSS. */
memset(__bss_start, 0, __bss_end - __bss_start);
- ret = spl_init();
+ ret = spl_early_init();
if (ret) {
- debug("spl_init() failed: %d\n", ret);
+ debug("spl_early_init() failed: %d\n", ret);
+ hang();
+ }
+
+ ret = uclass_get_device_by_name(UCLASS_CLK,
+ "clock-controller@30380000",
+ &dev);
+ if (ret < 0) {
+ printf("Failed to find clock node. Check device tree\n");
hang();
}
--
2.16.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2019-11-04 8:54 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-11-04 8:54 [U-Boot] [PATCH 09/10] imx8m: evk: spl: probe clk in spl early stage sbabic at denx.de
-- strict thread matches above, loose matches on Subject: below --
2019-10-16 10:24 [U-Boot] [PATCH 00/10] Enable i.MX8MM EVK BD71837 pmic Peng Fan
2019-10-16 10:24 ` [U-Boot] [PATCH 09/10] imx8m: evk: spl: probe clk in spl early stage Peng Fan
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox