[PATCH 2/4] board/BuR/common: add parameter for reset controller I2C bus selection
Bernhard Messerklinger
bernhard.messerklinger at br-automation.com
Tue Nov 5 14:43:37 CET 2024
> From: Tom Rini
> Sent: Tuesday, October 29, 2024 5:37 PM
> To: Bernhard Messerklinger
> Cc: u-boot at lists.denx.de; Wolfgang Wallner
> Subject: Re: [PATCH 2/4] board/BuR/common: add parameter for reset controller I2C bus selection
>
>> On Tue, Oct 29, 2024 at 09:52:10AM +0100, Bernhard Messerklinger wrote:
>>
>> Normally B&R reset controllers are located at I2C bus 0. This patch adds
>> the possibility to change this bus number with BR_RESETC_I2CBUS.
>>
>> Signed-off-by: Bernhard Messerklinger <bernhard.messerklinger at br-automation.com>
>> ---
>>
>> board/BuR/common/br_resetc.c | 9 +++++++--
>> 1 file changed, 7 insertions(+), 2 deletions(-)
>>
>> diff --git a/board/BuR/common/br_resetc.c b/board/BuR/common/br_resetc.c
>> index f5d09fef3d..827ea6ba35 100644
>> --- a/board/BuR/common/br_resetc.c
>> +++ b/board/BuR/common/br_resetc.c
>> @@ -52,10 +52,15 @@ static int resetc_init(void)
>> {
>> struct udevice *i2cbus;
>> int rc;
>> +#if !defined(BR_RESETC_I2CBUS)
>> + int busno = 0;
>> +#else
>> + int busno = CONFIG_BR_RESETC_I2CBUS;
>> +#endif
>
> You need to introduce board/BuR/common/Kconfig and add the symbol
> BR_RESETC_I2CBUS there.
>
> --
> Tom
I will create a v2 of the patch and resend it.
Best Regards,
Bernhard Messerklinger
More information about the U-Boot
mailing list