From: Tom Rini Date: Mon, 10 Nov 2014 13:46:38 -0500 Subject: [U-Boot] [PATCH v4 3/3] omap_hsmmc: Board-specific TWL4030 MMC power initializations In-Reply-To: <1415482164.2838.10.camel@aldrin> References: <1415476547-17896-1-git-send-email-contact@paulk.fr> <1415476547-17896-4-git-send-email-contact@paulk.fr> <1415482164.2838.10.camel@aldrin> Message-ID: <20141110184638.GB24724@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sat, Nov 08, 2014 at 10:29:24PM +0100, Paul Kocialkowski wrote: > Le samedi 08 novembre 2014 ? 20:55 +0100, Paul Kocialkowski a ?crit : > > Boards using the TWL4030 regulator may not all use the LDOs the same way > > (e.g. MMC2 power can be controlled by another LDO than VMMC2). > > This delegates TWL4030 MMC power initializations to board-specific functions, > > that may still call twl4030_power_mmc_init for the default behavior. > > > > Signed-off-by: Paul Kocialkowski > > --- > > board/comelit/dig297/dig297.c | 5 +++++ > > board/compulab/cm_t35/cm_t35.c | 7 +++++++ > > board/corscience/tricorder/tricorder.c | 7 +++++++ > > board/isee/igep00x0/igep00x0.c | 7 +++++++ > > board/logicpd/omap3som/omap3logic.c | 7 +++++++ > > board/logicpd/zoom1/zoom1.c | 5 +++++ > > board/matrix_vision/mvblx/mvblx.c | 6 ++++++ > > board/nokia/rx51/rx51.c | 6 ++++++ > > board/overo/overo.c | 7 +++++++ > > board/pandora/pandora.c | 5 +++++ > > board/technexion/tao3530/tao3530.c | 7 +++++++ > > board/ti/beagle/beagle.c | 7 +++++++ > > board/ti/evm/evm.c | 7 +++++++ > > board/ti/sdp3430/sdp.c | 5 +++++ > > board/timll/devkit8000/devkit8000.c | 7 +++++++ > > drivers/mmc/omap_hsmmc.c | 7 +------ > > 16 files changed, 96 insertions(+), 6 deletions(-) > > > > diff --git a/board/comelit/dig297/dig297.c b/board/comelit/dig297/dig297.c > > index 2b826df..9d4c41b 100644 > > --- a/board/comelit/dig297/dig297.c > > +++ b/board/comelit/dig297/dig297.c > > @@ -133,6 +133,11 @@ int board_mmc_init(bd_t *bis) > > { > > return omap_mmc_init(0, 0, 0, -1, -1); > > } > > + > > +void board_mmc_power_init(void) > > +{ > > I just figured, in the context of the SPL, board_mmc_init will be called > from omap3/board.c instead of the board file, so perhaps it would be > worth adding, in board_mmc_power_init: #ifdef CONFIG_SPL_BUILD and then > checking spl_boot_device to only enable the relevant LDO. If we get to this point we can do the same thing we do for board_mmc_init which is have one in say arch/arm/cpu/armv7/omap-common/boot-common.c that checks spl_boot_device() -- Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: signature.asc Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: