RE: [U-Boot-Users] [PATCH] OMAP1610 cs boot mode

Hi Wolfgang,
Sorry if the name is misleading, or not exact, I tried to denote with it the following: In order to set the correct base address for the flash memory, U-Boot has to know somehow the boot mode of the board. There are two of it. In the first ROM is mapped to address 0 and the flash is to address 0x0C00000. In the second mode the two are swapped, ROM is at 0x0C000000 and flash is at 0. Boot happens always from address 0. In this way we can effectivly select (with a dip switch) where we'd like to boot from. At the moment U-Boot has to be configured to either of the two modes. There are 3 make targets for this, first and third being equivalent:
omap1610h2_config ( ==omap1610h2_cs3_boot_config ) omap1610h2_cs0_boot_config omap1610h2_cs3_boot_config
It is possible however to determine the boot mode automatically, from an OMAP status register and thus set the flash base address correctly. For this I added a new target omap1610h2_cs_autoboot_config. Maybe it should be a CONFIG variable instead of 4 targets for each board (H2, Innovator), like CONFIG_OMAP_BOOTMODE_CS0 CONFIG_OMAP_BOOTMODE_CS3 CONFIG_OMAP_BOOTMODE_DETECT ?
Regards, Imre
-----Original Message----- From: wd@denx.de [mailto:wd@denx.de] Sent: 26 May, 2004 20:25 To: Deak Imre (Nokia-M/Helsinki) Cc: u-boot-users@lists.sourceforge.net Subject: Re: [U-Boot-Users] [PATCH] OMAP1610 cs boot mode
In message <0F6832DAA2EE0B4D9281EDC36F09A8FC0FC3E6@esebe025.ntc.nokia.com
you wrote:
The new targets are: omap1610h2_cs_autoboot_config omap1610inn_cs_autoboot_config
Please explain where the name "autoboot" comes from.
Best regards,
Wolfgang Denk
-- Software Engineering: Embedded and Realtime Systems, Embedded Linux Phone: (+49)-8142-4596-87 Fax: (+49)-8142-4596-88 Email: wd@denx.de Certainly there are things in life that money can't buy, but it's very funny - Did you ever try buying them without money? - Ogden Nash

In message 0F6832DAA2EE0B4D9281EDC36F09A8FC0FC3EC@esebe025.ntc.nokia.com you wrote:
Sorry if the name is misleading, or not exact, I tried
Well, I think it needs some explanation - at least I didn't understand it.
It is possible however to determine the boot mode automatically, from an OMAP status register and thus set the flash base address correctly. For this I added a new target omap1610h2_cs_autoboot_config. Maybe it should be a CONFIG variable instead of 4 targets for each board (H2, Innovator), like CONFIG_OMAP_BOOTMODE_CS0 CONFIG_OMAP_BOOTMODE_CS3 CONFIG_OMAP_BOOTMODE_DETECT ?
Te question is: how many people are likely to change this?
Best regards,
Wolfgang Denk
participants (2)
-
Imre.Deak@nokia.com
-
Wolfgang Denk