]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
pico-imx7d: enable boot without PMIC
authorJun Nie <jun.nie@linaro.org>
Wed, 8 May 2019 06:38:36 +0000 (14:38 +0800)
committerStefano Babic <sbabic@denx.de>
Tue, 11 Jun 2019 08:42:48 +0000 (10:42 +0200)
If PMIC is not probed successfully, it is still OK to boot
with default configuration although power is not optimized.

Default voltage of SW1A/SW1B is 1.1V/1.0V for PC32PF3000A1EP
on pico according to table 42 of spec of PF3000 ver 9.0.

Default mode of SW1A/SW1B is APS as expected(table 47).

Signed-off-by: Jun Nie <jun.nie@linaro.org>
board/technexion/pico-imx7d/pico-imx7d.c

index 5b357f265a178d7da4f3d1337a5d84f7e6d6c668..e3d75e549a6da098d580348eb8ca929728fa7e37 100644 (file)
@@ -85,8 +85,11 @@ int power_init_board(void)
 
        p = pmic_get("PFUZE3000");
        ret = pmic_probe(p);
-       if (ret)
-               return ret;
+       if (ret) {
+               printf("Warning:  Cannot find PMIC PFUZE3000\n");
+               printf("\tPower consumption is not optimized.\n");
+               return 0;
+       }
 
        pmic_reg_read(p, PFUZE3000_DEVICEID, &reg);
        pmic_reg_read(p, PFUZE3000_REVID, &rev_id);