U-Boot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Lokesh Vutla <lokeshvutla@ti.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] board: dra71: Fix selection of OPPs
Date: Thu, 20 Apr 2017 14:09:43 +0530	[thread overview]
Message-ID: <d1a4fd60-258b-0609-e252-8bcc126050a6@ti.com> (raw)
In-Reply-To: <20170416044355.17629-1-lokeshvutla@ti.com>



On Sunday 16 April 2017 10:13 AM, Lokesh Vutla wrote:
> As per the DM[1] Dated June 2016–Revised February 2017, Table 5-3,
> DRA71 supports the following OPPs for various voltage domains:
> 
> VDD_MPU:	OPP_NOM
> VDD_CORE:	OPP_NOM
> VDD_GPU:	OPP_NOM
> VDD_DSPEVE:	OPP_NOM, OPP_HIGH
> VDD_IVA:	OPP_NOM, OPP_HIGH
> 
> This patch add support for selection of the above OPPs instead of
> using OPP_NOM for all voltage domains.
> 
> [1] http://www.ti.com/lit/ds/symlink/dra718.pdf
> 
> Reported-by: Vishal Mahaveer <vishalm@ti.com>
> Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>

Just posted v2 of this patch as fixing efuse reg bits for OPP_HIGH as
pointed out by Suman.

Thanks and regards,
Lokesh

> ---
>  board/ti/dra7xx/evm.c | 29 +++++++++++++++++++++++------
>  1 file changed, 23 insertions(+), 6 deletions(-)
> 
> diff --git a/board/ti/dra7xx/evm.c b/board/ti/dra7xx/evm.c
> index ae2d59da43..0984475d3b 100644
> --- a/board/ti/dra7xx/evm.c
> +++ b/board/ti/dra7xx/evm.c
> @@ -456,27 +456,44 @@ int get_voltrail_opp(int rail_offset)
>  {
>  	int opp;
>  
> -	/*
> -	 * DRA71x supports only OPP_NOM.
> -	 */
> -	if (board_is_dra71x_evm())
> -		return OPP_NOM;
> -
>  	switch (rail_offset) {
>  	case VOLT_MPU:
>  		opp = DRA7_MPU_OPP;
> +		/* DRA71x supports only OPP_NOM for MPU */
> +		if (board_is_dra71x_evm())
> +			opp = OPP_NOM;
>  		break;
>  	case VOLT_CORE:
>  		opp = DRA7_CORE_OPP;
> +		/* DRA71x supports only OPP_NOM for CORE */
> +		if (board_is_dra71x_evm())
> +			opp = OPP_NOM;
>  		break;
>  	case VOLT_GPU:
>  		opp = DRA7_GPU_OPP;
> +		/* DRA71x supports only OPP_NOM for GPU */
> +		if (board_is_dra71x_evm())
> +			opp = OPP_NOM;
>  		break;
>  	case VOLT_EVE:
>  		opp = DRA7_DSPEVE_OPP;
> +		/*
> +		 * DRA71x does not support OPP_OD for EVE.
> +		 * If OPP_OD is selected by menuconfig, fallback
> +		 * to OPP_NOM.
> +		 */
> +		if (board_is_dra71x_evm() && opp == OPP_OD)
> +			opp = OPP_NOM;
>  		break;
>  	case VOLT_IVA:
>  		opp = DRA7_IVA_OPP;
> +		/*
> +		 * DRA71x does not support OPP_OD for IVA.
> +		 * If OPP_OD is selected by menuconfig, fallback
> +		 * to OPP_NOM.
> +		 */
> +		if (board_is_dra71x_evm() && opp == OPP_OD)
> +			opp = OPP_NOM;
>  		break;
>  	default:
>  		opp = OPP_NOM;
> 

      parent reply	other threads:[~2017-04-20  8:39 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-16  4:43 [U-Boot] [PATCH] board: dra71: Fix selection of OPPs Lokesh Vutla
2017-04-17 16:15 ` Tom Rini
2017-04-20  8:37 ` [U-Boot] [PATCH v2] " Lokesh Vutla
2017-04-28 13:08   ` [U-Boot] [U-Boot,v2] " Tom Rini
2017-04-20  8:39 ` Lokesh Vutla [this message]

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=d1a4fd60-258b-0609-e252-8bcc126050a6@ti.com \
    --to=lokeshvutla@ti.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox