- Oct 22, 2015
-
-
Thomas Chou authored
Convert do_reset to use dm cpu data. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Thomas Chou authored
Convert altera sysid to driver model with misc uclass. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Chin Liang See <clsee@altera.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Thomas Chou authored
Convert altera timer to driver model. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Chin Liang See <clsee@altera.com>
-
Thomas Chou authored
Convert nios2 cpu to driver model. The cpu parameters are extracted from device tree and saved to global data structure. We will use them to replace the custom_fpga.h . Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Thomas Chou authored
Add ioremap() to map physical address to uncached virtual address. We need this to convert the reg address from the device tree. The order of headers inclusion in interrupts.c is changed because common.h will include board header that contains IO_REGION_BASE. In the future, the IO_REGION_BASE should be decided from the device tree. tree Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Marek Vasut <marex@denx.de> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Thomas Chou authored
We will need CONFIG_SYS_MALLOC_F_LEN to use serial uclass. So we shall undefine CONFIG_SYS_GENERIC_GLOBAL_DATA, and call board_init_f_mem() to allocates early malloc() memory with size of CONFIG_SYS_MALLOC_F_LEN in board_f.c. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Reviewed-by:
Marek Vasut <marex@denx.de>
-
Thomas Chou authored
There is a weak version_string[] at common/cmd_version.c . Remove the one in start.S. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Marek Vasut <marex@denx.de>
-
Thomas Chou authored
The dly_clks() in start.S is no use after switching to generic timer. Remove it. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Marek Vasut <marex@denx.de>
-
Thomas Chou authored
Move the timer code from interrupts.c into timer.c . Eliminate the installation of timer interrupt handler, which is no longer used. Signed-off-by:
Marek Vasut <marex@denx.de> Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
Thomas Chou authored
Zap almost all of the ad-hoc timer code from interrupts.c and use the code in lib/time.c instead. Signed-off-by:
Marek Vasut <marex@denx.de> Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
Thomas Chou authored
Since commit 44c6e659 "rename _end to __bss_end__" , the _end was removed. But we need it now for separated device tree control, ie, CONFIG_OF_SEPARATE . The _end is used by fdtdec_setup() to find the blob. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Marek Vasut <marex@denx.de> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Thomas Chou authored
Since we don't use gp for small data with option "-G0", we use gp as global data pointer. The _gp location is not needed. The ALIGN(16) was for gp only. It is removed, so that we can get correct address of dtb in u-boot-dtb.bin image. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Reviewed-by:
Simon Glass <sjg@chromium.org> Acked-by:
Marek Vasut <marex@denx.de>
-
Thomas Chou authored
As we will use u-boot-dtb.bin, the code relocation range should be adjusted to accommodate the additional dtb. It might be overkilled to look into dtb header to find the dtb size, so we will simply use CONFIG_SYS_MONITOR_LEN. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
Thomas Chou authored
As dtb in u-boot-dtb.bin overlapped the BSS section, we should delay the clearing of BSS until dtb is relocated in board_init_f(). Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Marek Vasut <marex@denx.de>
-
- Apr 10, 2015
-
-
Simon Glass authored
This function should not return a value. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Thomas Chou <thomas@wytron.com.tw>
-
- Nov 21, 2014
-
-
Simon Glass authored
This function can fail if the device tree runs out of space. Rather than silently booting with an incomplete device tree, allow the failure to be detected. Unfortunately this involves changing a lot of places in the code. I have not changed behvaiour to return an error where one is not currently returned, to avoid unexpected breakage. Eventually it would be nice to allow boards to register functions to be called to update the device tree. This would avoid all the many functions to do this. However it's not clear yet if this should be done using driver model or with a linker list. This work is left for later. Signed-off-by:
Simon Glass <sjg@chromium.org> Acked-by:
Anatolij Gustschin <agust@denx.de>
-
- Aug 30, 2014
-
-
Thomas Chou authored
This patch changes the link script to base at CONFIG_SYS_MONITOR_BASE. Then we can remove the text_base hook in nios2-generic board. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
Thomas Chou authored
The nios2.h is nios2 cpu specific, and should go arch asm directory. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
Thomas Chou authored
The nios2-io.h defines hardware registers and bits of several FPGA IP cores. It could be divided in to the specific drivers, including altera timer, altera sysid, altera uart and altera jtag uart. The altera pio and altera spi drivers use their own hardware definitions. The removal of nios2-io.h will help modularity and maintenance. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
- Aug 24, 2014
-
-
Thomas Chou authored
The Altera EPCS is SPI flash. We have been using SPI flash driver to access EPCS for years. The old EPCS driver could be removed. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
Thomas Chou authored
This patch implements the generic board init as described in doc/README.generic-board. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Signed-off-by:
Scott McNutt <smcnutt@psyent.com> Reviewed-by:
Stefan Roese <sr@denx.de>
-
- Nov 01, 2013
-
-
Masahiro Yamada authored
Signed-off-by:
Masahiro Yamada <yamada.m@jp.panasonic.com> Cc: Thomas Chou <thomas@wytron.com.tw>
-
- Oct 14, 2013
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de> [trini: Drop changes for PEP 4 following python tools] Signed-off-by:
Tom Rini <trini@ti.com>
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de>
-
- Jul 24, 2013
-
-
Wolfgang Denk authored
Signed-off-by:
Wolfgang Denk <wd@denx.de> [trini: Fixup common/cmd_io.c] Signed-off-by:
Tom Rini <trini@ti.com>
-
- Mar 15, 2013
-
-
Simon Glass authored
Note this is a tree-wide change affecting multiple architectures. At present we use __bss_start, but mostly __bss_end__. This seems inconsistent and in a number of places __bss_end is used instead. Change to use __bss_end for the BSS end symbol throughout U-Boot. This makes it possible to use the asm-generic/sections.h file on all archs. Signed-off-by:
Simon Glass <sjg@chromium.org>
-
- Mar 12, 2013
-
-
Albert ARIBAUD authored
Refactor linker-generated array code so that symbols which were previously linker-generated are now compiler- generated. This causes relocation records of type R_ARM_ABS32 to become R_ARM_RELATIVE, which makes code which uses LGA able to run before relocation as well as after. Note: this affects more than ARM targets, as linker- lists span possibly all target architectures, notably PowerPC. Conflicts: arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds arch/arm/cpu/armv7/omap-common/u-boot-spl.lds board/ait/cam_enc_4xx/u-boot-spl.lds board/davinci/da8xxevm/u-boot-spl-da850evm.lds board/davinci/da8xxevm/u-boot-spl-hawk.lds board/vpac270/u-boot-spl.lds Signed-off-by:
Albert ARIBAUD <albert.u.boot@aribaud.net>
-
- Feb 09, 2013
-
-
Gerald Van Baren authored
The libfdt.h file is the definition file for libfdt. It is unnecessary to include other fdt header files (the necessary ones are pulled in by libfdt.h). Signed-off-by:
Gerald Van Baren <gvb@unssw.com> Acked-by:
Simon Glass <sjg@chromium.org> Acked-by:
Stefan Roese <sr@denx.de>
-
- Oct 22, 2012
-
-
Marek Vasut authored
The command declaration now uses the new LG-array method to generate list of commands. Thus the __u_boot_cmd section is now superseded and redundant and therefore can be removed. Also, remove externed symbols associated with this section from include/command.h . Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Joe Hershberger <joe.hershberger@gmail.com> Cc: Mike Frysinger <vapier@gentoo.org>
-
Marek Vasut authored
Add section for the linker-generated lists into all possible linker files, so that everyone can easily use these lists. This is mostly a mechanical adjustment. Signed-off-by:
Marek Vasut <marex@denx.de> Cc: Joe Hershberger <joe.hershberger@gmail.com> Cc: Mike Frysinger <vapier@gentoo.org>
-
- Feb 23, 2012
-
-
Alex Hornung authored
* Copy over Blackfin's get_ticks and get_tbclk - they work just fine on Nios2. Signed-off-by:
Alex Hornung <alex@alexhornung.com> Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
- Oct 30, 2011
-
-
Joachim Foerster authored
The main motivation is, to have the local-mac-address property of the ethernet peripherals fixed/synced with U-Boot's environment settings. Signed-off-by:
Joachim Foerster <joachim.foerster@missinglinkelectronics.com> Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
- Oct 28, 2011
-
-
Joachim Foerster authored
AFAIK the NIOS2 architecture does not have any possibility to dynamically switch off the data cache. So _status() always reports 1 and _enable/_disable() just issue a flush of everything. For example, common/cmd_elf.c depends on these symbols. Signed-off-by:
Joachim Foerster <joachim.foerster@missinglinkelectronics.com> Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
- Jul 28, 2011
-
-
Andreas Bießmann authored
This patch removes the architecture specific implementation of version_string where possible. Some architectures use a special place and therefore we provide U_BOOT_VERSION_STRING definition and a common weak symbol version_string. Signed-off-by:
Andreas Bießmann <andreas.devel@googlemail.com> CC: Mike Frysinger <vapier@gentoo.org> CC: Peter Pan <pppeterpppan@gmail.com> Acked-by:
Mike Frysinger <vapier@gentoo.org>
-
- Jul 26, 2011
-
-
Graeme Russ authored
-
- Mar 27, 2011
-
-
Po-Yu Chuang authored
Currently, _end is used for end of BSS section. We want _end to mean end of u-boot image, so we rename _end to __bss_end__ first. Signed-off-by:
Po-Yu Chuang <ratbert@faraday-tech.com>
-
- Dec 09, 2010
-
-
Wolfgang Denk authored
Recent cleanup actions resulted in a number of config.mk files that contained only redundant entries like PLATFORM_CPPFLAGS += -I$(TOPDIR) or settings of variables that were not used anywhere in the code, like TEXT_END = 0xfe080000 Remove these unnecessary files. Signed-off-by:
Wolfgang Denk <wd@denx.de> Cc: Scott McNutt <smcnutt@psyent.com> Cc: Wolfgang Wegner <w.wegner@astro-kom.de> Cc: Josef Wagner <Wagner@Microsys.de> Cc: Tolunay Orkun <torkun@nextio.com> Cc: Frank Panno <fpanno@delphintech.com> Cc: Heiko Schocher <hs@denx.de> Cc: Brad Kemp <Brad.Kemp@seranoa.com> Acked-by:
Heiko <Schocher<hs@denx.de>
-
- Nov 28, 2010
-
-
Mike Frysinger authored
The duplication of the do_reset prototype has gotten out of hand, and they're not all in sync. Unify them all in command.h. Signed-off-by:
Mike Frysinger <vapier@gentoo.org>
-
- Nov 17, 2010
-
-
Sebastien Carlier authored
Before this commit, weak symbols were not overridden by non-weak symbols found in archive libraries when linking with recent versions of binutils. As stated in the System V ABI, "the link editor does not extract archive members to resolve undefined weak symbols". This commit changes all Makefiles to use partial linking (ld -r) instead of creating library archives, which forces all symbols to participate in linking, allowing non-weak symbols to override weak symbols as intended. This approach is also used by Linux, from which the gmake function cmd_link_o_target (defined in config.mk and used in all Makefiles) is inspired. The name of each former library archive is preserved except for extensions which change from ".a" to ".o". This commit updates references accordingly where needed, in particular in some linker scripts. This commit reveals board configurations that exclude some features but include source files that depend these disabled features in the build, resulting in undefined symbols. Known such cases include: - disabling CMD_NET but not CMD_NFS; - enabling CONFIG_OF_LIBFDT but not CONFIG_QE. Signed-off-by:
Sebastien Carlier <sebastien.carlier@gmail.com>
-
- Oct 26, 2010
-
-
Wolfgang Denk authored
CONFIG_SYS_GBL_DATA_SIZE has always been just a bad workarond for not being able to use "sizeof(struct global_data)" in assembler files. Recent experience has shown that manual synchronization is not reliable enough. This patch renames CONFIG_SYS_GBL_DATA_SIZE into GENERATED_GBL_DATA_SIZE which gets automatically generated by the asm-offsets tool. In the result, all definitions of this value can be deleted from the board config files. We have to make sure that all files that reference such data include the new <asm-offsets.h> file. No other changes have been done yet, but it is obvious that similar changes / simplifications can be done for other, related macro definitions as well. Signed-off-by:
Wolfgang Denk <wd@denx.de> Acked-by:
Kumar Gala <galak@kernel.crashing.org>
-