Skip to contentSkip to conversation

Add support for AT91CAP9 cpu andAT91CAP9A-DK board

U-Boot-Users Peter Pearse 6 participants 9 messages Jan 25, 2008 – Jan 29, 2008

lore
Share & tools
lore
#0 lore raw

Stelian

Your patch was badly formed and/or mangled by your mail client.

I have reformed it as best I can and it is available from

git://linux-arm.org/u-boot-armdev.git#080116_at91cap9

However you seem to have omitted the file

	include/asm-arm/arch-at91cap9/AT91CAP9.h

needed by

	./cpu/arm926ejs/at91cap9/ether.c		
	./include/asm-arm/arch-at91cap9/hardware.h	

(or was it to be a link?)

Please supply a patch to the branch so I can
examine it further.

Regards

Peter

#1 lore raw

Le vendredi 25 janvier 2008 ? 17:35 +0000, Peter Pearse a ?crit :

Quoted 3 lines

Stelian

Your patch was badly formed and/or mangled by your mail client.

Hmmm, strange.

Quoted 6 lines

I have reformed it as best I can and it is available from

git://linux-arm.org/u-boot-armdev.git#080116_at91cap9

However you seem to have omitted the file

Quoted 8 lines
	include/asm-arm/arch-at91cap9/AT91CAP9.h

needed by

	./cpu/arm926ejs/at91cap9/ether.c		
	./include/asm-arm/arch-at91cap9/hardware.h	

(or was it to be a link?)

As I said in my original posting:

Quoted 8 lines

For size reasons, the patch has been hand edited, splitted in several chunks, and the AT91CAP9.h file (440 kB !) is not in the patch at all. Please download the full version from:

        http://www.popies.net/tmp/uboot-at91cap9-full.patch

instead.

Please supply a patch to the branch so I can
examine it further.

Can you redo from the patch above ?

If you want I could redo a patch against your branch but I feel it will be easier for you to revert the reconstructed changeset and apply the patch above instead.

Stelian.

Signature · 1 line
Stelian Pop <[email protected]>
#2 lore raw
Quoted 5 lines · In message <[email protected]> you wrote:

As I said in my original posting:

Quoted 2 lines

For size reasons, the patch has been hand edited, splitted in several chunks, and the AT91CAP9.h file (440 kB !) is not in the patch at all.

Will you pelase check this file? Only the insane include/asm-arm/mach-types.h has a similar size - al other files are usually much smaller.

Is this stuff really all needed?

Best regards,

Wolfgang Denk

Signature · 5 lines
DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
Wisdom is one of the few things that looks bigger the further away it
is.                               - Terry Pratchett, _Witches Abroad_
#3 lore raw

Le samedi 26 janvier 2008 ? 01:01 +0100, Wolfgang Denk a ?crit :

Quoted 4 lines
Quoted 3 lines · In message <[email protected]> you wrote:

As I said in my original posting:

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines

For size reasons, the patch has been hand edited, splitted in several chunks, and the AT91CAP9.h file (440 kB !) is not in the patch at all.

Will you pelase check this file? Only the insane include/asm-arm/mach-types.h has a similar size - al other files are usually much smaller.

Is this stuff really all needed?

This header file comes directly from Atmel: it contains the register definitions for _all_ the hardware on the AT91CAP9.

Of course, u-boot does only need a (small) subset of it. If you prefer, I can simplify it.

Thanks,

Stelian.

Signature · 1 line
Stelian Pop <[email protected]>
#4 lore raw

Hi,

If possible can we keep the all register definition.

Best Regards,
J.

Le 26 janv. 08 ? 09:24, Stelian Pop <[email protected]> a ?crit :

Quoted 40 lines

Le samedi 26 janvier 2008 ? 01:01 +0100, Wolfgang Denk a ?crit :

Quoted 9 lines
Quoted 7 lines · In message <[email protected]> you wrote:

As I said in my original posting:

Quoted 4 lines

For size reasons, the patch has been hand edited, splitted in several
chunks, and the AT91CAP9.h file (440 kB !) is not in the patch at all.

Quoted 5 lines

Will you pelase check this file? Only the insane include/asm-arm/mach-types.h has a similar size - al other files are usually much smaller.

Is this stuff really all needed?

This header file comes directly from Atmel: it contains the register definitions for _all_ the hardware on the AT91CAP9.

Of course, u-boot does only need a (small) subset of it. If you prefer,
I can simplify it.

Thanks,

Stelian.

Signature · 12 lines
Stelian Pop <[email protected]>


--- 
----------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
U-Boot-Users mailing list
U-Boot-Users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/u-boot-users
#5 lore raw
In reply to Stelian Pop
Quoted 2 lines · On Sat, 26 Jan 2008 09:24:42 +0100 Stelian Pop <[email protected]> wrote:

This header file comes directly from Atmel: it contains the register definitions for _all_ the hardware on the AT91CAP9.

Most of which are in the tree already. For example, register definitions for the macb ethernet controller is in macb.h, in the same directory as the driver using it.

Quoted 2 lines

Of course, u-boot does only need a (small) subset of it. If you prefer, I can simplify it.

IMO, it would be much better if you split it up and put the relevant bits alongside the code that uses them.

Haavard

#6 lore raw

Le samedi 26 janvier 2008 ? 20:28 +0100, Haavard Skinnemoen a ?crit :

Quoted 9 lines
Quoted 2 lines · On Sat, 26 Jan 2008 09:24:42 +0100 Stelian Pop <[email protected]> wrote:

This header file comes directly from Atmel: it contains the register definitions for _all_ the hardware on the AT91CAP9.

Most of which are in the tree already. For example, register definitions for the macb ethernet controller is in macb.h, in the same directory as the driver using it.

Same for UART registers.

Quoted 7 lines
Quoted 3 lines

Of course, u-boot does only need a (small) subset of it. If you prefer, I can simplify it.

IMO, it would be much better if you split it up and put the relevant bits alongside the code that uses them.

Yes, it does indeed make sense, at least for cross-platform drivers which live in drivers/.

I removed all the unused parts of AT91CAP9.h, this downs the size up 37 KB (more than 10 times smaller than before).

I'll be submitting a new series of patches shortly.

Thanks,

Stelian.

Signature · 1 line
Stelian Pop <[email protected]>
#7 lore raw

[U-Boot-Users] [ARM] Add support for AT91CAP9cpu andAT91CAP9A-DK board

In reply to Stelian Pop

Le samedi 26 janvier 2008 ? 01:01 +0100, Wolfgang Denk a ?crit :

Quoted 4 lines
Quoted 3 lines · In message <[email protected]> you wrote:

As I said in my original posting:

Quoted 8 lines
Quoted 2 lines
Quoted 2 lines

For size reasons, the patch has been hand edited, splitted in several chunks, and the AT91CAP9.h file (440 kB !) is not in the patch at all.

Will you pelase check this file? Only the insane include/asm-arm/mach-types.h has a similar size - al other files are usually much smaller.

Is this stuff really all needed?

This header file comes directly from Atmel: it contains the register definitions for _all_ the hardware on the AT91CAP9.

Of course, u-boot does only need a (small) subset of it. If you prefer, I can simplify it.

==> Which will make it harder to maintain.
These files are automatically generated from the chip database, and most of the stuff can conceivably be used by U-Boot. -- Even if they are not used today.

If a bug is detected in the file, then the place to update is inside the database. Obviously ansy script generating the data, should be modified to generate something which can be directly used by U-Boot without any further modification.

It may make sense to split up the file as well, as Haavard proposes, but preferably, the split should be done at the source. I will forward this request to the AT91 & CAP teams

Thanks,

Stelian.

Signature · 2 lines
Best Regards
Ulf Samuelsson
#8 lore raw

[U-Boot-Users] [ARM] Add support for AT91CAP9cpu andAT91CAP9A-DK board

Le lundi 28 janvier 2008 ? 18:22 +0100, Ulf Samuelsson a ?crit :

Quoted 4 lines

Of course, u-boot does only need a (small) subset of it. If you prefer, I can simplify it.

==> Which will make it harder to maintain.

Note however this is the path the Linux kernel developers chose too.

Quoted 3 lines

These files are automatically generated from the chip database, and most of the stuff can conceivably be used by U-Boot. -- Even if they are not used today.

Smells like over-engineering at this point.

Quoted 4 lines

If a bug is detected in the file, then the place to update is inside the database. Obviously ansy script generating the data, should be modified to generate something which can be directly used by U-Boot without any further modification.

The question is whether it can be possible to make such a script to generate header files in accordance with the coding styles :)

Quoted 3 lines

It may make sense to split up the file as well, as Haavard proposes, but preferably, the split should be done at the source. I will forward this request to the AT91 & CAP teams

Sure, if they do this it would be perfect. Meanwhile, let's start with the one I've submitted (30 kb is better than 400 kb anyway). If/when Atmel cooks up clean and splitted header files then we will import those ones.

Signature · 1 line
Stelian Pop <[email protected]>