All of lore.kernel.org
 help / color / mirror / Atom feed
From: Julian Scheel <julian@jusst.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCHv5 1/4] Revert "tegra: Add support for setting up a as3722 PMIC"
Date: Mon, 12 Sep 2016 09:33:46 +0200	[thread overview]
Message-ID: <50f452af-68cd-9278-2c15-900defd590b6@jusst.de> (raw)
In-Reply-To: <b763d1a8-6050-e6aa-4bb8-ea1fc7cbf9c7@wwwdotorg.org>

On 06.09.2016 20:49, Stephen Warren wrote:
> On 09/06/2016 12:04 PM, Julian Scheel wrote:
>> On 06.09.16 18:50, Stephen Warren wrote:
>>> On 09/05/2016 07:29 AM, Julian Scheel wrote:
>>>> This reverts commit 346451b5888c4663bccef4c5203357319aa41f99.
>>>> The pmic shall be initialised in board specific code, as it is done for
>>>> jetson-tk1 and meerkat. It can't be assumed that all boards have the
>>>> pmic on
>>>> the same i2c bus.
>>>
>>> You can't just revert this, since boards such as nyan-big and venice2
>>> rely on this function being called. Admittedly jetson-tk1 does call this
>>> a second time right now, but none of the other boards appear to.

I checked this again and in fact the only other board besides jetson-tk1 
having CONFIG_AS3722_POWER set is nyan big. All the other tegra boards 
do only call what is in 
board/nvidia/venice2/as3722_init.c:pmic_enable_cpu_vdd(void).

>> Sorry, I missed to adapt the other boards. I don't see another way than
>> having this in each of the boards, as parameters might change, do you?
>
> You can also parametrize the common code; either make it use #defines
> for the bus/device/... number and set those defines in a board-specific
> location, or call functions to retrieve that data which boards need to
> implement in a board-specific location.

Taking into account that currently 2 out of 26 tegra boards use this I 
would prefer not to do this in board2.c, but simply move it to the 
boards nvidia_board_init. Would you be ok with this?

-Julian

  reply	other threads:[~2016-09-12  7:33 UTC|newest]

Thread overview: 28+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-09-05 13:29 [U-Boot] [PATCHv5 0/4] Add Avionic Design Meerkat/Tegra K1 support Julian Scheel
2016-09-05 13:29 ` [U-Boot] [PATCHv5 1/4] Revert "tegra: Add support for setting up a as3722 PMIC" Julian Scheel
2016-09-06 16:50   ` Stephen Warren
2016-09-06 18:04     ` Julian Scheel
2016-09-06 18:49       ` Stephen Warren
2016-09-12  7:33         ` Julian Scheel [this message]
2016-09-12 17:02           ` Stephen Warren
2016-09-12 17:10             ` Julian Scheel
2016-09-12 18:25               ` Stephen Warren
2016-09-05 13:29 ` [U-Boot] [PATCHv5 2/4] power: as3722: Allow using on any i2c bus with any address Julian Scheel
2016-09-06 16:51   ` Stephen Warren
2016-09-05 13:29 ` [U-Boot] [PATCHv5 3/4] ARM: tegra124: Add an option to disable CoreSight Julian Scheel
2016-09-06 16:54   ` Stephen Warren
2016-09-06 18:06     ` Julian Scheel
2016-09-06 18:50       ` Stephen Warren
2016-09-05 13:29 ` [U-Boot] [PATCHv5 4/4] Add support the Avionic Design Meerkat COM and Kein Baseboard Julian Scheel
2016-09-06 17:15   ` Stephen Warren
2016-09-06 18:14     ` Julian Scheel
2016-09-06 18:58       ` Stephen Warren
2016-09-07  6:08         ` Julian Scheel
2016-09-07 16:10           ` Stephen Warren
2016-09-12 14:03     ` Julian Scheel
2016-09-12 16:54       ` Stephen Warren
2016-09-19 13:35         ` Julian Scheel
2016-09-20 16:07           ` Stephen Warren
2016-09-06 18:53   ` Stephen Warren
2016-09-07  6:03     ` Julian Scheel
2016-09-07 16:05       ` Stephen Warren

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=50f452af-68cd-9278-2c15-900defd590b6@jusst.de \
    --to=julian@jusst.de \
    --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.