public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 0/2] Highbank fixes for 2012.03
@ 2012-02-21 22:52 Rob Herring
  2012-02-21 22:52 ` [U-Boot] [PATCH 1/2] ARM: highbank: fix warning for calxedaxgmac_initialize Rob Herring
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Rob Herring @ 2012-02-21 22:52 UTC (permalink / raw)
  To: u-boot

From: Rob Herring <rob.herring@calxeda.com>

This is a couple of fixes for a build error and warning.

Rob

Rob Herring (2):
  ARM: highbank: fix warning for calxedaxgmac_initialize
  ARM: highbank: add missing get_tbclk

 arch/arm/cpu/armv7/highbank/timer.c |    5 +++++
 board/highbank/highbank.c           |    1 +
 2 files changed, 6 insertions(+), 0 deletions(-)

-- 
1.7.5.4

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 1/2] ARM: highbank: fix warning for calxedaxgmac_initialize
  2012-02-21 22:52 [U-Boot] [PATCH 0/2] Highbank fixes for 2012.03 Rob Herring
@ 2012-02-21 22:52 ` Rob Herring
  2012-02-21 22:52 ` [U-Boot] [PATCH 2/2] ARM: highbank: add missing get_tbclk Rob Herring
  2012-02-28 22:48 ` [U-Boot] [PATCH 0/2] Highbank fixes for 2012.03 Albert ARIBAUD
  2 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2012-02-21 22:52 UTC (permalink / raw)
  To: u-boot

From: Rob Herring <rob.herring@calxeda.com>

Add include of netdev.h to pick-up declaration of calxedaxgmac_initialize.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
---
 board/highbank/highbank.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/board/highbank/highbank.c b/board/highbank/highbank.c
index b0aa182..5f34fec 100644
--- a/board/highbank/highbank.c
+++ b/board/highbank/highbank.c
@@ -17,6 +17,7 @@
 
 #include <common.h>
 #include <ahci.h>
+#include <netdev.h>
 #include <scsi.h>
 
 #include <asm/sizes.h>
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 2/2] ARM: highbank: add missing get_tbclk
  2012-02-21 22:52 [U-Boot] [PATCH 0/2] Highbank fixes for 2012.03 Rob Herring
  2012-02-21 22:52 ` [U-Boot] [PATCH 1/2] ARM: highbank: fix warning for calxedaxgmac_initialize Rob Herring
@ 2012-02-21 22:52 ` Rob Herring
  2012-02-28 22:48 ` [U-Boot] [PATCH 0/2] Highbank fixes for 2012.03 Albert ARIBAUD
  2 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2012-02-21 22:52 UTC (permalink / raw)
  To: u-boot

From: Rob Herring <rob.herring@calxeda.com>

The get_tbclk function was missing and the recent commit "common: add
possibility for readline_into_buffer timeout" makes it required.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
---
 arch/arm/cpu/armv7/highbank/timer.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch/arm/cpu/armv7/highbank/timer.c b/arch/arm/cpu/armv7/highbank/timer.c
index d8a0288..d92503f 100644
--- a/arch/arm/cpu/armv7/highbank/timer.c
+++ b/arch/arm/cpu/armv7/highbank/timer.c
@@ -121,3 +121,8 @@ ulong get_timer_masked(void)
 {
 	return tick_to_time(get_ticks());
 }
+
+ulong get_tbclk(void)
+{
+	return CONFIG_SYS_HZ;
+}
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 0/2] Highbank fixes for 2012.03
  2012-02-21 22:52 [U-Boot] [PATCH 0/2] Highbank fixes for 2012.03 Rob Herring
  2012-02-21 22:52 ` [U-Boot] [PATCH 1/2] ARM: highbank: fix warning for calxedaxgmac_initialize Rob Herring
  2012-02-21 22:52 ` [U-Boot] [PATCH 2/2] ARM: highbank: add missing get_tbclk Rob Herring
@ 2012-02-28 22:48 ` Albert ARIBAUD
  2012-02-29 14:15   ` Rob Herring
  2 siblings, 1 reply; 5+ messages in thread
From: Albert ARIBAUD @ 2012-02-28 22:48 UTC (permalink / raw)
  To: u-boot

Hi Rob,

Le 21/02/2012 23:52, Rob Herring a ?crit :
> From: Rob Herring<rob.herring@calxeda.com>
>
> This is a couple of fixes for a build error and warning.
>
> Rob
>
> Rob Herring (2):
>    ARM: highbank: fix warning for calxedaxgmac_initialize
>    ARM: highbank: add missing get_tbclk
>
>   arch/arm/cpu/armv7/highbank/timer.c |    5 +++++
>   board/highbank/highbank.c           |    1 +
>   2 files changed, 6 insertions(+), 0 deletions(-)

Weird: I get a persistent error with ELDK42 (4.2.2) and Ubuntu (4.6.1) 
ARM toolchains:

calxedaxgmac.c:317: error: expected declaration specifiers or '...' 
before numeric constant
calxedaxgmac.c:317: warning: function declaration isn't a prototype

I would not mention it if you did not seem to ba able to build on your 
side, so I must have something wrong in my setup. Can you tell me on 
which commit ID you applied your patch set?

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [U-Boot] [PATCH 0/2] Highbank fixes for 2012.03
  2012-02-28 22:48 ` [U-Boot] [PATCH 0/2] Highbank fixes for 2012.03 Albert ARIBAUD
@ 2012-02-29 14:15   ` Rob Herring
  0 siblings, 0 replies; 5+ messages in thread
From: Rob Herring @ 2012-02-29 14:15 UTC (permalink / raw)
  To: u-boot

Albert,

On 02/28/2012 04:48 PM, Albert ARIBAUD wrote:
> Hi Rob,
> 
> Le 21/02/2012 23:52, Rob Herring a ?crit :
>> From: Rob Herring<rob.herring@calxeda.com>
>>
>> This is a couple of fixes for a build error and warning.
>>
>> Rob
>>
>> Rob Herring (2):
>>    ARM: highbank: fix warning for calxedaxgmac_initialize
>>    ARM: highbank: add missing get_tbclk
>>
>>   arch/arm/cpu/armv7/highbank/timer.c |    5 +++++
>>   board/highbank/highbank.c           |    1 +
>>   2 files changed, 6 insertions(+), 0 deletions(-)
> 
> Weird: I get a persistent error with ELDK42 (4.2.2) and Ubuntu (4.6.1)
> ARM toolchains:
> 
> calxedaxgmac.c:317: error: expected declaration specifiers or '...'
> before numeric constant
> calxedaxgmac.c:317: warning: function declaration isn't a prototype
> 
> I would not mention it if you did not seem to ba able to build on your
> side, so I must have something wrong in my setup. Can you tell me on
> which commit ID you applied your patch set?

You also need the previous fix that I sent:

http://patchwork.ozlabs.org/patch/139020/

Here's a pull request for all 4 fixes if you prefer:

The following changes since commit 2acca35ce4604dcef933f07d90aa9c9c930e1049:

  Merge branch 'master' of git://git.denx.de/u-boot-mmc (2012-02-17
23:54:46 +0100)

are available in the git repository at:

  git://sources.calxeda.com/u-boot.git fixes

Rob Herring (4):
      net: calxedaxgmac: fix build due to missing __aligned definition
      ARM: highbank: fix warning for calxedaxgmac_initialize
      ARM: highbank: add missing get_tbclk
      ARM: highbank: fix us_to_tick calculation

 arch/arm/cpu/armv7/highbank/timer.c |    9 +++++++--
 board/highbank/highbank.c           |    1 +
 drivers/net/calxedaxgmac.c          |    1 +
 3 files changed, 9 insertions(+), 2 deletions(-)

Thanks,
Rob

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2012-02-29 14:15 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-21 22:52 [U-Boot] [PATCH 0/2] Highbank fixes for 2012.03 Rob Herring
2012-02-21 22:52 ` [U-Boot] [PATCH 1/2] ARM: highbank: fix warning for calxedaxgmac_initialize Rob Herring
2012-02-21 22:52 ` [U-Boot] [PATCH 2/2] ARM: highbank: add missing get_tbclk Rob Herring
2012-02-28 22:48 ` [U-Boot] [PATCH 0/2] Highbank fixes for 2012.03 Albert ARIBAUD
2012-02-29 14:15   ` Rob Herring

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox