[U-Boot-Users] [PATCH 0/7] DaVinci: Add TI DaVinci support to U-Boot

The following patches are a proposal to add TI DaVinci support to U-Boot. They are completely based on ksi@koi8.net patches:
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/27603 http://article.gmane.org/gmane.comp.boot-loaders.u-boot/27604 http://article.gmane.org/gmane.comp.boot-loaders.u-boot/27605
Many thanks to ksi@koi8.net for these! Following small modifications are done:
- Make patch set apply cleanly to recent git
- Remove some #if 0 and #if 1
- Remove some (hopefully all?) compiler warnings
- Create 3 configs (DaVinci EVM, Sonata, Schmoogie) instead of one which had to be edited to switch to another board.
- Attention: It seems that in original davinci.h config file there was missing/incorrect configuration for Schmoogie NOR (?). Therefore I added
#define CFG_FLASH_SECT_SZ 0x20000 /* 128KB sect size AMD Flash */ #define CFG_ENV_OFFSET (CFG_FLASH_SECT_SZ*2)
in davinci_schmoogie.h Please check if this is correct!
- The directories
cpu/arm926ejs/tms320dm6446/
and
include/asm-arm/arch-tms320dm6446
are renamed to "davinci". As both are subdirectories of "*arm*'" directories, it is clear that they are not DSP related. I think that "davinci" is more intuitive and less confusing
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/28321
Compare omap directories, they are not called tms* as well.
- I removed usage of
include/asm-arm/arch-davinci/types.h
- I removed usage of mach-types.h. While it would be nice to have mach-types.h, introducing mach-types.h would require all boards to switch to use it. And this would be another task, which isn't related to DaVinci.
As you can see, I split the patches into seven parts and attached them unzipped. Therefore:
Please comment, improve and test!
But be aware: Deadline of U-Boot merge window is August 17, 2007:
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/30437
Note #1: Default toolchain for this patches is arm-linux-*. If you use MontaVista toolchain, you have to add
CROSS_COMPILE = arm_v5t_le-
to board/davinci/config.mk.
Note #2: Depending on your toolchain you will need the fix for nand_util.c 64bit division
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/30484 http://article.gmane.org/gmane.comp.boot-loaders.u-boot/30476
until it is merged to main branch.
Note #3: Use the following configurations to select one board:
make davinci_evm_config
or
make davinci_sonata_config
or
make davinci_schmoogie_config
Many thanks and best regards
Dirk
P.S.: CCying DaVinci mailing list for info and additional comments.

On Sun, 5 Aug 2007, Dirk Behme wrote:
Wow!
My work is stolen right off my hands... Very very nice... To say I'm amazed is to say nothing...
I'll send my modified set in a couple of hours. With all the fixes and working Large Page NAND.
The following patches are a proposal to add TI DaVinci support to U-Boot. They are completely based on ksi@koi8.net patches:
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/27603 http://article.gmane.org/gmane.comp.boot-loaders.u-boot/27604 http://article.gmane.org/gmane.comp.boot-loaders.u-boot/27605
Many thanks to ksi@koi8.net for these! Following small modifications are done:
Make patch set apply cleanly to recent git
Remove some #if 0 and #if 1
Remove some (hopefully all?) compiler warnings
Create 3 configs (DaVinci EVM, Sonata, Schmoogie) instead of one
which had to be edited to switch to another board.
- Attention: It seems that in original davinci.h config file there was
missing/incorrect configuration for Schmoogie NOR (?). Therefore I added
#define CFG_FLASH_SECT_SZ 0x20000 /* 128KB sect size AMD Flash */ #define CFG_ENV_OFFSET (CFG_FLASH_SECT_SZ*2)
in davinci_schmoogie.h Please check if this is correct!
- The directories
cpu/arm926ejs/tms320dm6446/
and
include/asm-arm/arch-tms320dm6446
are renamed to "davinci". As both are subdirectories of "*arm*'" directories, it is clear that they are not DSP related. I think that "davinci" is more intuitive and less confusing
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/28321
Compare omap directories, they are not called tms* as well.
- I removed usage of
include/asm-arm/arch-davinci/types.h
- I removed usage of mach-types.h. While it would be nice to have
mach-types.h, introducing mach-types.h would require all boards to switch to use it. And this would be another task, which isn't related to DaVinci.
As you can see, I split the patches into seven parts and attached them unzipped. Therefore:
Please comment, improve and test!
But be aware: Deadline of U-Boot merge window is August 17, 2007:
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/30437
Note #1: Default toolchain for this patches is arm-linux-*. If you use MontaVista toolchain, you have to add
CROSS_COMPILE = arm_v5t_le-
to board/davinci/config.mk.
Note #2: Depending on your toolchain you will need the fix for nand_util.c 64bit division
http://article.gmane.org/gmane.comp.boot-loaders.u-boot/30484 http://article.gmane.org/gmane.comp.boot-loaders.u-boot/30476
until it is merged to main branch.
Note #3: Use the following configurations to select one board:
make davinci_evm_config
or
make davinci_sonata_config
or
make davinci_schmoogie_config
Many thanks and best regards
Dirk
P.S.: CCying DaVinci mailing list for info and additional comments.
--- ****************************************************************** * KSI@home KOI8 Net < > The impossible we do immediately. * * Las Vegas NV, USA < > Miracles require 24-hour notice. * ******************************************************************
participants (2)
-
Dirk Behme
-
ksi@koi8.net