- Jan 26, 2010
-
-
Joakim Tjernlund authored
Using the GOT in IRQ handlers requires r14 to be -ffixed-r14. Avoid this by relocatate transfer_to_handler too. This will allow to free up r14 later on. Signed-off-by:
Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
-
- Jan 24, 2010
-
-
Detlev Zundel authored
Content of the RSR is put into gd early so we can output it together with the CPU info. The clearing of gd in board_init_f is redundant for this architecture as it is done in cpu_init_f so we remove it. Signed-off-by:
Detlev Zundel <dzu@denx.de>
-
- Dec 15, 2009
-
-
Peter Tyser authored
The gd->cpu pointer is set to an address located in flash when the probecpu() function is called while U-Boot is executing from flash. This pointer needs to be updated to point to an address in RAM after relocation has occurred otherwise Linux may not be able to boot due to "fdt board" crashing if flash has been erased or changed. This bug was introduced in commit a0e2066f. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com> Reported-by:
Ed Swarthout <Ed.Swarthout@freescale.com> Tested-by:
Kumar Gala <galak@kernel.crashing.org> Tested on MPC8527DS. Tested by: Ed Swarthout <Ed.Swarthout@freescale.com>
-
- Dec 05, 2009
-
-
Ingo van Lil authored
According to the PPC reference implementation the udelay() function is responsible for resetting the watchdog timer as frequently as needed. Most other architectures do not meet that requirement, so long-running operations might result in a watchdog reset. This patch adds a generic udelay() function which takes care of resetting the watchdog before calling an architecture-specific __udelay(). Signed-off-by:
Ingo van Lil <inguin@gmx.de>
-
- Nov 24, 2009
-
-
Peter Tyser authored
Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Oct 16, 2009
-
-
Anton Vorontsov authored
commit 0e870980 ("8xxx: Removed CONFIG_NUM_CPUS from 85xx/86xx") breaks U-Boot on various boards, namely the ones that call get_sys_info() from board_early_init_f(). get_sys_info() calls cpu_numcores(), which depends on probecpu() being called before. But probecpu() is called after board_early_init_f(), and so cpu_numcores() returns random values, which in turn crashes get_sys_info(). To fix the issue we place probecpu() before board_early_init_f() in an initialization sequence. Booting on the following boards should be revived now: mpc8540ads mpc8541cds mpc8548cds mpc8555cds mpc8560ads mpc8568mds mpc8569mds and maybe more. Signed-off-by:
Anton Vorontsov <avorontsov@ru.mvista.com> Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Oct 11, 2009
-
-
Luigi 'Comio' Mantellini authored
Signed-off-by:
Luigi 'Comio' Mantellini <luigi.mantellini@idf-hit.com> Signed-off-by:
Ben Warren <biggerbadderben@gmail.com>
-
- Oct 03, 2009
-
-
Peter Tyser authored
Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
Peter Tyser authored
Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
Peter Tyser authored
Certain ppc compilers are known not to generate the .fixup section properly. The .fixup section is necessary to create a relocatable U-Boot image. A basic check for the existence of the .fixup section should hopefully catch the majority of broken compilers which don't support relocation. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
Peter Tyser authored
The following changes allow U-Boot to fully relocate from flash to RAM: - Remove linker scripts' .fixup sections from the .text section - Add -mrelocatable to PLATFORM_RELFLAGS for all boards - Define CONFIG_RELOC_FIXUP_WORKS for all boards Previously, U-Boot would partially relocate, but statically initialized pointers needed to be manually relocated. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Sep 22, 2009
-
-
Peter Tyser authored
Remove board-specific #ifdefs for calling phy_reset() during initializtion Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
Peter Tyser authored
Remove board-specific #ifdefs for calling misc_init_r() during initializtion Signed-off-by:
Peter Tyser <ptyser@xes-inc.com> Acked-by:
Heiko Schocher <hs@denx.de>
-
- Sep 08, 2009
-
-
Kumar Gala authored
Now that we have a pointer to the cpu struct we need to relocate it once we get into ram. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Sep 04, 2009
-
-
Mike Frysinger authored
Rather than maintain/extend the current ifeq($(ARCH)) mess that exists in the standalone Makefile, push the setting up of LOAD_ADDR out to the arch config.mk (and rename to STANDALONE_LOAD_ADDR in the process). This keeps the common code clean and lets the arch do whatever crazy crap it wants in its own area. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
Peter Tyser authored
Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
Peter Tyser authored
This lays the groundwork to allow architectures to share a common mem_malloc_init(). Note that the x86 implementation was not modified as it did not fit the mold of all other architectures. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
Peter Tyser authored
Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Aug 28, 2009
-
-
Poonam Aggrwal authored
The number of CPUs are getting detected dynamically by checking the processor SVR value. Also removed CONFIG_NUM_CPUS references from all the platforms with 85xx/86xx processors. This can help to use the same u-boot image across the platforms. Also revamped and corrected few Freescale Copyright messages. Signed-off-by:
Poonam Aggrwal <poonam.aggrwal@freescale.com> Signed-off-by:
Kumar Gala <galak@kernel.crashing.org>
-
- Aug 18, 2009
-
-
Heiko Schocher authored
Signed-off-by:
Heiko Schocher <hs@denx.de>
-
- Jul 29, 2009
-
-
Kumar Gala authored
"All Rights Reserved" conflicts with the GPL. Signed-off-by:
Kumar Gala <kumar.gala@freescale.com>
-
- Jul 26, 2009
-
-
Wolfgang Denk authored
This reverts commit 982adfc6. This patch causes problems on MPC83xx boards - flash recognition stops working. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jul 23, 2009
-
-
Peter Tyser authored
Previously, non-e500 architectures only unlocked their data cache which was used as early RAM when booting to Linux using the "bootm" command. This change causes all PPC boards with CONFIG_SYS_INIT_RAM_LOCK defined to unlock their data cache during U-Boot's initialization. This improves U-Boot performance and provides a common cache state when booting to different OSes. Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Jul 20, 2009
-
-
Peter Tyser authored
This cleans up U-Boot's toplevel directory a bit and makes the architecture 'config.mk' file naming and location similar to board and cpu 'config.mk' files Signed-off-by:
Peter Tyser <ptyser@xes-inc.com>
-
- Jul 17, 2009
-
-
Jean-Christophe PLAGNIOL-VILLARD authored
So far the console API uses the following naming convention: ======Extract====== typedef struct device_t; int device_register (device_t * dev); int devices_init (void); int device_deregister(char *devname); struct list_head* device_get_list(void); device_t* device_get_by_name(char* name); device_t* device_clone(device_t *dev); ======= which is too generic and confusing. Instead of using device_XX and device_t we change this into stdio_XX and stdio_dev This will also allow to add later a generic device mechanism in order to have support for multiple devices and driver instances. Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Edited commit message. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jun 12, 2009
-
-
Peter Tyser authored
Use the standard lowercase "xx" capitalization that other Freescale architectures use for CPU defines to prevent confusion and errors Signed-off-by:
Peter Tyser <ptyser@xes-inc.com> Signed-off-by:
Kim Phillips <kim.phillips@freescale.com>
-
Jean-Christophe PLAGNIOL-VILLARD authored
and fix comment Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Adjusted Copyright message. Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
Stefan Roese authored
This patch moves the malloc initialization before calling flash_init(). Upcoming changes to the NOR FLASH common CFI driver with optional MTD infrastructure and MTD concatenation support will call malloc(). And nothing really speaks against enabling malloc just a little earlier in the boot stage. Some architectures already enable malloc before calling flash_init() so they don't need any changes here. Signed-off-by:
Stefan Roese <sr@denx.de> Cc: Wolfgang Denk <wd@denx.de> Cc: Mike Frysinger <vapier@gentoo.org> Cc: Scott McNutt <smcnutt@psyent.com> Cc: Shinya Kuribayashi <shinya.kuribayashi@necel.com> Cc: Nobuhiro Iwamatsu <iwamatsu@nigauri.org> Cc: Daniel Hellstrom <daniel@gaisler.com> Cc: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Cc: John Rigby <jcrigby@gmail.com>
-
- Apr 04, 2009
-
-
Wolfgang Denk authored
-
Jean-Christophe PLAGNIOL-VILLARD authored
Some systems have zlib.h installed in /usr/include/. This isn't the desired file for u-boot code - we want the one in include/zlib.h. This rename will avoid the conflict. Signed-off-by:
Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com> Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Apr 01, 2009
-
-
Kumar Gala authored
We had a bug on 86xx in which the boot page used to bring up secondary cores was being overwritten and used for the malloc region in u-boot. We need to reserve the region of memory that the boot page is going to be put at so nothing uses it. Signed-off-by:
Kumar Gala <galak@kernel.crashing.org> Acked-by:
Becky Bruce <beckyb@kernel.crashing.org>
-
- Mar 20, 2009
-
-
Stefan Roese authored
Signed-off-by:
Stefan Roese <sr@denx.de>
-
Stefan Roese authored
Fix this warning: board.c: In function 'board_init_r': board.c:653: warning: unused variable 'i' board.c:651: warning: unused variable 'e' Signed-off-by:
Stefan Roese <sr@denx.de>
-
Mike Frysinger authored
The environment is the canonical storage location of the mac address, so we're killing off the global data location and moving everything to querying the env directly. In the ppc case, these things are part of the legacy ABI, so keep them around but mark them as legacy so no new code will touch them. Also stop calling load_sernum_ethaddr() since all boards now implement this as a stub. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com>
-
Mike Frysinger authored
The environment is the canonical storage location of the mac address, so we're killing off the global data location and moving everything to querying the env directly. Rather than have common ppc code call a board-specific function like load_sernum_ethaddr(), have each board call it in its own board-specific misc_init_r() function. The boards that get converted here are: - kup4k/kup4x - pcs440ep - tqm8xx Signed-off-by:
Mike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com> CC: Stefan Roese <sr@denx.de>
-
Mike Frysinger authored
The environment is the canonical storage location of the mac address, so we're killing off the global data location and moving everything to querying the env directly. Rather than have the common ppc code have board-specific hooks, move the board_get_enetaddr() function into the board-specific init functions. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com>
-
Mike Frysinger authored
The environment is the canonical storage location of the mac address, so we're killing off the global data location and moving everything to querying the env directly. For the nx823, the serial number is moved out of load_sernum_ethaddr() and into misc_init_r() as is the env setup. This lets us kill off the former function in the process. Signed-off-by:
Mike Frysinger <vapier@gentoo.org> CC: Ben Warren <biggerbadderben@gmail.com>
-
- Mar 18, 2009
-
-
Heiko Schocher authored
with the new CONFIG_SYS_DELAYED_ICACHE config option, ICache is not enabled before code runs from RAM. Signed-off-by:
Heiko Schocher <hs@denx.de>
-
- Mar 06, 2009
-
-
Heiko Schocher authored
In case where a board not uses CONFIG_POST, it is not necessary to init the DTTs when running from flash. Signed-off-by:
Heiko Schocher <hs@denx.de> Signed-off-by:
Kim Phillips <kim.phillips@freescale.com>
-
- Mar 02, 2009
-
-
Heiko Schocher authored
it is not necessary to init the DTTs so early, so move this init to board_init_r (). Signed-off-by:
Heiko Schocher <hs@denx.de>
-