From: Baruch Siach <baruch@tkos.co.il>
To: u-boot@lists.denx.de
Subject: [RFC 0/7] mx6cuboxi: enable OF_PLATDATA with MMC support
Date: Mon, 30 Mar 2020 06:54:24 +0300 [thread overview]
Message-ID: <87wo72cxan.fsf@tarshish> (raw)
In-Reply-To: <20200330033158.26751-1-walter.lozano@collabora.com>
Hi Walter,
On Mon, Mar 30 2020, Walter Lozano wrote:
> The SPL in iMX6 boards is restricted to 68 KB as this is the free available
> space in OCRAM for most revisions. In this context, adding OF_CONTROL and DM
> increases the SPL size which could make it difficult to add specific features
> required for custom scenarios.
>
> These patches aim to take advantage of OF_PLATADATA in order to reduce the SPL
> size in this scenario, by parsing DT data to generate platdata structures,
> and thus removing the overhead caused by DT and related libraries.
>
> This series is focused in MMC driver, which is used for boot in boards such as
> Cubox-i. Also, in order to support CD, the OF_PLATDATA support is also
> implemented on GPIO driver.
>
> To make possible to link the CD information found in platdata with a GPIO,
> a new API is suggested, to find/get a device based on its platdata. This
> new API was discussed in [1] but the lack of context made the discussion
> not to progress. With this series, the general idea should be clearer,
> so a better solution could be discussed.
>
> Finally, in order to make use of these new features, enable OF_PLATADATA for
> Cubox-i board, for which OF_CONTROL support is being discussed in [2].
What is the net SPL size reduction of OF_PLATDATA in the Cubox-i case?
Thanks,
baruch
> [1] https://patchwork.ozlabs.org/patch/1249198/
> [2] https://patchwork.ozlabs.org/project/uboot/list/?series=163738
>
> Walter Lozano (7):
> mmc: fsl_esdhc_imx: add OF_PLATDATA support
> mmc: fsl_esdhc_imx: add ofdata_to_platdata support
> dtoc: update dtb_platdata to support cd-gpio
> dm: uclass: add functions to get device by platdata
> gpio: mxc_gpio: add OF_PLATDATA support
> mmc: fsl_esdhc_imx: add CD support when OF_PLATDATA is enabled
> mx6cuboxi: enable OF_PLATDATA
>
> configs/mx6cuboxi_defconfig | 2 +
> drivers/core/device.c | 19 +++++++
> drivers/core/uclass.c | 34 ++++++++++++
> drivers/gpio/mxc_gpio.c | 27 ++++++++-
> drivers/mmc/fsl_esdhc_imx.c | 105 ++++++++++++++++++++++++++++++-----
> include/dm/device.h | 11 ++++
> include/dm/uclass-internal.h | 15 +++++
> include/dm/uclass.h | 15 +++++
> tools/dtoc/dtb_platdata.py | 9 ++-
> 9 files changed, 218 insertions(+), 19 deletions(-)
--
http://baruch.siach.name/blog/ ~. .~ Tk Open Systems
=}------------------------------------------------ooO--U--Ooo------------{=
- baruch at tkos.co.il - tel: +972.52.368.4656, http://www.tkos.co.il -
next prev parent reply other threads:[~2020-03-30 3:54 UTC|newest]
Thread overview: 28+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-03-30 3:31 [RFC 0/7] mx6cuboxi: enable OF_PLATDATA with MMC support Walter Lozano
2020-03-30 3:31 ` [RFC 1/7] mmc: fsl_esdhc_imx: add OF_PLATDATA support Walter Lozano
2020-04-06 3:42 ` Simon Glass
2020-04-07 20:05 ` Walter Lozano
2020-04-08 3:14 ` Simon Glass
2020-04-09 19:06 ` Walter Lozano
2020-04-09 19:36 ` Simon Glass
2020-04-09 19:44 ` Walter Lozano
2020-04-09 19:50 ` Simon Glass
2020-04-09 20:01 ` Walter Lozano
2020-04-17 20:05 ` Walter Lozano
2020-04-21 17:44 ` Simon Glass
2020-03-30 3:31 ` [RFC 2/7] mmc: fsl_esdhc_imx: add ofdata_to_platdata support Walter Lozano
2020-04-06 3:42 ` Simon Glass
2020-04-07 20:05 ` Walter Lozano
2020-03-30 3:31 ` [RFC 3/7] dtoc: update dtb_platdata to support cd-gpio Walter Lozano
2020-04-06 3:42 ` Simon Glass
2020-04-07 20:05 ` Walter Lozano
2020-03-30 3:31 ` [RFC 4/7] dm: uclass: add functions to get device by platdata Walter Lozano
2020-03-30 3:31 ` [RFC 5/7] gpio: mxc_gpio: add OF_PLATDATA support Walter Lozano
2020-04-06 3:42 ` Simon Glass
2020-04-07 20:05 ` Walter Lozano
2020-03-30 3:31 ` [RFC 6/7] mmc: fsl_esdhc_imx: add CD support when OF_PLATDATA is enabled Walter Lozano
2020-03-30 3:31 ` [RFC 7/7] mx6cuboxi: enable OF_PLATDATA Walter Lozano
2020-04-06 3:43 ` Simon Glass
2020-04-07 20:06 ` Walter Lozano
2020-03-30 3:54 ` Baruch Siach [this message]
2020-03-30 14:33 ` [RFC 0/7] mx6cuboxi: enable OF_PLATDATA with MMC support Walter Lozano
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=87wo72cxan.fsf@tarshish \
--to=baruch@tkos.co.il \
--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