public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Joonyoung Shim <jy0922.shim@samsung.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/6] Exynos542x: Add and enable	get_periph_rate support
Date: Fri, 16 Jan 2015 14:10:35 +0900	[thread overview]
Message-ID: <54B89D4B.9050403@samsung.com> (raw)
In-Reply-To: <54B89A79.2030205@samsung.com>

Hi,

On 01/16/2015 01:58 PM, Joonyoung Shim wrote:
> Hi,
> 
> On 01/15/2015 10:31 PM, Akshay Saraswat wrote:
>> We planned to fetch peripheral rate through one generic API per
>> peripheral. These generic peripheral functions are in turn
>> expected to fetch apt values from a function refactored as
>> per SoC versions. This patch adds support for fetching peripheral
>> rates for Exynos5420 and Exynos5800.
>>
>> Signed-off-by: Akshay Saraswat <akshay.s@samsung.com>
>> ---
>> Changes since v1:
>> 	- Changes suuport -> support in commit message.
>> 	- Removed position change of exynos5420_get_pll_clk.
>> 	- Removed #ifdef.
>>
>>  arch/arm/cpu/armv7/exynos/clock.c      | 151 +++++++++++++++++++++++++++++++--
>>  arch/arm/include/asm/arch-exynos/clk.h |   5 +-
>>  2 files changed, 148 insertions(+), 8 deletions(-)
>>

[snip]

>> diff --git a/arch/arm/include/asm/arch-exynos/clk.h b/arch/arm/include/asm/arch-exynos/clk.h
>> index db24dc0..606b3ef 100644
>> --- a/arch/arm/include/asm/arch-exynos/clk.h
>> +++ b/arch/arm/include/asm/arch-exynos/clk.h
>> @@ -23,8 +23,9 @@
>>  #define SET_RATIO(x, y)		((y & 0xf) << (x << 4))
>>  
>>  enum pll_src_bit {
>> -	EXYNOS_SRC_MPLL = 6,
>> -	EXYNOS_SRC_EPLL,
>> +	EXYNOS542x_SRC_MPLL = 3,
>> +	EXYNOS_SRC_MPLL = EXYNOS542x_SRC_EPLL = 6,
>> +	EXYNOS_SRC_EPLL = EXYNOS542x_SRC_RPLL,
>>  	EXYNOS_SRC_VPLL,
>>  };

  CC      arch/arm/cpu/armv7/exynos/clock.o
In file included from arch/arm/cpu/armv7/exynos/clock.c:11:0:
./arch/arm/include/asm/arch/clk.h:27:20: error: ?EXYNOS542x_SRC_EPLL? undeclared here (not in a function)
  EXYNOS_SRC_MPLL = EXYNOS542x_SRC_EPLL = 6,
                    ^
./arch/arm/include/asm/arch/clk.h:28:20: error: ?EXYNOS542x_SRC_RPLL? undeclared here (not in a function)
  EXYNOS_SRC_EPLL = EXYNOS542x_SRC_RPLL,
                    ^
make[2]: *** [arch/arm/cpu/armv7/exynos/clock.o] Error 1
make[1]: *** [arch/arm/cpu/armv7/exynos] Error 2
make: *** [arch/arm/cpu/armv7] Error 2

Thanks.

> 
> Could you use one item by one line like below?
> 
> diff --git a/arch/arm/include/asm/arch-exynos/clk.h b/arch/arm/include/asm/arch-exynos/clk.h
> index db24dc0..da9bfcd 100644
> --- a/arch/arm/include/asm/arch-exynos/clk.h
> +++ b/arch/arm/include/asm/arch-exynos/clk.h
> @@ -26,6 +26,9 @@ enum pll_src_bit {
>  	EXYNOS_SRC_MPLL = 6,
>  	EXYNOS_SRC_EPLL,
>  	EXYNOS_SRC_VPLL,
> +	EXYNOS542x_SRC_MPLL = 3,
> +	EXYNOS542x_SRC_EPLL = 6,
> +	EXYNOS542x_SRC_RPLL,
>  };
>  
>  unsigned long get_pll_clk(int pllreg);
> 
> Thanks.
> _______________________________________________
> U-Boot mailing list
> U-Boot at lists.denx.de
> http://lists.denx.de/mailman/listinfo/u-boot
> 

  reply	other threads:[~2015-01-16  5:10 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-15 13:31 [U-Boot] [PATCH v2 0/4] Exynos5: Fix warnings and enrich clock_get_periph_rate Akshay Saraswat
2015-01-15 13:31 ` [U-Boot] [PATCH v2 1/6] Exynos5: Fix compiler warnings due to clock_get_periph_rate Akshay Saraswat
2015-01-16  2:49   ` Jaehoon Chung
2015-01-15 13:31 ` [U-Boot] [PATCH v2 2/6] Exynos542x: Move exynos5420_get_pll_clk up and rename Akshay Saraswat
2015-01-16  2:47   ` Joonyoung Shim
2015-01-15 13:31 ` [U-Boot] [PATCH v2 3/6] Exynos542x: Add and enable get_periph_rate support Akshay Saraswat
2015-01-16  4:58   ` Joonyoung Shim
2015-01-16  5:10     ` Joonyoung Shim [this message]
2015-01-15 13:31 ` [U-Boot] [PATCH v2 4/6] Exynos5: Fix exynos5_get_periph_rate calculations Akshay Saraswat
2015-01-15 13:31 ` [U-Boot] [PATCH v2 5/6] Exynos5: Use clock_get_periph_rate generic API Akshay Saraswat
2015-01-15 13:31 ` [U-Boot] [PATCH v2 6/6] Exynos5: Remove dead code for fetching clocks Akshay Saraswat

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=54B89D4B.9050403@samsung.com \
    --to=jy0922.shim@samsung.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