Re: [U-Boot] [PATCH v2 4/8] nios2: enlarge the code relocation range

2015-09-06 Thread Thomas Chou
/sf, it will be another story.. Best regards, Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 4/8] nios2: enlarge the code relocation range

2015-09-06 Thread Thomas Chou
the code twice. Right? :) Best regards Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 7/8] nios2: show fdt blob address in board info command

2015-09-06 Thread Thomas Chou
Hi Marek, On 09/05/2015 08:51 PM, Marek Vasut wrote: That's a common code you're modifying, so it has to be done right, sorry, this patch cannot be accepted in this form. I understand. I will use (u64) and print_lnum(). Best regards, Thomas Chou

Re: [U-Boot] [PATCH] nios2: configure STATUS_LED_BOOT

2015-09-06 Thread Thomas Chou
Hi Marek, On 09/05/2015 09:11 PM, Marek Vasut wrote: Idea: Maybe you can add a __weak hook into the generic timer code to blink the LED ? Thanks for the idea. I will look into it later. Cheers, Thomas Chou ___ U-Boot mailing list U-Boot

[U-Boot] [PATCH] nios2: configure STATUS_LED_BOOT

2015-09-05 Thread Thomas Chou
nios2: Switch to generic timer", with the removal of call to status_led_tick(), nios2 can not blink LED. But it doesn't really matter, because U-Boot usually runs a very short time. It should be enough to turn boot LED on and off during boot process. Signed-off-by: Thomas Chou <tho...@

[U-Boot] [PATCH v2 6/8] nios2: define _end in link script

2015-09-04 Thread Thomas Chou
Since commit 44c6e6591cb451ae606f8bde71dd5fb7b4002544 "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 <tho...@

[U-Boot] [PATCH v2 7/8] nios2: show fdt blob address in board info command

2015-09-04 Thread Thomas Chou
Show fdt blob address in board info command. Signed-off-by: Thomas Chou <tho...@wytron.com.tw> --- common/cmd_bdinfo.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/cmd_bdinfo.c b/common/cmd_bdinfo.c index ed3b935..74ff229 100644 --- a/common/cmd_bdinfo.c +++ b/

[U-Boot] [PATCH v2 8/8] nios2: enable device tree control of U-Boot

2015-09-04 Thread 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: Thomas Chou <tho...@wytron.com.tw> Reviewed-by: Simon Glass <s...@chromium.org> --- arch/nios2/dts/.gitignore | 1 + arch/nios2/dts/3c120_devboar

[U-Boot] [PATCH v2 4/8] nios2: enlarge the code relocation range

2015-09-04 Thread Thomas Chou
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 <tho...@wytron.com.tw> --- arch/nio

[U-Boot] [PATCH v2 3/8] nios2: BSS should be cleared only after board_init_f

2015-09-04 Thread Thomas Chou
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 <tho...@wytron.com.tw> --- arch/nios2/cpu/start.S | 29 +++-- 1 file changed, 15 insertions(+), 14 del

[U-Boot] [PATCH v2 1/8] nios2: permit device tree control of U-Boot

2015-09-04 Thread Thomas Chou
Enable this in the Kconfig so that nios2 boards can use device tree to configure U-Boot. Signed-off-by: Thomas Chou <tho...@wytron.com.tw> Reviewed-by: Simon Glass <s...@chromium.org> --- arch/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/Kconfig b/arch/Kconfig i

[U-Boot] [PATCH v2 5/8] nios2: remove gp assignments in link script

2015-09-04 Thread 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: Thomas Chou <tho...@wytron.com.

[U-Boot] [PATCH v2 0/8] nios2: add device tree control of U-Boot

2015-09-04 Thread Thomas Chou
These patches add device tree control of U-Boot to nios2 boards. v2 use SPDX license header. use fdt relocation in board_init_f. Thomas Chou (8): nios2: permit device tree control of U-Boot nios2: move altera_pio_init to board_early_init_r nios2: BSS should be cleared only after

[U-Boot] [PATCH v2 2/8] nios2: move altera_pio_init to board_early_init_r

2015-09-04 Thread Thomas Chou
As altera_pio_init() uses BSS, it should be moved to board_early_init_r(). Signed-off-by: Thomas Chou <tho...@wytron.com.tw> --- board/altera/nios2-generic/nios2-generic.c | 13 + include/configs/nios2-generic.h| 1 + 2 files changed, 10 insertions(+), 4 del

Re: [U-Boot] [PATCH 1/2] nios2: Switch to generic timer

2015-09-04 Thread Thomas Chou
.c due to conflict in commit 2e88bb28d8061286d2f1cabcac224df15b941b82 NDS32: Generic Board Support and Unsupport Tested on 3c120 devboard with qsys ghrd. But the status led didn't blink. Best regards, Thomas Chou ___ U-Boot mailing list U-Boot@lists.d

Re: [U-Boot] [PATCH] net: altera_tse: Zap unused variable

2015-09-04 Thread Thomas Chou
1 file changed, 2 deletions(-) Tested-by: Thomas Chou <tho...@wytron.com.tw> ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 8/8] nios2: enable device tree control of U-Boot

2015-09-04 Thread Thomas Chou
Model for Altera jtaguart, uart, spi and ethernet? Best regards, Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 0/8] nios2: add device tree control of U-Boot

2015-09-04 Thread Thomas Chou
the earlier patches, [PATCH] nios2: move command line configuration to Kconfig, Aug,28 [PATCH] nios2: enable CONFIG_NET_RANDOM_ETHADDR, Aug,29 And perhaps, [PATCH] mmc_spi: fix big-endian support error on be_to_cpu16, Aug,31 Cheers, Thomas Chou ___ U-Boot

Re: [U-Boot] [PATCH v2 2/8] nios2: move altera_pio_init to board_early_init_r

2015-09-04 Thread Thomas Chou
Hi Marek, On 09/04/2015 09:55 PM, Marek Vasut wrote: On Friday, September 04, 2015 at 02:22:17 PM, Thomas Chou wrote: As altera_pio_init() uses BSS, it should be moved to board_early_init_r(). Signed-off-by: Thomas Chou <tho...@wytron.com.tw> Shouldn't this be part of arch_cp

Re: [U-Boot] [PATCH 1/2] nios2: Switch to generic timer

2015-09-04 Thread Thomas Chou
a bit old though. Maybe you can ask one from Altera. https://www.altera.com/products/boards_and_kits/dev-kits/altera/kit-cyc3.html Best regards, Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] [PATCH v3 6/8] nios2: define _end in link script

2015-09-04 Thread Thomas Chou
Since commit 44c6e6591cb451ae606f8bde71dd5fb7b4002544 "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 <tho...@wytron.

Re: [U-Boot] [PATCH v2 7/8] nios2: show fdt blob address in board info command

2015-09-04 Thread Thomas Chou
Hi Marek, On 09/04/2015 10:01 PM, Marek Vasut wrote: + print_num("fdt_blob", (ulong)gd->fdt_blob); I think this will not work on 64bit machines. I'd agree that it won't work on 64bits machines, but it is enough for a soft-core 32btis fpga processor. :) Best regards

Re: [U-Boot] [PATCH v2 4/8] nios2: enlarge the code relocation range

2015-09-04 Thread Thomas Chou
/sf along with their nios2 jtag flash programmer, which will load the image to the linked address in sdram. The relocating loop in start.S works only if such Altera boot loader is not used, ie, booting directly from cfi flash. Best regards, Thomas Chou

[U-Boot] [PATCH v3 5/8] nios2: remove gp assignments in link script

2015-09-04 Thread 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: Thomas Chou <tho...@wytron.

Re: [U-Boot] [PATCH 5/5] nios2: relocate dtb for separated device tree

2015-09-03 Thread Thomas Chou
the problem is in the current nios2 startup code start.S. The BSS is cleared before board_init_f(). I will rework the startup code to make use of the board_init code. Best regards, Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de

[U-Boot] [PATCH 5/5] nios2: relocate dtb for separated device tree

2015-09-03 Thread Thomas Chou
The relocation of nios2 is different. We will need to move dtb at the end of u-boot-dtb.bin image away from BSS sections. Otherwise it will be zeroed during startup. Signed-off-by: Thomas Chou <tho...@wytron.com.tw> --- arch/nios2/cpu/fdt.c | 20 +++- arch/nios2/cpu/s

[U-Boot] [PATCH 0/5] nios2: add device tree control of U-Boot

2015-09-03 Thread Thomas Chou
These patches add device tree control of U-Boot to nios2 boards. In case of separated device tree blob, the blob is relocated from the end of u-boot-dtb.bin image. Thomas Chou (5): nios2: permit device tree control of U-Boot nios2: enable device tree control of U-Boot nios2: revert _end

[U-Boot] [PATCH 1/5] nios2: permit device tree control of U-Boot

2015-09-03 Thread Thomas Chou
Enable this in the Kconfig so that nios2 boards can use device tree to configure U-Boot. Signed-off-by: Thomas Chou <tho...@wytron.com.tw> --- arch/Kconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/Kconfig b/arch/Kconfig index 4f73819..207c778 100644 --- a/arch/Kconfig +++

[U-Boot] [PATCH 2/5] nios2: enable device tree control of U-Boot

2015-09-03 Thread 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: Thomas Chou <tho...@wytron.com.tw> --- arch/nios2/dts/.gitignore | 1 + arch/nios2/dts/3c120_devboard.dts | 164 + arch

[U-Boot] [PATCH 4/5] nios2: initialize stack earlier in startup

2015-09-03 Thread Thomas Chou
. It will be easier to handle fdt in C than ASM. Signed-off-by: Thomas Chou <tho...@wytron.com.tw> --- arch/nios2/cpu/start.S | 45 ++--- 1 file changed, 22 insertions(+), 23 deletions(-) diff --git a/arch/nios2/cpu/start.S b/arch/nios2/cpu/start.S index 6

[U-Boot] [PATCH 3/5] nios2: revert _end symbol in link script

2015-09-03 Thread Thomas Chou
ot-dtb.bin here to be used by fdtdec_setup(). Signed-off-by: Thomas Chou <tho...@wytron.com.tw> --- arch/nios2/cpu/u-boot.lds | 16 +--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/arch/nios2/cpu/u-boot.lds b/arch/nios2/cpu/u-boot.lds index 6e174be..2d43602 1

[U-Boot] [PATCH] mmc_spi: fix big-endian support error on be_to_cpu16

2015-08-30 Thread Thomas Chou
u-boot/drivers/mmc/mmc_spi.c:94: undefined reference to `be_to_cpu16' It should be cpu_to_be16. Signed-off-by: Thomas Chou tho...@wytron.com.tw Cc: Yoshinori Sato ys...@users.sourceforge.jp Cc: Pantelis Antoniou pantelis.anton...@konsulko.com --- drivers/mmc/mmc_spi.c | 2 +- 1 file changed, 1

[U-Boot] [PATCH] nios2: enable CONFIG_NET_RANDOM_ETHADDR

2015-08-29 Thread Thomas Chou
Enable CONFIG_NET_RANDOM_ETHADDR to generate a random MAC address when ETHADDR is not set. Signed-off-by: Thomas Chou tho...@wytron.com.tw Cc: Joe Hershberger joe.hershber...@ni.com --- configs/nios2-generic_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/configs/nios2

[U-Boot] [PATCH] nios2: move command line configuration to Kconfig

2015-08-27 Thread Thomas Chou
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 tho

[U-Boot] [PATCH] net: protect status led access in bootp

2015-08-25 Thread Thomas Chou
This fixes the error when STATUS_LED_BOOT is not defined. Signed-off-by: Thomas Chou tho...@wytron.com.tw --- net/bootp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/bootp.c b/net/bootp.c index 43466af..ab17869 100644 --- a/net/bootp.c +++ b/net/bootp.c @@ -349,7

Re: [U-Boot] Building Uboot for Nios2 - linker not found on Linux environment

2015-08-17 Thread Thomas Chou
, and is not always up-to-date. Please use u-boot.git instead. BTW. which version of nios2-elf-gcc did you use? I've tested with v3.4.6 and v4.9.1. Cheers, Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] fdt: nios: Fix warning in ft_cpu_setup()

2015-04-04 Thread Thomas Chou
*/ Acked-by: Thomas Chou tho...@wytron.com.tw ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] nios2: rebase nios2-generic board to 3c120 reference design

2014-08-31 Thread Thomas Chou
On 08/30/2014 05:47 PM, Thomas Chou wrote: Though nios2-generic board meant to be a template, it is helpful to be able to test on a real hardware. As the nios2 linux is developed and tested on a 3c120 FPGA based Golden Hardware Reference Design, it makes sense to rebase nios2-generic

[U-Boot] Pull request: u-boot-nios/master

2014-08-31 Thread Thomas Chou
Hi Tom, Please pull The following changes since commit 6defdc0b5552ab1af4a66a8abac8196cbb6b9e15: Merge branch 'master' of git://git.denx.de/u-boot-ti (2014-08-29 13:47:42 -0400) are available in the git repository at: git://git.denx.de/u-boot-nios.git master Thomas Chou (6): nios2

[U-Boot] [PATCH] nios2: rebase nios2-generic board to 3c120 reference design

2014-08-30 Thread Thomas Chou
Though nios2-generic board meant to be a template, it is helpful to be able to test on a real hardware. As the nios2 linux is developed and tested on a 3c120 FPGA based Golden Hardware Reference Design, it makes sense to rebase nios2-generic on this FPGA design. Signed-off-by: Thomas Chou tho

Re: [U-Boot] [PATCH] nios2: remove epled driver

2014-08-30 Thread Thomas Chou
Hi Thomas, On 08/25/2014 04:05 PM, Thomas Chou wrote: The epled driver was replaced by altera_pio and gpio_led. Signed-off-by: Thomas Chou tho...@wytron.com.tw Applied. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman

Re: [U-Boot] [PATCH] nios2: divide nios2-io.h into each specific drivers and remove it

2014-08-30 Thread Thomas Chou
Hi Thomas, On 08/25/2014 04:53 PM, Thomas Chou wrote: 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

Re: [U-Boot] [PATCH] serial: move nios2-yanu.h into opencores_yanu driver

2014-08-30 Thread Thomas Chou
On 08/25/2014 05:48 PM, Thomas Chou wrote: The nios2-yanu.h contains hardware registers and bits of opencores yanu. As there is no other user of this header , it should be moved into the driver. Signed-off-by: Thomas Chou tho...@wytron.com.tw CC: Renato Andreola renato.andre...@imagos.it

Re: [U-Boot] [PATCH] nios2: move nios2.h to arch asm directory

2014-08-30 Thread Thomas Chou
On 08/25/2014 05:10 PM, Thomas Chou wrote: The nios2.h is nios2 cpu specific, and should go arch asm directory. Signed-off-by: Thomas Chou tho...@wytron.com.tw Applied. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman

Re: [U-Boot] [PATCH v2] nios2: link to CONFIG_SYS_MONITOR_BASE and remove text_base hook

2014-08-30 Thread Thomas Chou
On 08/28/2014 05:35 PM, Thomas Chou wrote: 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 tho...@wytron.com.tw --- Changes in v2: - Remove text_base_hook() proto in nios2-generic.c

[U-Boot] [PATCH v2] nios2: link to CONFIG_SYS_MONITOR_BASE and remove text_base hook

2014-08-28 Thread Thomas Chou
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 tho...@wytron.com.tw --- Changes in v2: - Remove text_base_hook() proto in nios2-generic.c arch/nios2/cpu/u-boot.lds

Re: [U-Boot] [PATCH] cosmetic: README.scrapyard: add NIOS2 boards

2014-08-25 Thread Thomas Chou
Chou tho...@wytron.com.tw --- doc/README.scrapyard | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) Thanks a lot. Thomas Chou Acked-by: Thomas Chou tho...@wytron.com.tw ___ U-Boot mailing list U-Boot@lists.denx.de http

[U-Boot] [PATCH] nios2: remove epled driver

2014-08-25 Thread Thomas Chou
The epled driver was replaced by altera_pio and gpio_led. Signed-off-by: Thomas Chou tho...@wytron.com.tw --- board/altera/common/epled.c | 46 --- board/altera/nios2-generic/Makefile |1 - 2 files changed, 0 insertions(+), 47 deletions(-) delete

[U-Boot] [PATCH] nios2: divide nios2-io.h into each specific drivers and remove it

2014-08-25 Thread Thomas Chou
will help modularity and maintenance. Signed-off-by: Thomas Chou tho...@wytron.com.tw --- arch/nios2/cpu/cpu.c |1 - arch/nios2/cpu/interrupts.c | 20 +- arch/nios2/cpu/sysid.c|8 ++- drivers/serial/altera_jtag_uart.c | 20 +- drivers/serial

[U-Boot] [PATCH] nios2: move nios2.h to arch asm directory

2014-08-25 Thread Thomas Chou
The nios2.h is nios2 cpu specific, and should go arch asm directory. Signed-off-by: Thomas Chou tho...@wytron.com.tw --- arch/nios2/cpu/cpu.c |2 +- arch/nios2/cpu/interrupts.c|2 +- arch/nios2/include/asm/nios2.h | 40 include

[U-Boot] [PATCH] serial: move nios2-yanu.h into opencores_yanu driver

2014-08-25 Thread Thomas Chou
The nios2-yanu.h contains hardware registers and bits of opencores yanu. As there is no other user of this header , it should be moved into the driver. Signed-off-by: Thomas Chou tho...@wytron.com.tw CC: Renato Andreola renato.andre...@imagos.it --- drivers/serial/opencores_yanu.c | 87

[U-Boot] [PATCH] nios2: link to CONFIG_SYS_MONITOR_BASE and remove text_base hook

2014-08-25 Thread Thomas Chou
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 tho...@wytron.com.tw --- arch/nios2/cpu/u-boot.lds |2 + board/altera/nios2-generic/Makefile|1 - board

Re: [U-Boot] [PATCH v3] nios2: add generic board support

2014-08-23 Thread Thomas Chou
Applied. Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] nios2: remove obsolete PCI5441 and PK1C20 boards

2014-08-23 Thread Thomas Chou
Applied. Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH] nios2: remove EPCS driver

2014-08-23 Thread Thomas Chou
Applied. Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] Pull request: u-boot-nios/master

2014-08-23 Thread Thomas Chou
Hi Tom, Please pull The following changes since commit 7f6b8315d18f683c5181d0c3694818c1b2a20dcd: buildman: refactor help message (2014-08-22 10:42:36 -0400) are available in the git repository at: git://git.denx.de/u-boot-nios.git master Thomas Chou (3): nios2: remove obsolete

[U-Boot] [PATCH v3] nios2: add generic board support

2014-08-22 Thread Thomas Chou
This patch implements the generic board init as described in doc/README.generic-board. Signed-off-by: Thomas Chou tho...@wytron.com.tw Signed-off-by: Scott McNutt smcn...@psyent.com Reviewed-by: Stefan Roese s...@denx.de --- Changes in v2: - Coding style clean up Changes in v3: - Add display

[U-Boot] [PATCH] nios2: remove EPCS driver

2014-08-22 Thread Thomas Chou
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 tho...@wytron.com.tw --- arch/nios2/cpu/Makefile |2 +- arch/nios2/cpu/epcs.c | 717

[U-Boot] [PATCH 1/2] nios2: add generic board support

2014-08-21 Thread Thomas Chou
This patch implements the generic board init as described in doc/README.generic-board. Signed-off-by: Thomas Chou tho...@wytron.com.tw Signed-off-by: Scott McNutt smcn...@psyent.com --- arch/nios2/config.mk|2 + arch/nios2/cpu/cpu.c| 12 +++- arch/nios2/cpu/start.S

[U-Boot] [PATCH] nios2: add generic board support

2014-08-21 Thread Thomas Chou
This patch implements the generic board init as described in doc/README.generic-board. Signed-off-by: Thomas Chou tho...@wytron.com.tw Signed-off-by: Scott McNutt smcn...@psyent.com --- arch/nios2/config.mk|2 + arch/nios2/cpu/cpu.c| 12 +++- arch/nios2/cpu/start.S

[U-Boot] [PATCH v2] nios2: add generic board support

2014-08-21 Thread Thomas Chou
This patch implements the generic board init as described in doc/README.generic-board. Signed-off-by: Thomas Chou tho...@wytron.com.tw Signed-off-by: Scott McNutt smcn...@psyent.com Reviewed-by: Stefan Roese s...@denx.de --- Changes in v2: - Coding style clean up arch/nios2/config.mk

[U-Boot] [PATCH] nios2: remove obsolete PCI5441 and PK1C20 boards

2014-08-21 Thread Thomas Chou
Signed-off-by: Thomas Chou tho...@wytron.com.tw --- arch/nios2/Kconfig |8 -- board/psyent/common/AMDLV065D.c | 170 board/psyent/pci5441/Kconfig | 15 --- board/psyent/pci5441/MAINTAINERS |6 - board/psyent/pci5441/Makefile|8

Re: [U-Boot] [PATCH] nios2: Fix printf size_t format related warnings (again...)

2014-08-16 Thread Thomas Chou
on different architectures. This patch limits itself to the nios2 architecture. Applied. Thanks a lot. Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH RESEND 1/2] serial: opencores_yanu: Fix build error

2014-02-11 Thread Thomas Chou
NIOS2 maintainers so far. Maybe you can pick up this serial (or at least pick up this one which fixes build error). Applied to nios branch. Thanks and sorry for late response. Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de

Re: [U-Boot] [PATCH RESEND 2/2] serial: opencores_yanu: Avoid duplicate oc_serial_setbrg() implementation

2014-02-11 Thread Thomas Chou
. Applied to nios branch. Thanks and sorry for late response. Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] Pull request: u-boot-nios/master

2014-02-11 Thread Thomas Chou
oc_serial_setbrg() implementation drivers/serial/opencores_yanu.c | 52 + 1 file changed, 11 insertions(+), 41 deletions(-) Best regards, Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http

Re: [U-Boot] [PATCH] nios2: change size_t to fix format warning for gcc 4.7.3

2013-09-05 Thread Thomas Chou
I have checked with Altera. This is a toolchain change. We will keep this and follow mostly the types in linux-2.6/include/uapi/asm-generic/posix_types.h . - Thomas ___ U-Boot mailing list U-Boot@lists.denx.de

[U-Boot] Pull request: u-boot-nios/master

2013-09-05 Thread Thomas Chou
to 1a05b5f91e12845cf06f4b1ef34096861bf718b5: nios2: fix missing comment terminator from SPDX License commit (2013-09-06 11:03:42 +0800) Thomas Chou (1): nios2: fix missing comment terminator from SPDX License commit arch/nios2/lib/longlong.h | 1

[U-Boot] [PATCH] nios2: fix missing comment terminator from SPDX License commit

2013-09-02 Thread Thomas Chou
The commit 1a4596601fd395f3afb8f82f3f840c5e00bdd57a Add GPL-2.0+ SPDX-License-Identifier to source files generated a warning due to a missing comment terminator. longlong.h:7:1: warning: /* within comment Signed-off-by: Thomas Chou tho...@wytron.com.tw --- arch/nios2/lib/longlong.h | 1 + 1

[U-Boot] [PATCH] nios2: change size_t to fix format warning for gcc 4.7.3

2013-09-02 Thread Thomas Chou
', but argument 2 has type 'long unsigned int' [-Wformat] Signed-off-by: Thomas Chou tho...@wytron.com.tw --- arch/nios2/include/asm/posix_types.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/nios2/include/asm/posix_types.h b/arch/nios2/include/asm/posix_types.h index

Re: [U-Boot] [PATCH] nios2: change size_t to fix format warning for gcc 4.7.3

2013-09-02 Thread Thomas Chou
Hi Mike, On 09/03/2013 10:38 AM, Thomas Chou wrote: The gcc-4.7.3 in lastest nios2 toolchain generated lots of warning on type mismatch. So change typedef of size_t to unsigned int, followed those of arm and mips arch. spi_flash.c: In function 'spi_flash_read_write': spi_flash.c:42:3: warning

Re: [U-Boot] [PATCH 51/57] nios2: Use generic global_data

2012-11-19 Thread Thomas Chou
On 11/17/2012 05:20 AM, Simon Glass wrote: Move nios2 over to use generic global_data. Hi Simon, Built and tested on nios2 board. Acked-by: Thomas Chou tho...@wytron.com.tw - Thomas ___ U-Boot mailing list U-Boot@lists.denx.de http

[U-Boot] Pull request: u-boot-nios/master

2012-11-10 Thread Thomas Chou
) are available in the git repository at: git://git.denx.de/u-boot-nios.git master for you to fetch changes up to db71964235c1dfa13ec398da483b0bdbbf31d5b7: nios2: remove asm/status_led.h (2012-11-10 19:45:58 +0800) Thomas Chou (2

[U-Boot] [PATCH] nios2: use builtin functions for control registers access

2012-11-04 Thread Thomas Chou
instead. Signed-off-by: Thomas Chou tho...@wytron.com.tw Cc: Marek Vasut ma...@denx.de --- include/nios2.h | 12 ++-- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/include/nios2.h b/include/nios2.h index df8126a..5da7c87 100644 --- a/include/nios2.h +++ b/include/nios2.h

[U-Boot] [PATCH] nios2: remove asm/status_led.h

2012-11-04 Thread Thomas Chou
The file has a wrong inline keyword of __led_toggle(), which causes compilation error. And its content is defined in common status_led.h. So define CONFIG_BOARD_SPECIFIC_LED in board config files and remove this header file. Signed-off-by: Thomas Chou tho...@wytron.com.tw --- arch/nios2/include

Re: [U-Boot] [PATCH 39/71] serial: arm: Implement CONFIG_SERIAL_MULTI into altera_jtag serial driver

2012-10-02 Thread Thomas Chou
data bss dec hex filename 1354503254 23181 161885 2785d /home/thomas/tmp/u-boot/u-boot Thank you very much. Best regards Thomas Chou ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH 39/71] serial: arm: Implement CONFIG_SERIAL_MULTI into altera_jtag serial driver

2012-10-01 Thread Thomas Chou
. Also, add a weak implementation of default_serial_console() returning this driver. Signed-off-by: Marek Vasut ma...@denx.de Cc: Marek Vasut marek.va...@gmail.com Cc: Tom Rini tr...@ti.com Cc: Thomas Chou tho...@wytron.com.tw --- common/serial.c |2 ++ drivers/serial

Re: [U-Boot] [PATCH 40/71] serial: arm: Implement CONFIG_SERIAL_MULTI into altera serial driver

2012-10-01 Thread Thomas Chou
+#include linux/compiler.h +#include serial.h DECLARE_GLOBAL_DATA_PTR; Otherwise, Acked-by: Thomas Chou tho...@wytron.com.tw Best regards, Thomas Chou diff --git a/common/serial.c b/common/serial.c index 24879ec..e6566da 100644 --- a/common/serial.c +++ b/common/serial.c @@ -70,6 +70,7

Re: [U-Boot] Pull request: u-boot-nios/master

2012-07-16 Thread Thomas Chou
On 04/24/2012 09:38 AM, thomas wrote: The following changes since commit 61ddce07f8b96c5df7d00466b4da9edaecb0eff1: sandbox: Use the new run_command() (2012-04-23 22:53:54 +0200) are available in the git repository at: git://git.denx.de/u-boot-nios.git master Thomas Chou (1

Re: [U-Boot] Pull request: u-boot-nios/master

2012-04-02 Thread Thomas Chou
Dear Wolfgang, On 04/02/2012 10:50 AM, Thomas Chou wrote: I hit more build error after rc1. I will send new pull request after I fix them. The problem was solved with Marek's recent patch as Mike Frysinger said. http://patchwork.ozlabs.org/patch/149924/ So please pull the u-boot-nios

Re: [U-Boot] Pull request: u-boot-nios/master

2012-04-01 Thread Thomas Chou
Dear Wolfgang, On 03/31/2012 05:58 AM, Wolfgang Denk wrote: Just one note: After you have pulled these patches, we should also apply two other patches of the series from from Stefan Kristiansson: http://patchwork.ozlabs.org/patch/123622/ 1/3 http://patchwork.ozlabs.org/patch/123623/

Re: [U-Boot] Pull request: u-boot-nios/master

2012-04-01 Thread Thomas Chou
Dear Wolfgang, On 04/02/2012 10:40 AM, Thomas Chou wrote: Dear Wolfgang, On 03/31/2012 05:58 AM, Wolfgang Denk wrote: Just one note: After you have pulled these patches, we should also apply two other patches of the series from from Stefan Kristiansson: http://patchwork.ozlabs.org/patch

[U-Boot] [PATCH v2] nios2: move gd and bd into BSS

2012-03-01 Thread Thomas Chou
As suggested by Graeme Russ, move gd and bd data structrures to BSS instead of calculating the locations around the stack and heap. Signed-off-by: Thomas Chou tho...@wytron.com.tw --- For u-boot. v2, mark gd/bd static arch/nios2/lib/board.c | 12 +--- include/configs/nios2

[U-Boot] [PATCH] nios2: move gd and bd into BSS

2012-02-29 Thread Thomas Chou
As suggested by Graeme Russ, move gd and bd data structrures to BSS instead of calculating the locations around the stack and heap. CC: Graeme Russ graeme.r...@gmail.com CC: Mike Frysinger vap...@gentoo.org CC: Alex Hornung a...@alexhornung.com Signed-off-by: Thomas Chou tho...@wytron.com.tw

Re: [U-Boot] [PATCH 1/2] nios2-generic: Fix logic around choosing UART

2012-02-23 Thread Thomas Chou
On 02/20/2012 03:45 PM, Alex Hornung wrote: On 20/02/12 07:33, Alex Hornung wrote: * Before, the normal altera UART driver was compiled in unconditionally and the JTAG UART was missed out. * Work around this by conditionalizing the driver to use based on the UART choice in the

Re: [U-Boot] [PATCH 1/1] nios2 - adjust gbl data off to account for bd_info

2012-02-23 Thread Thomas Chou
On 02/21/2012 07:45 AM, Alex Hornung wrote: * Adjust the GBL_DATA_OFFSET to account for the fact that we'll be using the space between that offset and the start of the malloc region to allocate both a gd structure and a board info structure. * This fixes a memory corruption bug due

[U-Boot] Pull request: u-boot-nios/master

2012-02-23 Thread Thomas Chou
Dear Wolfgang, The following changes since commit 2acca35ce4604dcef933f07d90aa9c9c930e1049: Merge branch 'master' of git://git.denx.de/u-boot-mmc (2012-02-17 23:54:46 +0100) are available in the git repository at: git://git.denx.de/u-boot-nios.git master Alex Hornung (2): nios2:

Re: [U-Boot] [PATCH 2/2] nios2: implement get_ticks and get_tbclk

2012-02-22 Thread Thomas Chou
On 02/20/2012 03:34 PM, Alex Hornung wrote: * Copy over Blackfin's get_ticks and get_tbclk - they work just fine on Nios2. Signed-off-by: Alex Hornunga...@alexhornung.com --- arch/nios2/cpu/interrupts.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-)

Re: [U-Boot] [PATCH] net: move bootfile/ipaddr init into eth_initialize

2012-01-15 Thread Thomas Chou
14 files changed, 15 insertions(+), 120 deletions(-) Tested on nios2 boards. Tested-by: Thomas Chou tho...@wytron.com.tw Best regards, Thomas ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

[U-Boot] Pull request: u-boot-nios/master

2011-12-28 Thread Thomas Chou
Dear Wolfgang, The following changes since commit bfcc40bb09b05c90cc3b1496abb270eb8aa72134: Merge branch 'next' of ../next (2011-12-23 20:53:58 +0100) are available in the git repository at: git://git.denx.de/u-boot-nios.git master Stefan Kristiansson (1): nios2: add

Re: [U-Boot] [PATCH/RFC] fix several printf() modifiers

2011-12-14 Thread Thomas Chou
have tested cmd_sf and fat. Tested-by: Thomas Chou tho...@wytron.com.tw I would suggest splitting this patch into three, as they related to different custodians. Best regards, Thomas ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de

[U-Boot] cmd_sf warning on size_t

2011-12-13 Thread Thomas Chou
Hi Mike, I got this warning on cmd_sf.c, cmd_sf.c: In function `spi_flash_update_block': cmd_sf.c:130: warning: unsigned int format, size_t arg (arg 4) cmd_sf.c:135: warning: unsigned int format, size_t arg (arg 3) It was related to our arch/avr32|blackfin|nios2/asm/posix_types.h typedef

Re: [U-Boot] Hoe to configure u-boot for NIOS-2 processor

2011-11-24 Thread Thomas Chou
On 10/31/2011 02:13 PM, Purushothamrao wrote: Kindly guide me how to configure u-boot to generate u-boot.bin for NIOS-2 processor. Dear Purushothamrao, Please follow the wiki page, http://alterawiki.com/wiki/DasUBoot Best regards, Thomas ___

Re: [U-Boot] [PATCH 3/3] nios2: add flush_dcache_range function

2011-11-10 Thread Thomas Chou
On 11/04/2011 08:38 PM, Stefan Kristiansson wrote: exposes functionality to flush dcache according to the common.h API Signed-off-by: Stefan Kristianssonstefan.kristians...@saunalahti.fi Cc: Thomas Choutho...@wytron.com.tw --- arch/nios2/lib/cache.S | 10 ++ 1 files changed,

Re: [U-Boot] [PATCH 1/3] net/ethoc: use flush_dcache_range instead of flush_dcache

2011-11-10 Thread Thomas Chou
/net/ethoc.c |6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) Acked-by: Thomas Chou tho...@wytron.com.tw diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index 7ac9025..cb79753 100644 --- a/drivers/net/ethoc.c +++ b/drivers/net/ethoc.c @@ -272,7 +272,7 @@ static int

Re: [U-Boot] [PATCH 2/3] net/altera_tse: use flush_dcache_range instead of flush_dcache

2011-11-10 Thread Thomas Chou
/net/altera_tse.c |9 ++--- 1 files changed, 6 insertions(+), 3 deletions(-) Acked-by: Thomas Chou tho...@wytron.com.tw diff --git a/drivers/net/altera_tse.c b/drivers/net/altera_tse.c index 5b00717..0e6aac7 100644 --- a/drivers/net/altera_tse.c +++ b/drivers/net/altera_tse.c

Re: [U-Boot] Conflicting definitions of flush_dcache

2011-10-31 Thread Thomas Chou
On 11/01/2011 02:32 AM, Mike Frysinger wrote: On Monday 31 October 2011 03:56:25 Stefan Kristiansson wrote: so my gut feeling is that nios2 and the 2 ethernet drivers should be changed to use for example flush_dcache_range(?) correct Thanks. I will fix the nios2 and the two net drivers to

[U-Boot] Pull request u-boot-nios.git

2011-10-30 Thread Thomas Chou
The following changes since commit ce5207e191c59b3135303fd03b98dd2ac3701ba2: e1000: Allow direct access to the E1000 SPI EEPROM device (2011-10-28 00:37:01 +0200) are available in the git repository at: git://git.denx.de/u-boot-nios.git master Joachim Foerster (4): nios2: Pseudo

Re: [U-Boot] [PATCH] nios2: Offer ft_board_setup() capability and call fdt_fixup_ethernet().

2011-10-30 Thread Thomas Chou
On 10/26/2011 08:25 PM, Joachim Foerster wrote: 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 Foersterjoachim.foers...@missinglinkelectronics.com --- arch/nios2/cpu/Makefile

Re: [U-Boot] [PATCH v3] nios2: Pseudo implement dcache_status/enable/disable()

2011-10-28 Thread Thomas Chou
On 10/20/2011 04:28 PM, Joachim Foerster wrote: 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.

<    2   3   4   5   6   7   8   9   10   >