All of lore.kernel.org
 help / color / mirror / Atom feed
From: Tom Rini <trini@konsulko.com>
To: Bernhard Messerklinger <bernhard.messerklinger@br-automation.com>
Cc: u-boot@lists.denx.de,
	Wolfgang Wallner <wolfgang.wallner@br-automation.com>
Subject: Re: [PATCH 2/4] board/BuR/common: add parameter for reset controller I2C bus selection
Date: Tue, 29 Oct 2024 10:37:28 -0600	[thread overview]
Message-ID: <20241029163728.GD4959@bill-the-cat> (raw)
In-Reply-To: <20241029085258.1740289-3-bernhard.messerklinger@br-automation.com>

[-- Attachment #1: Type: text/plain, Size: 936 bytes --]

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@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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]

  reply	other threads:[~2024-10-29 16:37 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-29  8:52 [PATCH 0/4] Update board/BuR/common to keep current mainline boards compatible Bernhard Messerklinger
2024-10-29  8:52 ` [PATCH 1/4] board/BuR/common: use strlcpy instead of strncpy Bernhard Messerklinger
2024-10-29  8:52 ` [PATCH 2/4] board/BuR/common: add parameter for reset controller I2C bus selection Bernhard Messerklinger
2024-10-29 16:37   ` Tom Rini [this message]
2024-11-05 13:43     ` Bernhard Messerklinger
2024-10-29  8:52 ` [PATCH 3/4] board/BuR/common: split br_resetc_bmode function Bernhard Messerklinger
2024-10-29  8:52 ` [PATCH 4/4] board/BuR/zynq: initial commit Bernhard Messerklinger
2024-11-06  8:37   ` Michal Simek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241029163728.GD4959@bill-the-cat \
    --to=trini@konsulko.com \
    --cc=bernhard.messerklinger@br-automation.com \
    --cc=u-boot@lists.denx.de \
    --cc=wolfgang.wallner@br-automation.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.