Message ID | 20200114061314.148491-8-hs@denx.de |
---|---|
State | New |
Headers | show |
Series | wandboard: add imx6dl rev d1 support | expand |
Hi Heiko, On Tue, Jan 14, 2020 at 3:14 AM Heiko Schocher <hs at denx.de> wrote: > +#if defined(CONFIG_SPL_BUILD) > + /* in SPL we use only revision D1 DTB */ > + if (1) { > +#else > if (is_revd1()) { > +#endif Is there a way to improve is_revd1() so that it can call i2c_probe() and detect whether the PMIC is present or not? Thanks
Hello Fabio, Am 15.01.2020 um 20:54 schrieb Fabio Estevam: > Hi Heiko, > > On Tue, Jan 14, 2020 at 3:14 AM Heiko Schocher <hs at denx.de> wrote: > >> +#if defined(CONFIG_SPL_BUILD) >> + /* in SPL we use only revision D1 DTB */ >> + if (1) { >> +#else >> if (is_revd1()) { >> +#endif > > Is there a way to improve is_revd1() so that it can call i2c_probe() > and detect whether the PMIC is present or not? It is WIP so maybe yes ;-) bye, Heiko
diff --git a/board/wandboard/wandboard.c b/board/wandboard/wandboard.c index ae4ad765a83..6b7210c0992 100644 --- a/board/wandboard/wandboard.c +++ b/board/wandboard/wandboard.c @@ -489,7 +489,12 @@ int board_fit_config_name_match(const char *name) return 0; } +#if defined(CONFIG_SPL_BUILD) + /* in SPL we use only revision D1 DTB */ + if (1) { +#else if (is_revd1()) { +#endif if (is_mx6dq()) { if (!strcmp(name, "imx6q-wandboard-revd1")) return 0;
Signed-off-by: Heiko Schocher <hs at denx.de> --- board/wandboard/wandboard.c | 5 +++++ 1 file changed, 5 insertions(+)