Re: [PATCH v4 3/4] rockchip: rk3399: Add ROC-PC-PLUS board detection

Quentin Schulz via U-Boot <[email protected]>
Newsgroups gmane.comp.boot-loaders.u-boot
Message-ID <665c81ce-ab08-45e2-8f94-453caa321d3f__30992.7665906557$1786608335$gmane$org@0leil.net>
Hi Fabio,

On 8/12/26 11:48 PM, Fabio Estevam wrote:
> Hi Quentin,
> 
> On Wed, Aug 12, 2026 at 5:05 AM Quentin Schulz <[email protected]> wrote:
> 
>> It should be !CONFIG_IS_ENABLED(DM_I2C) as CONFIG_IS_ENABLED is going to
>> add the appropriate prefix based on the current stage being built (so
>> definitely no SPL/TPL/VPL to be added manually) and CONFIG_SPL_I2C is
>> not enough to build the dm_i2c_probe implementation, we need
>> CONFIG_SPL_DM_I2C (well, and CONFIG_SPL_I2C because otherwise the
>> drivers/i2c directory isn't traversed and because SPL_DM_I2C is missing
>> a dependency on it).
> 
> I tested !CONFIG_IS_ENABLED(DM_I2C) alone, but the mezzanine SPL still
> fails to link because SPL_DM_I2C is enabled while SPL_I2C is not.
> 

Yes, because SPL_DM_I2C (and TPL_DM_I2C) do not depend on 
SPL_I2C/TPL_I2C but should. Something else to fix :)

> Checking both works:
> 
> if (!(CONFIG_IS_ENABLED(I2C) && CONFIG_IS_ENABLED(DM_I2C)))
>      return false;
> 
> I tested the mezzanine build successfully with this change.
> 
> I'll use this in v5 unless you see an issue.
> 

Works for me!

Cheers,
Quentin
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.