diff mbox

[U-Boot] MX27: add missing get_tbclk()

Message ID 1328636027-23321-1-git-send-email-sbabic@denx.de
State Changes Requested
Delegated to: Stefano Babic
Headers show

Commit Message

Stefano Babic Feb. 7, 2012, 5:33 p.m. UTC
Signed-off-by: Stefano Babic <sbabic@denx.de>
---
 arch/arm/cpu/arm926ejs/mx27/timer.c |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

Comments

Marek Vasut Feb. 7, 2012, 9:26 p.m. UTC | #1
> Signed-off-by: Stefano Babic <sbabic@denx.de>
> ---
>  arch/arm/cpu/arm926ejs/mx27/timer.c |    8 ++++++++
>  1 files changed, 8 insertions(+), 0 deletions(-)
> 
> diff --git a/arch/arm/cpu/arm926ejs/mx27/timer.c
> b/arch/arm/cpu/arm926ejs/mx27/timer.c index 5af9359..226c0a5 100644
> --- a/arch/arm/cpu/arm926ejs/mx27/timer.c
> +++ b/arch/arm/cpu/arm926ejs/mx27/timer.c
> @@ -171,3 +171,11 @@ void __udelay(unsigned long usec)
>  	while (get_ticks() < tmp)	/* loop till event */
>  		 /*NOP*/;
>  }
> +
> +ulong get_tbclk(void)
> +{
> +	ulong tbclk;
> +
> +	tbclk = CONFIG_MX27_CLK32;
> +	return tbclk;
> +}

Why not simply ... return CONFIG... ?
M
Stefano Babic Feb. 8, 2012, 8 a.m. UTC | #2
On 07/02/2012 22:26, Marek Vasut wrote:
>> Signed-off-by: Stefano Babic <sbabic@denx.de>
>> ---
>>  arch/arm/cpu/arm926ejs/mx27/timer.c |    8 ++++++++
>>  1 files changed, 8 insertions(+), 0 deletions(-)
>>
>> diff --git a/arch/arm/cpu/arm926ejs/mx27/timer.c
>> b/arch/arm/cpu/arm926ejs/mx27/timer.c index 5af9359..226c0a5 100644
>> --- a/arch/arm/cpu/arm926ejs/mx27/timer.c
>> +++ b/arch/arm/cpu/arm926ejs/mx27/timer.c
>> @@ -171,3 +171,11 @@ void __udelay(unsigned long usec)
>>  	while (get_ticks() < tmp)	/* loop till event */
>>  		 /*NOP*/;
>>  }
>> +
>> +ulong get_tbclk(void)
>> +{
>> +	ulong tbclk;
>> +
>> +	tbclk = CONFIG_MX27_CLK32;
>> +	return tbclk;
>> +}
> 
> Why not simply ... return CONFIG... ?

Yes, right, as I already did for the other i.MX....

Fixed in V2

Stefano
diff mbox

Patch

diff --git a/arch/arm/cpu/arm926ejs/mx27/timer.c b/arch/arm/cpu/arm926ejs/mx27/timer.c
index 5af9359..226c0a5 100644
--- a/arch/arm/cpu/arm926ejs/mx27/timer.c
+++ b/arch/arm/cpu/arm926ejs/mx27/timer.c
@@ -171,3 +171,11 @@  void __udelay(unsigned long usec)
 	while (get_ticks() < tmp)	/* loop till event */
 		 /*NOP*/;
 }
+
+ulong get_tbclk(void)
+{
+	ulong tbclk;
+
+	tbclk = CONFIG_MX27_CLK32;
+	return tbclk;
+}