From: Marek Behun <marek.behun@nic.cz>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 2/4] mvebu: turris_omnia: remove redundant code
Date: Mon, 29 Apr 2019 22:54:59 +0200 [thread overview]
Message-ID: <20190429225459.56dcee4b@nic.cz> (raw)
In-Reply-To: <87zhoafii9.fsf@tarshish>
The next version of this patchseries will include patch with name
"arm: mvebu: turris_omnia: move I2C dependencies to Kconfig",
which adds
select DM_I2C
to
config TARGET_TURRIS_OMNIA
Marek
On Sun, 28 Apr 2019 14:59:10 +0300
Baruch Siach <baruch@tkos.co.il> wrote:
> Hi Marek,
>
> On Thu, Apr 25 2019, Marek Behún wrote:
> > The i2c slave disabling is done by mvtwsi driver and is not needed here.
> >
> > Signed-off-by: Marek Behún <marek.behun@nic.cz>
> > Cc: Baruch Siach <baruch@tkos.co.il>
> > ---
> > board/CZ.NIC/turris_omnia/turris_omnia.c | 11 -----------
> > 1 file changed, 11 deletions(-)
> >
> > diff --git a/board/CZ.NIC/turris_omnia/turris_omnia.c b/board/CZ.NIC/turris_omnia/turris_omnia.c
> > index c21d2f3ffa..c446f471a6 100644
> > --- a/board/CZ.NIC/turris_omnia/turris_omnia.c
> > +++ b/board/CZ.NIC/turris_omnia/turris_omnia.c
> > @@ -297,8 +297,6 @@ static int set_regdomain(void)
> >
> > int board_early_init_f(void)
> > {
> > - u32 i2c_debug_reg;
> > -
> > /* Configure MPP */
> > writel(0x11111111, MVEBU_MPP_BASE + 0x00);
> > writel(0x11111111, MVEBU_MPP_BASE + 0x04);
> > @@ -321,15 +319,6 @@ int board_early_init_f(void)
> > writel(OMNIA_GPP_OUT_ENA_LOW, MVEBU_GPIO0_BASE + 0x04);
> > writel(OMNIA_GPP_OUT_ENA_MID, MVEBU_GPIO1_BASE + 0x04);
> >
> > - /*
> > - * Disable I2C debug mode blocking 0x64 I2C address.
> > - * Note: that would be redundant once Turris Omnia migrates to DM_I2C,
> > - * because the mvtwsi driver includes equivalent code.
> > - */
>
> As this comment notes, Turris Omnia needs to migrate to DM_I2C before
> removing this code. The non DM code path in the mvtwsi driver does not
> disable the debug I2C client.
>
> Is there a pending patch that enables DM_I2C for Turris Omnia?
>
> > - i2c_debug_reg = readl(MVEBU_TWSI_BASE + MVTWSI_ARMADA_DEBUG_REG);
> > - i2c_debug_reg &= ~(1<<18);
> > - writel(i2c_debug_reg, MVEBU_TWSI_BASE + MVTWSI_ARMADA_DEBUG_REG);
> > -
> > return 0;
> > }
>
> baruch
>
next prev parent reply other threads:[~2019-04-29 20:54 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-04-25 13:30 [U-Boot] [PATCH 0/4] Fixes for Turris Omnia Marek Behún
2019-04-25 13:30 ` [U-Boot] [PATCH 1/4] i2c: mvtwsi: fix disabling i2c slave on Armada 38x Marek Behún
2019-04-25 13:35 ` Pierre Bourdon
2019-04-25 13:38 ` Marek Behún
2019-04-25 13:30 ` [U-Boot] [PATCH 2/4] mvebu: turris_omnia: remove redundant code Marek Behún
2019-04-28 11:59 ` Baruch Siach
2019-04-29 20:54 ` Marek Behun [this message]
2019-04-25 13:30 ` [U-Boot] [PATCH 3/4] mvebu: turris_omnia: fix eeprom/mcu device names Marek Behún
2019-04-25 13:30 ` [U-Boot] [PATCH 4/4] arm: mvebu: turris_omnia: add XHCI to defconfig Marek Behún
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=20190429225459.56dcee4b@nic.cz \
--to=marek.behun@nic.cz \
--cc=u-boot@lists.denx.de \
/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.