- Oct 22, 2015
-
-
Thomas Chou authored
Clean up comments style in start.S. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
Thomas Chou authored
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:
Thomas Chou <thomas@wytron.com.tw>
-
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
Remove asm/psr.h, which is not used. Also clean up asm/sections.h and unaligned.h. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Reviewed-by:
Marek Vasut <marex@denx.de>
-
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
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:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Simon Glass <sjg@chromium.org>
-
Thomas Chou authored
Both altera_jtag_serial_initialize() and altera_serial_initialize() are no longer used after they are converted to driver model. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Simon Glass <sjg@chromium.org> Acked-by:
Marek Vasut <marex@denx.de>
-
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
Start a new timer after relocation, just in case the timer has been used in per-relocation. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Simon Glass <sjg@chromium.org>
-
Thomas Chou authored
Implement a Timer uclass to work with lib/time.c. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Simon Glass <sjg@chromium.org>
-
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
Convert altera_pio to driver model. 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
These macros can be used to clear and set multiple bits in a register using a single call. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Reviewed-by:
Marek Vasut <marex@denx.de> Acked-by:
Chin Liang See <clsee@altera.com>
-
Thomas Chou authored
Convert altera_spi to driver model Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Reviewed-by:
Jagan Teki <jteki@openedev.com>
-
Thomas Chou authored
Convert altera_uart to driver model. 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
Convert altera_jtag_uart to driver model. 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
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
Enable malloc() pool before relocation, because this is needed to use serial uclass. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Reviewed-by:
Marek Vasut <marex@denx.de>
-
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
Enable the Driver Model config. The driver subsystems are not enabled until we enable each of them. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Marek Vasut <marex@denx.de>
-
Thomas Chou authored
This patch adds device tree control of U-Boot to nios2 boards. The example dts is taken from Linux kernel. 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
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>
-
Thomas Chou authored
As altera_pio_init() uses BSS, it should be moved to board_early_init_r(). Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Acked-by:
Marek Vasut <marex@denx.de>
-
Thomas Chou authored
Enable this in the Kconfig so that nios2 boards can use device tree to configure U-Boot. 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
Enable CONFIG_NET_RANDOM_ETHADDR to generate a random MAC address when ETHADDR is not set. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw> Cc: Joe Hershberger <joe.hershberger@ni.com>
-
Thomas Chou authored
This patch moves command line configuration from board header file to board defconfig in the way of Kconfig. The change passed savedefconfig. This fixes warnings such as : "CONFIG_SYS_HUSH_PARSER" redefined, when "Use hush shell" is selected with menuconfig, etc. Signed-off-by:
Thomas Chou <thomas@wytron.com.tw>
-
Mugunthan V N authored
Currently omap_hsmmc driver doesn't use sdcd pin to detect whether the card is present or not. Instead the same pin is used as GPIO to detect card presence. So change the pin mux mode from mmc0_sdcd to gpio0_6. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Tom Rini <trini@konsulko.com>
-
Mugunthan V N authored
With DM_GPIO, gpio parameters like ACTIVE_(LOW/HIGH) are to be parsed in xlate gpio drivers-ops. Since xlate is not implemented in omap_gpio driver, the driver considers all gpio to be ACTIVE_HIGH which is the default case and fails to return actual gpio status for ACTIVE_LOW gpios. So adding .xlate ops to omap_gpio. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Tom Rini <trini@konsulko.com> Reviewed-by:
Simon Glass <sjg@chromium.org>
-
Mugunthan V N authored
Import various DT files for am57xx-beagle-x15 from Linux Kernel v4.2 Add config file for this board, enable DM, DM_GPIO, DM_SERIAL and DM_MMC. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com>
-
Mugunthan V N authored
Since spl doesn't support DM currently, do not define DM_MMC for spl build. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> asdfsadf
-
Mugunthan V N authored
Import various DT files for am437x-sk-evm from Linux Kernel v4.2 Add config file for this board, enable DM, DM_GPIO, DM_SERIAL and DM_MMC. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Lokesh Vutla <lokeshvutla@ti.com>
-
Mugunthan V N authored
Import various DT files for am4372, an43xx pinctrl and am437x-gp-evm from Linux Kernel v4.2 Add config file for this board, enable DM, DM_GPIO, DM_SERIAL and DM_MMC. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com> Reviewed-by:
Lokesh Vutla <lokeshvutla@ti.com>
-
Mugunthan V N authored
Since spl doesn't support DM currently, do not define DM_MMC for spl build. Signed-off-by:
Mugunthan V N <mugunthanvnm@ti.com>
-