- 27 10月, 2015 5 次提交
-
-
由 Alison Wang 提交于
As QSPI and IFC are pin-multiplexed on LS1021A, only IFC is supported in SD boot now. For the customer's demand, QSPI needs to be supported in SD boot too. This patch adds QSPI or IFC support in SD boot according to the corresponding defconfig. For detail, ls1021atwr_sdcard_ifc_defconfig is used to support IFC in SD boot and ls1021atwr_sdcard_qspi_defconfig is used to support QSPI in SD boot. Signed-off-by: NAlison Wang <alison.wang@freescale.com> Reviewed-by: NYork Sun <yorksun@freescale.com>
-
由 Zhao Qiang 提交于
The address of uboot changed, so change qe ucode Signed-off-by: NZhao Qiang <B45475@freescale.com> Reviewed-by: NYork Sun <yorksun@freescale.com>
-
由 Alison Wang 提交于
Pointer 'reg' returned from call to function 'fdt_getprop' may be NULL, will be passed to function and may be dereferenced there by passing argument 1 to function 'of_read_number'. So check pointer 'reg' first. Signed-off-by: NAlison Wang <alison.wang@freescale.com> Reviewed-by: NYork Sun <yorksun@freescale.com>
-
由 Scott Wood 提交于
Currently, using fdt_fixup_stdout() on a device tree that is missing the relevant alias results in this: WARNING: could not set linux,stdout-path FDT_ERR_NOTFOUND. ERROR: /chosen node create failed - must RESET the board to recover. FDT creation failed! hanging...### ERROR ### Please RESET the board ### There is no reason for this to be a fatal error rather than a warning, and removing this allows for a smooth transition on a platform where the device tree currently lacks the correct aliases but will have them in the future. Signed-off-by: NScott Wood <scottwood@freescale.com> Cc: Kumar Gala <galak@kernel.crashing.org> Cc: Simon Glass <sjg@chromium.org> Reviewed-by: NSimon Glass <sjg@chromium.org> Reviewed-by: NYork Sun <yorksun@freescale.com>
-
由 Scott Wood 提交于
This will allow OF-based earlycon to be used once the appropriate aliases are added to the device tree and kernel support is fixed. Signed-off-by: NScott Wood <scottwood@freescale.com> Reviewed-by: NYork Sun <yorksun@freescale.com>
-
- 25 10月, 2015 22 次提交
-
-
由 Gong Qianyu 提交于
get_clocks() should not be limited by ESDHC. Signed-off-by: NGong Qianyu <Qianyu.Gong@freescale.com>
-
由 Masahiro Yamada 提交于
We have finished Generic Board conversion for ARM and PowerPC, i.e. all the boards have been converted except OpenRISC, SuperH, SPARC, which have not supported Generic Board framework yet. Select SYS_GENERIC_BOARD in arch/Kconfig and delete all the macro defines in include/configs/*.h. Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
-
由 Simon Glass 提交于
This reverts commit 321f86e1. The original bug has been fixed. Signed-off-by: NSimon Glass <sjg@chromium.org> Tested-on: Zedboard and ZC706 board Tested-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Tested-on: zc702 Tested-by: NMichal Simek <michal.simek@xilinx.com>
-
由 Simon Glass 提交于
We should not init the console this early since it precludes using driver model for the UART, since it is not set up at the start of board_init_f(). See the README for more information. The debug UART does not have this restriction. If we want to do early init with the console on it can be done in spl_board_init(). Move the preloader_console_init() call from board_init_f() to board_init_r(). Signed-off-by: NSimon Glass <sjg@chromium.org> Tested-by: NMasahiro Yamada <yamada.masahiro@socionext.com> Tested-by: NMichal Simek <michal.simek@xilinx.com>
-
由 Simon Glass 提交于
This C function should be used to do the early memory layout and init. This is beyond my powers, so just add a TODO for the maintainer. Signed-off-by: NSimon Glass <sjg@chromium.org> Acked-by: NMichal Simek <michal.simek@xilinx.com>
-
由 Simon Glass 提交于
There is quite a bit of assembler code that can be removed if we use the generic global_data setup. Less arch-specific code makes it easier to add new features and maintain the start-up code. Drop the unneeded code and adjust the hooks in board_f.c to cope. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
There is quite a bit of assembler code that can be removed if we use the generic global_data setup. Less arch-specific code makes it easier to add new features and maintain the start-up code. Drop the unneeded code and adjust the hooks in board_f.c to cope. Tested on LS2085ARDB and LS2085AQDS (armv8 SoC). Tested-by: NYork Sun <yorksun@freescale.com> Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
Change the #ifdef so that the early malloc() area is not set up in SPL if CONFIG_SYS_SPL_MALLOC_START is defined. In that case it would never actually be used, and just chews up stack space. Signed-off-by: NSimon Glass <sjg@chromium.org> Tested-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
-
由 Simon Glass 提交于
Unfortunately memset() is not always available, so provide a substitute when needed. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Simon Glass 提交于
This function will be used by both SPL and U-Boot proper. So move it into a common place. Also change the #ifdef so that the early malloc() area is not set up in SPL if CONFIG_SYS_SPL_MALLOC_START is defined. In that case it would never actually be used, and just chews up stack space. Signed-off-by: NSimon Glass <sjg@chromium.org>
-
由 Stephen Warren 提交于
In the following snippet: if [ ! -x `which $prereq` ]; then When $prereq does not exist, `which $prereq` evaluates to the empty string, which results in *no* argument being passed to the -x operator, which then evaluates to true, which is the equivalent of the prereq having been found. In order for this to fail as expected, we must pass an empty argument, which then causes -x to fail. Do this by wrapping the `` in quotes so there's always an argument to -x, even if the value of the argument is zero-length. Signed-off-by: NStephen Warren <swarren@wwwdotorg.org> Reviewed-by: NSimon Glass <sjg@chromium.org> Tested-by: NSimon Glass <sjg@chromium.org>
-
由 Stephen Warren 提交于
In my patch series to replace fs/fat with "ff.c", I enhanced ff.c to optimize file reading, so that reads of contiguous clusters are submitted to the IO device as a single read. This test attempts to torture-test edge-cases of that enhancement. BTW, the only way I found to validate that this script actually does create non-contiguous files was to manually inspect the FAT bitmap in a hex dump of the FAT image. hdparm --fibmap doesn't work on loop-mounted filesystems. filefrag -v -e seems to lie about files being contiguous when they aren't. Signed-off-by: NStephen Warren <swarren@wwwdotorg.org> Reviewed-by: NSimon Glass <sjg@chromium.org> Tested-by: NSimon Glass <sjg@chromium.org>
-
由 Stephen Warren 提交于
itest accesses memory, and hence must map/unmap it. Without doing so, it accesses invalid addresses and crashes. Signed-off-by: NStephen Warren <swarren@wwwdotorg.org> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Roy Spliet 提交于
Under the assumptions of having a UBI volume called boot, containing a ubifs filesystem. Signed-off-by: NRoy Spliet <rspliet@eclipso.eu> Signed-off-by: NHans de Goede <hdegoede@redhat.com> Acked-by: NStephen Warren <swarren@nvidia.com>
-
由 Hans de Goede 提交于
Add generic fs support, so that commands like ls, load and test -e can be used on ubifs. Signed-off-by: NHans de Goede <hdegoede@redhat.com> Reviewed-by: NHeiko Schocher <hs@denx.de>
-
由 Hans de Goede 提交于
Implement the necessary functions for implementing generic fs support for ubifs. Signed-off-by: NHans de Goede <hdegoede@redhat.com> Reviewed-by: NHeiko Schocher <hs@denx.de>
-
由 Hans de Goede 提交于
Modify the ubifs u-boot wrapper function prototypes for generic fs use, and give them their own header file. This is a preparation patch for adding ubifs support to the generic fs code from fs/fs.c. Signed-off-by: NHans de Goede <hdegoede@redhat.com> Reviewed-by: NHeiko Schocher <hs@denx.de>
-
由 Hans de Goede 提交于
This is not necessary / useful when not building with CONFIG_SANDBOX and with the addition of ubifs support to the generic fs commands it actually gets in the way, since both operate on a fake / NULL blkdev. Signed-off-by: NHans de Goede <hdegoede@redhat.com> Acked-by: NStephen Warren <swarren@nvidia.com>
-
由 Pierre Aubert 提交于
Scripts are multi-file images, the imxtract command should handle them in the same manner. Signed-off-by: NPierre Aubert <p.aubert@staubli.com>
-
由 Thomas Huth 提交于
In the "Getting Started with Coccinelle - KVM edition" presentation that has been held by Julia Lawall at the KVM forum 2015 (see the slides at http://events.linuxfoundation.org/sites/events/files/slides/tutorial_kvm_0.pdf), she pointed out some bad return value checks in U-Boot that can be detected with Coccinelle by using the following config file: @@ identifier x,y; identifier f; statement S; @@ x = f(...); ( if (x < 0) S | if ( - y + x < 0) S ) This patch now fixes these issues. Signed-off-by: NThomas Huth <huth@tuxfamily.org>
-
由 Guillaume GARDET 提交于
Add CONFIG_ENV_VARS_UBOOT_RUNTIME_CONFIG support and enable it to set 'board_rev' and 'board_name' envs. 'board_rev' can be used in scripts to determine what board we are running on and 'board_name' for pretty printing. Signed-off-by: NGuillaume GARDET <guillaume.gardet@free.fr> Cc: Stephen Warren <swarren@wwwdotorg.org> Acked-by: NStephen Warren <swarren@wwwdotorg.org>
-
由 Bernhard Nortmann 提交于
For current U-Boot to initialize status LEDs via status_led_init(), it is required to have both CONFIG_STATUS_LED and STATUS_LED_BOOT defined. This may be a particular concern with GPIO LEDs, where __led_init() is required to correctly set up the GPIO (gpio_request and gpio_direction_output). Without STATUS_LED_BOOT the initialization isn't called, which could leave the user with a non-functional "led" command - due to the fact that the LED routines in gpio_led.c use gpio_set_value() just fine, but the GPIO never got set up properly in the first place. I think having CONFIG_STATUS_LED is sufficient to justify a corresponding call to status_led_init(), even with no STATUS_LED_BOOT defined. To do so, common/board_r.c needs call that routine, so it now is exposed via status_led.h. Signed-off-by: NBernhard Nortmann <bernhard.nortmann@web.de> [trini: Add dummy __led_init to pca9551_led.c] Signed-off-by: NTom Rini <trini@konsulko.com>
-
- 24 10月, 2015 1 次提交
-
-
由 Bernhard Nortmann 提交于
For boards that support LEDs driven via GPIO (CONFIG_GPIO_LED), it may be useful to have some generic stubs (wrapper functions) for the "colored" LEDs. This allows defining STATUS_LED_* values directly to GPIO numbers, e.g.: #define STATUS_LED_GREEN 248 /* = PH24 */ To keep those optional, it's probably best to introduce an additional configuration setting. I've chosen CONFIG_GPIO_LED_STUBS for that. Placing the code in drivers/misc/gpio_led.c also ensures that it automatically depends on CONFIG_GPIO_LED too. Signed-off-by: NBernhard Nortmann <bernhard.nortmann@web.de> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
- 23 10月, 2015 12 次提交
-
-
由 Lokesh Vutla 提交于
Add driver model support for keystone serial driver. Signed-off-by: NLokesh Vutla <lokeshvutla@ti.com> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Thomas Chou 提交于
Convert altera_tse to driver model and phylib. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Reviewed-by: NMarek Vasut <marex@denx.de> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Thomas Chou 提交于
As the virtual address and physical address mapping of nios2 with MMU are different. Add a check of MMU, and fix the mapping. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NMarek Vasut <marex@denx.de> Reviewed-by: NLey Foon Tan <lftan@altera.com>
-
由 Thomas Chou 提交于
Add README.nios2 about how to add nios2 boards to u-boot. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NMarek Vasut <marex@denx.de>
-
由 Thomas Chou 提交于
As we use device tree to control u-boot now, the generic board can be removed. Signed-off-by: NThomas Chou <thomas@wytron.com.tw>
-
由 Thomas Chou 提交于
Convert dma_alloc_coherent to use memalign. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Reviewed-by: NMarek Vasut <marex@denx.de>
-
由 Thomas Chou 提交于
Convert copy_exception_trampoline() to use dm cpu data. Signed-off-by: NThomas Chou <thomas@wytron.com.tw>
-
由 Thomas Chou 提交于
Convert cache flush to use dm cpu data. The original cache flush functions are written in assembly and use CONFIG_SYS_{I,D}CACHE_SIZE... macros. It is difficult to convert to use cache configuration in dm cpu data which is extracted from device tree. The cacheflush.c of Linux nios2 arch uses cpuinfo structure, which is very close to our dm cpu data. So we copy and modify it to arch/nios2/lib/cache.c to replace the old cache.S. Signed-off-by: NThomas Chou <thomas@wytron.com.tw>
-
由 Thomas Chou 提交于
Set default icache and dcache configuration for start.S. We want to remove the CONFIG_SYS_{I,D}CACHE_SIZE... configuration macros. As we are just barely starting from reset, there is no luxury of device tree. We will set some maximum cache configuration so that it will work for most configurations. This is used only in this start.S. The speed penalty is only once here. After start up, during board initialization, cpu information will be extracted from device tree. Then cache flush operations will have correct cache configurations. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NMarek Vasut <marex@denx.de>
-
由 Thomas Chou 提交于
Zap initdram(), as it is not used. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NMarek Vasut <marex@denx.de>
-
由 Thomas Chou 提交于
Clean up comments style in start.S. Signed-off-by: NThomas Chou <thomas@wytron.com.tw>
-
由 Thomas Chou 提交于
Convert ioremap() to use io_region_base in dm cpu global data. Also remove three unused io functions, which have style issue and are replaced by macros already. Signed-off-by: NThomas Chou <thomas@wytron.com.tw>
-