public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v1] cpu: Add Intel Tangier support
Date: Wed, 05 Jul 2017 22:27:24 +0300	[thread overview]
Message-ID: <1499282844.22624.279.camel@linux.intel.com> (raw)
In-Reply-To: <CAPnjgZ2iWGWbkgJWQHQi89+fH_Jg-9fhM2BhNvD6QC_MQu+rcQ@mail.gmail.com>

On Tue, 2017-06-20 at 13:35 -0600, Simon Glass wrote:
> Hi Andy,
> 
> On 20 June 2017 at 13:02, Andy Shevchenko <andy.shevchenko@gmail.com>
> wrote:
> > On Tue, Jun 20, 2017 at 9:51 PM, Simon Glass <sjg@chromium.org>
> > wrote:
> > > On 20 April 2017 at 03:41, Bin Meng <bmeng.cn@gmail.com> wrote:
> > > Andy, any update on this please? Is it still in progress?
> > 
> > Hi, yes, it is still in progress.
> > The issue is I have not much time to look at it.
> 
> OK thanks.

I'm about to send new version.
Though, there is one thing to be clear of...

> 
> > Can you remind me what is the summary regarding power suppliers?
> > 
> > From hardware point of view there no regulators wrt SDHCI host
> > controllers, only some let's say magic bits that needs to be set or
> > clear.
> 
> The issue is just that we cannot call from drivers into board code. If
> you don't want to model it as a regulator 

Okay, meaning there is no consensus, U-Boot (as I see currently) is
broken in few ways, one of them is ignoring hardware and proposing to
emulate something which certain board doesn't have. That's not how
things work.

Linux kernel is not the same in terms of DM in this case. In Linux this
board (and SDHCI controllers) is represented differently (by emulating
PCI programming interface). And there the PM code is much more
complicated than here.

> perhaps you could call into
> code in arch/arm/cpu/... to flip the bits?

(x86)

It was at very beginning like that, but since SCU and PMU are
represented as system controllers (which they indeed are), the calling
to them from CPU code would be hackish.

So, the only way I see now is to disable SD card slot on that board
blaming U-Boot upstream DM design for that.

-- 
Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Intel Finland Oy

  reply	other threads:[~2017-07-05 19:27 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-18 14:21 [U-Boot] [PATCH v1] cpu: Add Intel Tangier support Andy Shevchenko
2017-04-19  0:12 ` Simon Glass
2017-04-19 11:16   ` Andy Shevchenko
2017-04-20  2:59 ` Bin Meng
2017-04-20  7:23   ` Andy Shevchenko
2017-04-20  9:41     ` Bin Meng
2017-06-20 18:51       ` Simon Glass
2017-06-20 19:02         ` Andy Shevchenko
2017-06-20 19:35           ` Simon Glass
2017-07-05 19:27             ` Andy Shevchenko [this message]
2017-07-05 19:34               ` Simon Glass
2017-07-05 20:06       ` Andy Shevchenko

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=1499282844.22624.279.camel@linux.intel.com \
    --to=andriy.shevchenko@linux.intel.com \
    --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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox