From: sbabic at denx.de <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 4/4] mx6cuboxi: enable OF_CONTROL with DM_MMC and DM_USB
Date: Sun, 29 Dec 2019 11:27:09 +0100 (CET) [thread overview]
Message-ID: <20191229102709.EA9D7817EE@phobos.denx.de> (raw)
In-Reply-To: <4705328f1b41206c29cd6ba45fb1162586675b7c.1573389487.git.baruch@tkos.co.il>
> Make first step in DT/DM migration. Enable OF_CONTROL only for the main
> U-Boot image for now.
> Remove mmc_init_main() because board_mmc_init() is not called when
> DM_MMC is enabled.
> DM_MMC requires DM_GPIO for card-detect to work. That in turn makes gpio
> request mandatory. Add code to request/free gpios in platform code.
> MMC devices are now numbered according to DT. The SD card is 1, and eMMC
> is 2. Account for that in board_mmc_get_env_dev(), BOOT_TARGET_DEVICES,
> and has_emmc().
> DM_MMC requires BLK. However, the (BLK && !DM_USB) combination disables
> USB_STORAGE. Enable DM_USB to preserve USB functionality. Add also
> DM_REGULATORS for the USB power controller. This allows us to drop
> board_ehci_hcd_init() and setup_usb().
> Runtime selection of DT is necessary because of the i.MX6QD vs i.MX6SDL
> incompatibility. DT selection does not rely on GPIOs, since DM_GPIO
> depends on DT. Instead, we take one "fully featured" DT of each variant.
> That should be enough to boot from both SD card and eMMC.
> Since we don't select the exact DT, override the generic
> show_board_info() that shows the selected DT 'model' field.
> Signed-off-by: Baruch Siach <baruch@tkos.co.il>
> Reviewed-by: Fabio Estevam <festevam@gmail.com>
Applied to u-boot-imx, -next, thanks !
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================
next prev parent reply other threads:[~2019-12-29 10:27 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-11-10 12:38 [U-Boot] [PATCH v2 1/4] dt-bindings: add imx-audmux macro definitions Baruch Siach
2019-11-10 12:38 ` [U-Boot] [PATCH v2 2/4] arm: dts: hummingboard: add cubox/hummingboard DT (part 1 of 2) Baruch Siach
2019-11-10 12:58 ` Fabio Estevam
2019-12-29 10:24 ` sbabic at denx.de
2019-11-10 12:38 ` [U-Boot] [PATCH v2 3/4] arm: dts: hummingboard: add cubox/hummingboard DT (part 2 " Baruch Siach
2019-11-10 12:58 ` Fabio Estevam
2019-12-29 10:26 ` sbabic at denx.de
2019-11-10 12:38 ` [U-Boot] [PATCH v2 4/4] mx6cuboxi: enable OF_CONTROL with DM_MMC and DM_USB Baruch Siach
2019-11-10 12:59 ` Fabio Estevam
2019-12-29 10:27 ` sbabic at denx.de [this message]
2019-11-10 12:57 ` [U-Boot] [PATCH v2 1/4] dt-bindings: add imx-audmux macro definitions Fabio Estevam
2019-12-29 10:24 ` sbabic at denx.de
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=20191229102709.EA9D7817EE@phobos.denx.de \
--to=sbabic@denx.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox