- 25 10月, 2015 2 次提交
-
-
由 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 37 次提交
-
-
由 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>
-
由 Thomas Chou 提交于
Convert do_reset to use dm cpu data. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Thomas Chou 提交于
Remove asm/psr.h, which is not used. Also clean up asm/sections.h and unaligned.h. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Reviewed-by: NMarek Vasut <marex@denx.de>
-
由 Thomas Chou 提交于
Convert altera sysid to driver model with misc uclass. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NChin Liang See <clsee@altera.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Thomas Chou 提交于
Implement a Miscellaneous uclass with generic read or write operations. This class is used only for those do not fit other more general classes. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Thomas Chou 提交于
Both altera_jtag_serial_initialize() and altera_serial_initialize() are no longer used after they are converted to driver model. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NSimon Glass <sjg@chromium.org> Acked-by: NMarek Vasut <marex@denx.de>
-
由 Thomas Chou 提交于
Convert altera timer to driver model. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NChin Liang See <clsee@altera.com>
-
由 Thomas Chou 提交于
Start a new timer after relocation, just in case the timer has been used in per-relocation. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Thomas Chou 提交于
Implement a Timer uclass to work with lib/time.c. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NSimon Glass <sjg@chromium.org>
-
由 Thomas Chou 提交于
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: NThomas Chou <thomas@wytron.com.tw> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Thomas Chou 提交于
Convert altera_pio to driver model. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NChin Liang See <clsee@altera.com> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Thomas Chou 提交于
These macros can be used to clear and set multiple bits in a register using a single call. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Reviewed-by: NMarek Vasut <marex@denx.de> Acked-by: NChin Liang See <clsee@altera.com>
-
由 Thomas Chou 提交于
Convert altera_spi to driver model Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Reviewed-by: NJagan Teki <jteki@openedev.com>
-
由 Thomas Chou 提交于
Convert altera_uart to driver model. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Reviewed-by: NSimon Glass <sjg@chromium.org> Acked-by: NMarek Vasut <marex@denx.de>
-
由 Thomas Chou 提交于
Convert altera_jtag_uart to driver model. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NMarek Vasut <marex@denx.de> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Thomas Chou 提交于
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: NThomas Chou <thomas@wytron.com.tw> Acked-by: NMarek Vasut <marex@denx.de> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Thomas Chou 提交于
Enable malloc() pool before relocation, because this is needed to use serial uclass. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Reviewed-by: NMarek Vasut <marex@denx.de>
-
由 Thomas Chou 提交于
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: NThomas Chou <thomas@wytron.com.tw> Reviewed-by: NMarek Vasut <marex@denx.de>
-
由 Thomas Chou 提交于
There is a weak version_string[] at common/cmd_version.c . Remove the one in start.S. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NMarek Vasut <marex@denx.de>
-
由 Thomas Chou 提交于
The dly_clks() in start.S is no use after switching to generic timer. Remove it. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NMarek Vasut <marex@denx.de>
-
由 Thomas Chou 提交于
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: NMarek Vasut <marex@denx.de> Signed-off-by: NThomas Chou <thomas@wytron.com.tw>
-
由 Thomas Chou 提交于
Zap almost all of the ad-hoc timer code from interrupts.c and use the code in lib/time.c instead. Signed-off-by: NMarek Vasut <marex@denx.de> Signed-off-by: NThomas Chou <thomas@wytron.com.tw>
-
由 Thomas Chou 提交于
Enable the Driver Model config. The driver subsystems are not enabled until we enable each of them. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Acked-by: NMarek Vasut <marex@denx.de>
-
由 Thomas Chou 提交于
This patch adds device tree control of U-Boot to nios2 boards. The example dts is taken from Linux kernel. Signed-off-by: NThomas Chou <thomas@wytron.com.tw> Reviewed-by: NSimon Glass <sjg@chromium.org> Acked-by: NMarek Vasut <marex@denx.de>
-
由 Thomas Chou 提交于
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: NThomas Chou <thomas@wytron.com.tw> Acked-by: NMarek Vasut <marex@denx.de> Reviewed-by: NSimon Glass <sjg@chromium.org>
-
由 Thomas Chou 提交于
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: NThomas Chou <thomas@wytron.com.tw> Reviewed-by: NSimon Glass <sjg@chromium.org> Acked-by: NMarek Vasut <marex@denx.de>
-