Re: [PATCH 1/2] Kconfig: Change SYS_MALLOC_F_LEN default to 0x2000

2022-04-07 Thread Thomas Chou
handle a little more memory usage. --- Kconfig | 9 +++-- configs/10m50_defconfig | 1 + configs/3c120_defconfig | 1 + Reviewed-by: Thomas Chou

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

2014-02-11 Thread Thomas Chou
rs 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/mailman/listi

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

2014-02-11 Thread Thomas Chou
ses. 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: Fix printf size_t format related warnings (again...)

2014-08-16 Thread Thomas Chou
y mails about such warnings 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

[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 Signed-off-by: Scott McNutt --- arch/nios2/config.mk|2 + arch/nios2/cpu/cpu.c| 12 +++- arch/nios2/cpu/start.S | 34 - arch/nios2

[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 Signed-off-by: Scott McNutt --- arch/nios2/config.mk|2 + arch/nios2/cpu/cpu.c| 12 +++- arch/nios2/cpu/start.S | 34 - arch/nios2

[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 Signed-off-by: Scott McNutt Reviewed-by: Stefan Roese --- Changes in v2: - Coding style clean up arch/nios2/config.mk|2 + arch/nios2/cpu/cpu.c| 12

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

2014-08-21 Thread Thomas Chou
Signed-off-by: Thomas Chou --- 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 -- board/psyent

[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 Signed-off-by: Scott McNutt Reviewed-by: Stefan Roese --- Changes in v2: - Coding style clean up Changes in v3: - Add display cpu and board info to nios2-generic board arch

[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 --- arch/nios2/cpu/Makefile |2 +- arch/nios2/cpu/epcs.c | 717 --- include/nios2

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

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

2014-08-25 Thread Thomas Chou
Hi Masahiro, On 08/25/2014 09:37 AM, Masahiro Yamada wrote: Commit 70fbc461 removed obsolete PCI5441 and PK1C20 boards. This commit adds them to README.scrapyard and also fills some commit IDs and dates for removed boards. Signed-off-by: Masahiro Yamada Cc: Thomas Chou --- doc

[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 --- board/altera/common/epled.c | 46 --- board/altera/nios2-generic/Makefile |1 - 2 files changed, 0 insertions(+), 47 deletions(-) delete mode 100644 board

[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 --- 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/altera_uart.c | 39

[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 --- arch/nios2/cpu/cpu.c |2 +- arch/nios2/cpu/interrupts.c|2 +- arch/nios2/include/asm/nios2.h | 40 include/nios2.h

[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 CC: Renato Andreola --- drivers/serial/opencores_yanu.c | 87 +- include/nios2

[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 --- arch/nios2/cpu/u-boot.lds |2 + board/altera/nios2-generic/Makefile|1 - board/altera/nios2

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

2015-04-04 Thread Thomas Chou
/cpu/fdt.c +++ b/arch/nios2/cpu/fdt.c @@ -34,7 +34,5 @@ void ft_cpu_setup(void *blob, bd_t *bd) * Note: aliases in the dts are required for this */ fdt_fixup_ethernet(blob); - - return 0; } #endif /* CONFIG_OF_LIBFDT && CONFIG_OF_BOARD_SETUP */ Acked-by

[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 --- Changes in v2: - Remove text_base_hook() proto in nios2-generic.c arch/nios2/cpu/u-boot.lds |2 + board

[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

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 Applied. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

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 CC: Renato Andreola Applied

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 Applied. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

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 --- Changes in v2: - Remove text_base_hook() proto in nios2-generic.c Applied

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 on this

[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):

[U-Boot] [PATCH] nios2: fix out of reach case for do_reset

2010-08-12 Thread Thomas Chou
;callr" instruction to do the job. Signed-off-by: Thomas Chou --- arch/nios2/cpu/cpu.c | 14 -- 1 files changed, 8 insertions(+), 6 deletions(-) diff --git a/arch/nios2/cpu/cpu.c b/arch/nios2/cpu/cpu.c index 6379534..d9c3003 100644 --- a/arch/nios2/cpu/cpu.c +++ b/arch/nios2/cpu

Re: [U-Boot] [PATCH] nios2: fix out of reach case for do_reset

2010-08-12 Thread Thomas Chou
On 08/13/2010 10:52 AM, Mike Frysinger wrote: > On Thu, Aug 12, 2010 at 10:40 PM, Thomas Chou wrote: >> The "Nios II Processor Reference Handbook" said, >> "call can transfer execution anywhere within the 256 MByte range >> determined by PC31..28. The Nios

Re: [U-Boot] UNS: [Nios2-dev] [PATCH] nios2: fix out of reach case for do_reset

2010-08-15 Thread Thomas Chou
On 08/14/2010 07:51 AM, Brad Parker wrote: > As a comment, that patch looks pretty ugly. I might suggest an inline > function (called "callr" or "nios2_callr") which > encapsulates the __asm__. That would make the code much easier to read. > > You could put the inline function in one of the asm

[U-Boot] [PATCH v2] nios2: fix out of reach case for do_reset

2010-08-15 Thread Thomas Chou
Processor Reference Handbook" said, "call can transfer execution anywhere within the 256 MByte range determined by PC31..28. The Nios II GNU linker does not automatically handle cases in which the address is out of this range." So we have to use registered "callr" inst

Re: [U-Boot] [PATCH v2] MAKEALL: cut down on duplication of targets

2010-08-19 Thread Thomas Chou
t; take are of it. > > While we're at it, we can be a bit more clever in the LIST_xxx handling > and avoid duplicating the list names too. > > Signed-off-by: Mike Frysinger > --- > v2 > - keep $(...) style consistent Build nios2 targets

[U-Boot] [PATCH] smc91111: add write_hwaddr

2010-10-05 Thread Thomas Chou
Add smc_write_hwaddr() to set mac address. Clear dev before use. Signed-off-by: Thomas Chou --- drivers/net/smc9.c | 40 1 files changed, 24 insertions(+), 16 deletions(-) diff --git a/drivers/net/smc9.c b/drivers/net/smc9.c index 54a1bfb

[U-Boot] [PATCH] smc91111: add write_hwaddr

2010-10-05 Thread Thomas Chou
Add smc_write_hwaddr() to set mac address. Clear dev before use. Signed-off-by: Thomas Chou --- drivers/net/smc9.c | 40 1 files changed, 24 insertions(+), 16 deletions(-) diff --git a/drivers/net/smc9.c b/drivers/net/smc9.c index 54a1bfb

Re: [U-Boot] [PATCH] smc91111: add write_hwaddr

2010-10-05 Thread Thomas Chou
Mike Frysinger wrote: > On Tuesday, October 05, 2010 21:16:10 Thomas Chou wrote: >> Add smc_write_hwaddr() to set mac address. >> Clear dev before use. > > how is this different from the one sent earlier today ? when re-submitting, > you should note what changed. >

Re: [U-Boot] [PATCH] smc91111: add write_hwaddr

2010-10-08 Thread Thomas Chou
On 10/07/2010 06:27 PM, Detlev Zundel wrote: > Hi Wolfgang, > >> Dear Thomas Chou, >> >> In message<4cac0b1e.1050...@wytron.com.tw> you wrote: >>> >>> I was confused by the greylisting of denx mail server and wondered why >>> the firs

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

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

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 ___ U-Boo

[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 unsig

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

2011-12-14 Thread Thomas Chou
. Tested-by: Thomas Chou 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/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 flush_dcache_ran

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] [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 Cc: Marek Vasut Cc: Tom Rini Cc: Thomas Chou --- common/serial.c |2 ++ drivers/serial/altera_jtag_uart.c | 71 + 2

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

2012-10-01 Thread Thomas Chou
insertions(+), 12 deletions(-) Dear Marek, Please include the following headers. --- a/drivers/serial/altera_uart.c +++ b/drivers/serial/altera_uart.c @@ -26,6 +26,8 @@ #include #include #include +#include +#include DECLARE_GLOBAL_DATA_PTR; Otherwise, Acked-by: Thomas Chou Best

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

2012-10-02 Thread Thomas Chou
3254 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 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 Hornung --- arch/nios2/cpu/interrupts.c | 22 ++ 1 files changed, 22 insertions(+), 0 deletions(-) Dear Alex, Applied.

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 user'

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 t

[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: imp

[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 CC: Mike Frysinger CC: Alex Hornung Signed-off-by: Thomas Chou --- For u-boot. arch/nios2/lib/board.c | 13 ++--- include

[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 --- For u-boot. v2, mark gd/bd static arch/nios2/lib/board.c | 12 +--- include/configs/nios2-generic.h | 12

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

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

[U-Boot] [PATCH] nios2: add unaligned.h to be included by zlib.c

2010-02-28 Thread Thomas Chou
Signed-off-by: Thomas Chou --- include/asm-nios2/unaligned.h | 19 +++ 1 files changed, 19 insertions(+), 0 deletions(-) create mode 100644 include/asm-nios2/unaligned.h diff --git a/include/asm-nios2/unaligned.h b/include/asm-nios2/unaligned.h new file mode 100644 index

Re: [U-Boot] [PATCH] nios2: add unaligned.h to be included by zlib.c

2010-03-06 Thread Thomas Chou
On 03/05/2010 07:40 PM, Mike Frysinger wrote: > i posted an asm-generic version recently i think you should be able to > leverage ... > -mike > > > Hi Mke, Thanks. I will take it. On the other side, I think it will be helpful if we have a generic bitops.h. We need it for ubifs/ubi support on

[U-Boot] [PATCH] cfi flash: add status polling method for amd flash

2010-03-09 Thread Thomas Chou
status correctly. So we have to poll DQ7, which will be inverted when the chip is busy. This feature is enabled with the config def, CONFIG_SYS_CFI_FLASH_STATUS_POLL Signed-off-by: Thomas Chou --- drivers/mtd/cfi_flash.c | 91 +++ 1 files changed, 91

[U-Boot] [PATCH] nios2: asm-nios2/unaligned.h uses generic one

2010-03-14 Thread Thomas Chou
The patch follows the asm-generic/unaligned.h patch from Mike Frysigner. Signed-off-by: Thomas Chou --- include/asm-nios2/unaligned.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 include/asm-nios2/unaligned.h diff --git a/include/asm-nios2/unaligned.h b

[U-Boot] [PATCH 00/28] u-boot next: a generic approach for nios2 arch

2010-03-19 Thread Thomas Chou
on tools generated header file which contains the devices base address, instead of entering the hex numbers by hand. Thomas Chou (28): nios2: add nios2-generic board cfi flash: add status polling method for amd flash serial: move altera uart driver to drivers/serial serial: move altera

[U-Boot] [PATCH 02/28] cfi flash: add status polling method for amd flash

2010-03-19 Thread Thomas Chou
status correctly. So we have to poll DQ7, which will be inverted when the chip is busy. This feature is enabled with the config def, CONFIG_SYS_CFI_FLASH_STATUS_POLL Signed-off-by: Thomas Chou --- drivers/mtd/cfi_flash.c | 94 ++- 1 files changed, 92

[U-Boot] [PATCH 03/28] serial: move altera uart driver to drivers/serial

2010-03-19 Thread Thomas Chou
This patch moves the altera uart driver from cpu/nios2/serial.c to drivers/serial/altera_uart.c. The registers access is changed from "volatile struct" to readl()/ writel(). This is consistent with Altera HAL and Linux. Signed-off-by: Thomas Chou --- drivers/serial/Makefile

[U-Boot] [PATCH 04/28] serial: move altera jtaguart driver to drivers/serial

2010-03-19 Thread Thomas Chou
This patch moves the altera jtaguart driver from cpu/nios2/serial.c to drivers/serial/altera_jtaguart.c. The registers access is changed from "volatile struct" to readl()/ writel(). This is consistent with Altera HAL and Linux. Signed-off-by: Thomas Chou --- drivers/seria

[U-Boot] [PATCH 01/28] nios2: add nios2-generic board

2010-03-19 Thread Thomas Chou
/custom_fpga.h . Then when you reassign the base address or turn on/off the MMU, you will only need to regenerate the header file. Signed-off-by: Thomas Chou --- MAINTAINERS|1 + MAKEALL|1 + Makefile

[U-Boot] [PATCH 05/28] serial: move yanu driver to drivers/serial

2010-03-19 Thread Thomas Chou
This patch moves the opencore yanu serial driver to the drivers/serial directory. The nios2-yanu.h header is moved to drivers/serial/yanu.h. The args of writel() are changed to writel(val, port). Signed-off-by: Thomas Chou --- drivers/serial/Makefile |1 + drivers/serial/yanu.c | 187

[U-Boot] [PATCH 06/28] spi: add altera spi controller support

2010-03-19 Thread Thomas Chou
This patch adds the driver of altera spi controller, which is also used as epcs/spi flash controller. With the spi_flash driver, they can replace the epcs driver at cpu/nios2/epcs.c. Signed-off-by: Thomas Chou --- drivers/spi/Makefile |1 + drivers/spi/altera_spi.c | 103

[U-Boot] [PATCH 07/28] net: add opencore 10/100 ethernet mac support

2010-03-19 Thread Thomas Chou
This driver supports the opencore 10/100 ethernet mac. Signed-off-by: Thomas Chou --- drivers/net/Makefile |1 + drivers/net/ethoc.c | 536 ++ 2 files changed, 537 insertions(+), 0 deletions(-) create mode 100644 drivers/net/ethoc.c diff

[U-Boot] [PATCH 09/28] nios2: change asm-nios2/io.h to compatible with nios2 linux

2010-03-19 Thread Thomas Chou
archs. Signed-off-by: Thomas Chou --- include/asm-nios2/io.h | 59 +++ 1 files changed, 24 insertions(+), 35 deletions(-) diff --git a/include/asm-nios2/io.h b/include/asm-nios2/io.h index 01d11ef..11f59ea 100644 --- a/include/asm-nios2/io.h +++ b

[U-Boot] [PATCH 08/28] net: add altera triple speeds ethernet mac support

2010-03-19 Thread Thomas Chou
This driver supports the altera triple speeds 10/100/1000 ethernet mac. Signed-off-by: Thomas Chou --- drivers/net/Makefile |1 + drivers/net/altera_tse.c | 969 ++ drivers/net/altera_tse.h | 500 3 files changed

[U-Boot] [PATCH 10/28] nios2: add asm-nios2/errno.h

2010-03-19 Thread Thomas Chou
Just pull in asm-generic. Signed-off-by: Thomas Chou --- include/asm-nios2/errno.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 include/asm-nios2/errno.h diff --git a/include/asm-nios2/errno.h b/include/asm-nios2/errno.h new file mode 100644 index 000

[U-Boot] [PATCH 12/28] nios2: use bitops from linux-2.6 asm-generic

2010-03-19 Thread Thomas Chou
These are needed to use ubi/ubifs. Signed-off-by: Thomas Chou --- include/asm-nios2/bitops.h| 14 +-- include/asm-nios2/bitops/atomic.h | 189 + include/asm-nios2/bitops/ffs.h| 41 +++ include/asm-nios2/bitops/non-atomic.h | 108

[U-Boot] [PATCH 13/28] nios2: fix __fswab64 link error with asm-nios2/byteorder.h

2010-03-19 Thread Thomas Chou
Signed-off-by: Thomas Chou --- include/asm-nios2/byteorder.h |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/include/asm-nios2/byteorder.h b/include/asm-nios2/byteorder.h index 495c823..dbee62e 100644 --- a/include/asm-nios2/byteorder.h +++ b/include/asm-nios2

[U-Boot] [PATCH 11/28] nios2: add local_irq_enable/disable to asm-nios2/system.h

2010-03-19 Thread Thomas Chou
Copy from linux header. This is needed for generic bitops. Signed-off-by: Thomas Chou --- include/asm-nios2/system.h | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/include/asm-nios2/system.h b/include/asm-nios2/system.h index ec84f59

[U-Boot] [PATCH 14/28] nios2: add dma_alloc_coherent with asm-nios2/dma-mapping.h

2010-03-19 Thread Thomas Chou
This function return cache-line aligned allocation which is mapped to uncached io region. Signed-off-by: Thomas Chou --- include/asm-nios2/dma-mapping.h | 14 ++ 1 files changed, 14 insertions(+), 0 deletions(-) create mode 100644 include/asm-nios2/dma-mapping.h diff --git a

[U-Boot] [PATCH 17/28] nios2: define text_base in start.S for linker script

2010-03-19 Thread Thomas Chou
We will remove the TEXT_BASE def in board config.mk. And compute the text base in board config header file. Signed-off-by: Thomas Chou --- cpu/nios2/start.S |6 ++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/cpu/nios2/start.S b/cpu/nios2/start.S index 31cd5b0..4b4c560

[U-Boot] [PATCH 15/28] nios2: add gpio support with asm-nios2/gpio.h

2010-03-19 Thread Thomas Chou
This gpio core is described in http://nioswiki.com/GPIO. Signed-off-by: Thomas Chou --- include/asm-nios2/gpio.h | 72 ++ 1 files changed, 72 insertions(+), 0 deletions(-) create mode 100644 include/asm-nios2/gpio.h diff --git a/include/asm-nios2

[U-Boot] [PATCH 16/28] nios2: move timer handler from interrupt.c to timer.c

2010-03-19 Thread Thomas Chou
is updated with the removal of serial.c and epcs.c, as the serial drivers are moved to drivers/serial/ and the epcs flash is supported with altera_spi and spi_flash drivers. Signed-off-by: Thomas Chou --- cpu/nios2/Makefile |2 +- cpu/nios2/interrupts.c | 64 +-

[U-Boot] [PATCH 19/28] nios2: board init for eth, no flash, nand and mmc

2010-03-19 Thread Thomas Chou
This patch adds various initializations for eth, flash protection, no flash, nand flash and mmc. Signed-off-by: Thomas Chou --- lib_nios2/board.c | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/lib_nios2/board.c b/lib_nios2/board.c index

[U-Boot] [PATCH 18/28] nios2: pass command line and initrd to linux

2010-03-19 Thread Thomas Chou
The bootargs passing to nios2 linux is enabled with 'NIOS' magic as the first argument. Signed-off-by: Thomas Chou --- lib_nios2/bootm.c | 19 --- 1 files changed, 12 insertions(+), 7 deletions(-) diff --git a/lib_nios2/bootm.c b/lib_nios2/bootm.c index 675bfa

[U-Boot] [PATCH 20/28] nios2: fix writel in board/altera/common/epled.c

2010-03-19 Thread Thomas Chou
The args to writel() is changed to (val,port). The base address is renamed to CONFIG_SYS_LED_PIO_BASE, which is consistent with the name used in altera example designs. Signed-off-by: Thomas Chou --- board/altera/common/epled.c | 12 ++-- 1 files changed, 6 insertions(+), 6 deletions

[U-Boot] [PATCH 22/28] nios2: add gpio led driver

2010-03-19 Thread Thomas Chou
Ths patch adds status led driver based on gpio interface. The STATUS_LED_BIT specifies the gpio pin number. Signed-off-by: Thomas Chou --- board/altera/common/gpioled.c | 31 +++ 1 files changed, 31 insertions(+), 0 deletions(-) create mode 100644 board/altera

[U-Boot] [PATCH 21/28] nios2: add cf ide init and reset handler

2010-03-19 Thread Thomas Chou
This patch adds the init and reset of cf card controllers. Signed-off-by: Thomas Chou --- board/altera/common/cfide.c | 79 +++ 1 files changed, 79 insertions(+), 0 deletions(-) create mode 100644 board/altera/common/cfide.c diff --git a/board/altera

[U-Boot] [PATCH 24/28] nios2: convert ep1s10 board to use cfi flash

2010-03-19 Thread Thomas Chou
The patch converts the ep1s10 board to use the common cfi flash driver. The addressing of devices is changed to virtual address. Signed-off-by: Thomas Chou --- board/altera/ep1s10/Makefile |2 +- board/altera/ep1s10/config.mk |2 +- board/altera/ep1s10/u-boot.lds |1 + include

[U-Boot] [PATCH 23/28] nios2: convert ep1c20 board to use cfi flash and spi flash

2010-03-19 Thread Thomas Chou
The patch converts the ep1c20 board to use the common cfi flash and spi driver. The addressing of devices is changed to virtual address. Signed-off-by: Thomas Chou --- board/altera/ep1c20/Makefile |2 +- board/altera/ep1c20/config.mk |2 +- board/altera/ep1c20/u-boot.lds |1

[U-Boot] [PATCH 26/28] nios2: convert pci5441 board to use cfi flash

2010-03-19 Thread Thomas Chou
The patch converts the pci5441 board to use the common cfi flash driver. The addressing of devices is changed to virtual address. Signed-off-by: Thomas Chou --- board/psyent/pci5441/Makefile |2 +- board/psyent/pci5441/config.mk |2 +- board/psyent/pci5441/u-boot.lds |1

[U-Boot] [PATCH 28/28] nios2: add struct stat support in linux/stat.h

2010-03-19 Thread Thomas Chou
This is needed for jffs2 support. Signed-off-by: Thomas Chou --- include/linux/stat.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/stat.h b/include/linux/stat.h index 2ce1c25..cef6369 100644 --- a/include/linux/stat.h +++ b/include/linux/stat.h

[U-Boot] [PATCH 25/28] nios2: convert ep1s40 board to use cfi flash

2010-03-19 Thread Thomas Chou
The patch converts the ep1s40 board to use the common cfi flash driver. The addressing of devices is changed to virtual address. Signed-off-by: Thomas Chou --- board/altera/ep1s40/Makefile |2 +- board/altera/ep1s40/config.mk |2 +- board/altera/ep1s40/u-boot.lds |1 + include

[U-Boot] [PATCH 27/28] nios2: convert pk1c20 board to use cfi flash and spi flash

2010-03-19 Thread Thomas Chou
The patch converts the pk1c20 board to use the common cfi flash and spi driver. The addressing of devices is changed to virtual address. The args to writel() is changed to (val,port) in led.c. Signed-off-by: Thomas Chou --- board/psyent/pk1c20/Makefile |2 +- board/psyent/pk1c20

Re: [U-Boot] [PATCH 00/28] u-boot next: a generic approach for nios2 arch

2010-03-19 Thread Thomas Chou
On 03/19/2010 03:43 PM, Thomas Chou wrote: > These patches are for next u-boot release. I udnerstand the merge window is > not opened yet. But there are quite a few things to review, so please > allow me submit them early. > > This is a generic approach to port u-boot for nios2 bo

Re: [U-Boot] [PATCH 00/28] u-boot next: a generic approach for nios2 arch

2010-03-19 Thread Thomas Chou
On 03/19/2010 10:55 PM, Peter Tyser wrote: >> >> Please disregard these patches. I will resubmit after reorganization. >> > Hi Thomas, > When you resubmit, please use the "--no-chain-reply-to" option for git > send-email. It will properly thread your patch series to prevent the > later patch

[U-Boot] [PATCH v2] cfi flash: add status polling method for amd flash

2010-03-19 Thread Thomas Chou
status correctly. So we have to poll DQ7, which will be inverted when the chip is busy. This feature is enabled with the config def, CONFIG_SYS_CFI_FLASH_STATUS_POLL Signed-off-by: Thomas Chou --- drivers/mtd/cfi_flash.c | 94 ++- 1 files changed, 92

[U-Boot] [PATCH 1/4] nios2: add asm-nios2/errno.h

2010-03-19 Thread Thomas Chou
Just pull in asm-generic. Signed-off-by: Thomas Chou --- include/asm-nios2/errno.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) create mode 100644 include/asm-nios2/errno.h diff --git a/include/asm-nios2/errno.h b/include/asm-nios2/errno.h new file mode 100644 index 000

[U-Boot] [PATCH 3/4] nios2: use bitops from linux-2.6 asm-generic

2010-03-19 Thread Thomas Chou
These are needed to use ubi/ubifs. Signed-off-by: Thomas Chou --- include/asm-nios2/bitops.h| 14 +-- include/asm-nios2/bitops/atomic.h | 189 + include/asm-nios2/bitops/ffs.h| 41 +++ include/asm-nios2/bitops/non-atomic.h | 108

[U-Boot] [PATCH 2/4] nios2: add local_irq_enable/disable to asm-nios2/system.h

2010-03-19 Thread Thomas Chou
Copy from linux header. This is needed for generic bitops. Signed-off-by: Thomas Chou --- include/asm-nios2/system.h | 33 + 1 files changed, 33 insertions(+), 0 deletions(-) diff --git a/include/asm-nios2/system.h b/include/asm-nios2/system.h index ec84f59

[U-Boot] [PATCH 4/4] nios2: add struct stat support in linux/stat.h

2010-03-19 Thread Thomas Chou
This is needed for jffs2 support. Signed-off-by: Thomas Chou --- include/linux/stat.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/include/linux/stat.h b/include/linux/stat.h index 2ce1c25..cef6369 100644 --- a/include/linux/stat.h +++ b/include/linux/stat.h

Re: [U-Boot] [PATCH v2] cfi flash: add status polling method for amd flash

2010-03-22 Thread Thomas Chou
On 03/22/2010 07:05 PM, Stefan Roese wrote: > I realise that this is copied from flash_status_check(). There has been a > discussion and a not yet finished patch for this part. Please take a look at > this thread: > > http://www.mail-archive.com/u-boot@lists.denx.de/msg19297.html > > And the last v

[U-Boot] [PATCH] cfi flash: add status polling method for amd flash

2010-03-22 Thread Thomas Chou
dro Rubini Renato Andreola Signed-off-by: Thomas Chou --- drivers/mtd/cfi_flash.c | 78 ++- 1 files changed, 77 insertions(+), 1 deletions(-) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index fdba297..db22255 100644 --- a/drivers/mtd/c

  1   2   3   4   5   6   7   8   9   10   >