* [U-Boot] [PATCH] MX27: add missing get_tbclk()
@ 2012-02-07 17:33 Stefano Babic
2012-02-07 21:26 ` Marek Vasut
2012-02-08 8:28 ` [U-Boot] [PATCH V2] " Stefano Babic
0 siblings, 2 replies; 4+ messages in thread
From: Stefano Babic @ 2012-02-07 17:33 UTC (permalink / raw)
To: u-boot
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;
+}
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] MX27: add missing get_tbclk()
2012-02-07 17:33 [U-Boot] [PATCH] MX27: add missing get_tbclk() Stefano Babic
@ 2012-02-07 21:26 ` Marek Vasut
2012-02-08 8:00 ` Stefano Babic
2012-02-08 8:28 ` [U-Boot] [PATCH V2] " Stefano Babic
1 sibling, 1 reply; 4+ messages in thread
From: Marek Vasut @ 2012-02-07 21:26 UTC (permalink / raw)
To: u-boot
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH] MX27: add missing get_tbclk()
2012-02-07 21:26 ` Marek Vasut
@ 2012-02-08 8:00 ` Stefano Babic
0 siblings, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2012-02-08 8:00 UTC (permalink / raw)
To: u-boot
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
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
^ permalink raw reply [flat|nested] 4+ messages in thread
* [U-Boot] [PATCH V2] MX27: add missing get_tbclk()
2012-02-07 17:33 [U-Boot] [PATCH] MX27: add missing get_tbclk() Stefano Babic
2012-02-07 21:26 ` Marek Vasut
@ 2012-02-08 8:28 ` Stefano Babic
1 sibling, 0 replies; 4+ messages in thread
From: Stefano Babic @ 2012-02-08 8:28 UTC (permalink / raw)
To: u-boot
Signed-off-by: Stefano Babic <sbabic@denx.de>
---
Changes since V1:
- return directly CONFIG_MX27_CLK32
instead using temporary variable (Marek Vasut)
arch/arm/cpu/arm926ejs/mx27/timer.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/arch/arm/cpu/arm926ejs/mx27/timer.c b/arch/arm/cpu/arm926ejs/mx27/timer.c
index 5af9359..a5dd684 100644
--- a/arch/arm/cpu/arm926ejs/mx27/timer.c
+++ b/arch/arm/cpu/arm926ejs/mx27/timer.c
@@ -171,3 +171,8 @@ void __udelay(unsigned long usec)
while (get_ticks() < tmp) /* loop till event */
/*NOP*/;
}
+
+ulong get_tbclk(void)
+{
+ return CONFIG_MX27_CLK32;
+}
--
1.7.5.4
^ permalink raw reply related [flat|nested] 4+ messages in thread
end of thread, other threads:[~2012-02-08 8:28 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-07 17:33 [U-Boot] [PATCH] MX27: add missing get_tbclk() Stefano Babic
2012-02-07 21:26 ` Marek Vasut
2012-02-08 8:00 ` Stefano Babic
2012-02-08 8:28 ` [U-Boot] [PATCH V2] " Stefano Babic
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox