All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@xilinx.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/4] mmc: zynq: Determine base clock frequency via clock framework
Date: Mon, 2 Jan 2017 15:07:40 +0100	[thread overview]
Message-ID: <a56570a4-c2d0-4c06-68e6-333449fd9c8c@xilinx.com> (raw)
In-Reply-To: <6a56f09e-9060-55af-31eb-ab9599c8a299@herbrechtsmeier.net>

On 2.1.2017 15:02, Stefan Herbrechtsmeier wrote:
> Hi Michal,
> 
> Am 02.01.2017 um 08:00 schrieb Michal Simek:
>> Hi,
>>
>> On 27.12.2016 11:10, Stefan Herbrechtsmeier wrote:
>>> Hi Michal,
>>>
>>> Am 28.11.2016 um 08:42 schrieb Michal Simek:
>>>> Hi, +Siva,
>>> <snip>
>>>
>>>> Moving current zynq clk driver to driver model shouldn't be that hard
>>>> because all should be in place. and then you can keep just that
>>>> if defined(CONFIG_CLK) part above.
>>> I have port the CLK driver to DM but therefore I have to rework it and
>>> remove the clk cmd support. I will post a tested version next week.
>> ok. I want to know the reason why this is necessary.
> The zynq clock driver save all data even the static clock tree and
> unused information in an dynamic array. This needs much memory and
> complicates the strip down for the SPL.

For SPL this should be out for sure - there is no reason to have this there.

> 
> The clock framework doesn't support the clock command nor supplies the
> names of clocks. If you prefer I could add the clock command
> implementation to the DM zynq driver or keep clock driver specific data
> in the mach directory.

We have added that clk command and it should stay there. Definitely
there could be new subcommands added in connection to DM but that can be
solved separately.

> Should I move everything in one patch or should I first remove some
> function, move the clock driver and add functionality back?

For all these conversions it should be done in 3 steps.

1. Add ifdef CONFIG_CLK
#else
#endif

2. Move drivers and enable CONFIG_CLK by default

3. Remove !CONFIG_CLK part.


I expect your patches will do ad 1). And you move mmc driver which is
part ad 2). And then we can check what else is necessary to move (We
have moved gem recently for zynqmp). And step 3 should be done when all
drivers are moved.

Thanks,
Michal

  reply	other threads:[~2017-01-02 14:07 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-25 13:59 [U-Boot] [PATCH v2 0/4] mmc: sdhci: Add support for frequency constrained peripheral interfaces Stefan Herbrechtsmeier
2016-11-25 13:59 ` [U-Boot] [PATCH v2 1/4] mmc: sdhci: Distinguish between base clock and maximum peripheral frequency Stefan Herbrechtsmeier
2016-12-01  6:42   ` Jaehoon Chung
2016-12-01 14:03     ` Stefan.Herbrechtsmeier at weidmueller.de
2016-11-25 13:59 ` [U-Boot] [PATCH v2 2/4] serial: zynq: Remove unused index from get uart clock function Stefan Herbrechtsmeier
2016-11-28  7:36   ` Michal Simek
2016-11-25 13:59 ` [U-Boot] [PATCH v2 3/4] mmc: zynq: Determine base clock frequency via clock framework Stefan Herbrechtsmeier
2016-11-28  7:42   ` Michal Simek
2016-12-27 10:10     ` Stefan Herbrechtsmeier
2017-01-02  7:00       ` Michal Simek
2017-01-02 14:02         ` Stefan Herbrechtsmeier
2017-01-02 14:07           ` Michal Simek [this message]
2016-11-25 13:59 ` [U-Boot] [PATCH v2 4/4] mmc: zynq: Add fdt max-frequency support Stefan Herbrechtsmeier
2016-11-28  7:55   ` 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=a56570a4-c2d0-4c06-68e6-333449fd9c8c@xilinx.com \
    --to=michal.simek@xilinx.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 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.