From: Lubomir Popov <lpopov@mm-sol.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH V2 09/12] mmc: omap_hsmmc: add mmc1 pbias, ldo1
Date: Thu, 06 Jun 2013 15:17:09 +0300 [thread overview]
Message-ID: <51B07DC5.7010505@mm-sol.com> (raw)
In-Reply-To: <51B071FB.5060601@ti.com>
Hi Lokesh,
On 06/06/13 14:26, Lokesh Vutla wrote:
> Hi Lubomir,
> On Thursday 06 June 2013 12:55 PM, Lubomir Popov wrote:
>> Hi Tom,
>>
>> On 05/06/13 16:45, Tom Rini wrote:
>>> On Wed, Jun 05, 2013 at 11:03:26AM +0300, Lubomir Popov wrote:
>>>
[snip]
>>>
>>> OK, lets see. That so lets keep your patch as-is, since we've now got
>>> -ffunction-sections/-fdata-sections/--gc-sections on ARM for main
>>> U-Boot, these small things won't hurt like they used to.
>>>
>> OK, but then I would like to do some cleanup first - remove the audio
>> power stuff (shall have it in my board file), as well as either sort out
>> the function naming:
>>
>> - Those functions that are specific to a SoC+PMIC combination are
>> named e.g. twl603x_... or tps659038_... so that they explicitly
>> indicate the hardware that they are working with (actually almost all
>> functions are such). This is however sort of regression, and requires
>> fixes in the files calling these functions;
>>
>> or, alternatively:
>>
>> - Introduce generic functions with fixed names, palmas_bla_bla(),
>> sort of wrappers, which in their bodies perform the appropriate action
>> based on the #ifdefs defining the platform hardware (where we could also
>> define the particular LDO which for example a palmas_mmc1_poweron_ldo()
>> generic function would manipulate). Drawback: again #ifdefs.
>> Advantage: single place where this stuff is located, and where other
>> PMIC/LDO combinations can be added without affecting other code.
> I think, we can have function pointers for and can populate data in the
> beginning or from board file based on Soc, similarly what we did for
> prcm structure.
> Regards,
> Lokesh
OK, sounds reasonable. I think this should be done in a future release
however, after careful investigation and planning. At present, I guess,
we are staying with the current situation.
Today I shall submit an updated version of my patch to the palmas
driver - sort of compromise between clean code and ease of use. I
have included your stuff there, so should work out of the box on
the dra7xx_evm. Please note that now we have a semi-generic function
to power on the appropriate SDMMC LDO: the old palmas_mmc1_poweron_ldo(),
which you shall have to call in omap_hsmmc. Differentiation of which
particular LDO to control within which PMIC is done in driver, based
on the board #ifdefs.
If Tom approves this patch and applies it, we shall all be happy with
working boards, although the code may not be perfect.
I would also like to ask you to send me a Register Manual of the
TPS659038/9, if possible. If you have any NDA concerns, then just
check if the LDO1 control register has a BYPASS option and tell
me. Thanks.
Best regards,
Lubo
next prev parent reply other threads:[~2013-06-06 12:17 UTC|newest]
Thread overview: 35+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-30 13:19 [U-Boot] [PATCH V2 00/12] ARM: DRA7xx: Update support for DRA7xx Soc's Lokesh Vutla
2013-05-30 13:19 ` [U-Boot] [PATCH V2 01/12] ARM: DRA7xx: Add control id code for DRA7xx Lokesh Vutla
2013-05-30 13:19 ` [U-Boot] [PATCH V2 02/12] ARM: DRA7xx: power Add support for tps659038 PMIC Lokesh Vutla
2013-05-30 13:19 ` [U-Boot] [PATCH V2 03/12] ARM: DRA7xx: clocks: Fixing i2c_init for PMIC Lokesh Vutla
2013-05-30 13:19 ` [U-Boot] [PATCH V2 04/12] ARM: OMAP5: DRA7xx: support class 0 optimized voltages Lokesh Vutla
2013-05-30 13:19 ` [U-Boot] [PATCH V2 05/12] ARM: DRA7xx: Do not enable srcomp for DRA7xx Soc's Lokesh Vutla
2013-05-30 13:19 ` [U-Boot] [PATCH V2 06/12] ARM: DRA7xx: Change the Debug UART to UART1 Lokesh Vutla
2013-05-30 13:19 ` [U-Boot] [PATCH V2 07/12] ARM: DRA7xx: Correct the SYS_CLK to 20MHZ Lokesh Vutla
2013-05-30 13:19 ` [U-Boot] [PATCH V2 08/12] ARM: DRA7xx: Correct SRAM END address Lokesh Vutla
2013-05-30 13:19 ` [U-Boot] [PATCH V2 09/12] mmc: omap_hsmmc: add mmc1 pbias, ldo1 Lokesh Vutla
2013-05-30 14:26 ` Lubomir Popov
2013-06-03 11:01 ` Lokesh Vutla
2013-06-03 19:58 ` Lubomir Popov
2013-06-04 5:13 ` Lokesh Vutla
2013-06-04 21:06 ` Tom Rini
2013-06-05 6:06 ` Lokesh Vutla
2013-06-05 8:03 ` Lubomir Popov
2013-06-05 13:45 ` Tom Rini
2013-06-06 7:25 ` Lubomir Popov
2013-06-06 11:26 ` Lokesh Vutla
2013-06-06 12:17 ` Lubomir Popov [this message]
2013-06-05 14:01 ` Nishanth Menon
2013-06-05 16:35 ` Lubomir Popov
2013-06-05 16:55 ` Nishanth Menon
2013-06-05 20:11 ` Lubomir Popov
2013-06-03 12:48 ` [U-Boot] [PATCH V3] " Lokesh Vutla
2013-06-05 6:26 ` [U-Boot] [PATCH V4 09/12] " Lokesh Vutla
2013-06-06 15:04 ` [U-Boot] [PATCH V5 09/12] mmc: omap_hsmmc: Update pbias programming Lokesh Vutla
2013-05-30 13:19 ` [U-Boot] [PATCH V2 10/12] ARM: DRA7xx: Update pinmux data Lokesh Vutla
2013-05-30 13:19 ` [U-Boot] [PATCH V2 11/12] ARM: DRA7xx: clocks: Update PLL values Lokesh Vutla
2013-05-30 13:19 ` [U-Boot] [PATCH V2 12/12] ARM: DRA7xx: EMIF: Change settings required for EVM board Lokesh Vutla
2013-06-06 11:28 ` [U-Boot] [PATCH V2 00/12] ARM: DRA7xx: Update support for DRA7xx Soc's Lokesh Vutla
2013-06-06 13:26 ` Tom Rini
2013-06-06 13:37 ` Lubomir Popov
2013-06-06 14:00 ` Lokesh Vutla
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=51B07DC5.7010505@mm-sol.com \
--to=lpopov@mm-sol.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.