[U-Boot] [Nios] New Nios Custodian

2011-10-27 Thread Scott McNutt
Dear u-boot Nios Developers, Please welcome Thomas Chou as our new Nios custodian. Over the past several months, my personal work load has increased significantly. While this is great for me both professionally and personally, it interferes with my open source activity. In the best interest of th

Re: [U-Boot] [PATCH 0/5] altera_tse: Several small, but relevant fixes/feature

2011-10-25 Thread Scott McNutt
Dear Joachim, Please be patient. Regards, --Scott Joachim Foerster wrote: > Hi all, > > Did anybody get a chance to review those 5 small patches? I would like > to get some feedback and work on it, if needed - to get them upstream. > > On 10/17/2011 05:24 PM, Joachim Foerster wrote: >> This p

Re: [U-Boot] [2011.09-rc2] Fix for compile error with gcc3

2011-09-29 Thread Scott McNutt
Hi rhabarber1848, A patch was recently submitted: http://patchwork.ozlabs.org/patch/116180 Thanks, --Scott rhabarber1848 wrote: > Hi, > > compiling U-Boot 2011.09-rc2 with gcc-3.4.6 fails with this error: > > In file included from u-boot-2011.09-rc2/include/linux/compiler.h:40, >

[U-Boot] [PATCH] Add missing header for gcc3

2011-09-23 Thread Scott McNutt
When include/linux/compiler.h is included, the associated gcc3 header is required for older build environments. Signed-off-by: Scott McNutt --- include/linux/compiler-gcc3.h | 21 + 1 files changed, 21 insertions(+), 0 deletions(-) create mode 100644 include/linux

Re: [U-Boot] Custodians, please remove tag NIOS2-5_0_0 from your repos

2011-08-07 Thread Scott McNutt
Dear Albert, Albert ARIBAUD wrote: > Custodians should remove this tag from their respective repos, except > Scott McNutt of course, who owns The Vote as far as keeping NIOS2-5_0_0 > in u-boot-nios is concerned. :) The tag no longer serves any practical purpose. Regards

Re: [U-Boot] [PATCH v1 (WIP) 00/16] [Timer]API Rewrite

2011-07-12 Thread Scott McNutt
Dear Wolfgang Wolfgang Denk wrote: > What exactly is the reason that we cannot have better timer > resolutions in NIOS? You _can_ have better timer resolutions in Nios. However, there are legacy systems that implement timer(s) with a fixed period of 10 msec. The use of such implementations is ve

[U-Boot] [Nios] Pull Request

2011-06-30 Thread Scott McNutt
Dear Wolfgang, The following changes since commit b1af6f532e0d348b153d5c148369229d24af361a: Wolfgang Denk (1): Prepare v2011.06 are available in the git repository at: git://git.denx.de/u-boot-nios.git next Mike Frysinger (1): nios2: move generic config to boards.cfg MA

Re: [U-Boot] [PATCH v2] nios2: move generic config to boards.cfg

2011-06-30 Thread Scott McNutt
Mike, Applied to: git://git.denx.de/u-boot-nios.git 'next' Thanks, --Scott Mike Frysinger wrote: > I can't build test this, but just looking at the config files written > and it seems OK ... > > Tested-by: Thomas Chou > Signed-off-by: Mike Frysinger > --- > v2 > - rebased onto master >

Re: [U-Boot] [RFC][Timer API] Revised Specification - Implementation details

2011-05-27 Thread Scott McNutt
J. William Campbell wrote: > On 5/27/2011 6:07 AM, Scott McNutt wrote: >> Graeme Russ wrote: >>> Hi Wolfgang >>> >>> On Friday, May 27, 2011, Wolfgang Denk wrote: >>>> Dear Graeme Russ, >>>> >>>> In message you >

Re: [U-Boot] [RFC][Timer API] Revised Specification - Implementation details

2011-05-27 Thread Scott McNutt
Graeme Russ wrote: > Hi Wolfgang > > On Friday, May 27, 2011, Wolfgang Denk wrote: >> Dear Graeme Russ, >> >> In message you wrote: >>> Besides, Nios can return an increment of 10 (presumably ms) between >>> two immediately consecutive calls. This causes early timeouts in CFI >>> driver >> Now t

Re: [U-Boot] [RFC] Review of U-Boot timer API

2011-05-25 Thread Scott McNutt
Graeme Russ wrote: > Hi Scott, > > On Wednesday, May 25, 2011, Scott McNutt wrote: >> Graeme Russ wrote: >> >> Hi Scott, >> >> On 25/05/11 22:36, Scott McNutt wrote: >> >> Graeme Russ wrote: >> >> OK, let's wind back - My origin

Re: [U-Boot] [RFC] Review of U-Boot timer API

2011-05-25 Thread Scott McNutt
Graeme Russ wrote: > Hi Scott, > > On 25/05/11 22:36, Scott McNutt wrote: >> Graeme Russ wrote: >>> OK, let's wind back - My original suggestion made no claim towards changing >>> what the API is used for, or how it looks to those who use it (for all

Re: [U-Boot] [RFC] Review of U-Boot timer API

2011-05-25 Thread Scott McNutt
Graeme Russ wrote: > OK, let's wind back - My original suggestion made no claim towards changing > what the API is used for, or how it looks to those who use it (for all > practical intents and purposes). I suggested: > - Removing set_timer() and reset_timer() > - Implement get_timer() as a platf

Re: [U-Boot] [RFC] Review of U-Boot timer API

2011-05-24 Thread Scott McNutt
Graeme Russ wrote: > Dear Reinhard, > > On Tue, May 24, 2011 at 3:31 PM, Reinhard Meyer > wrote: >> I know its futile to repeat what I suggested about 9 months ago... >> >> Since get_timer() is only used (to my knowledge) to break out of >> loops that do not terminate normally because an expected

Re: [U-Boot] [PATCH] [Timer]Remove calls to [get, reset]_timer outside arch/

2011-05-23 Thread Scott McNutt
Dear Graeme, Graeme Russ wrote: > On 23/05/11 22:19, Scott McNutt wrote: >> Hi Graeme, >> >> Graeme Russ wrote: >>> There is no need to use get_timer() and reset_timer() and there are build >> I must have missed something WRT reset_timer() -- my apologies >&

Re: [U-Boot] [PATCH] [Timer]Remove calls to [get, reset]_timer outside arch/

2011-05-23 Thread Scott McNutt
Hi Graeme, Graeme Russ wrote: > There is no need to use get_timer() and reset_timer() and there are build I must have missed something WRT reset_timer() -- my apologies if I'm covering old ground. When the timestamp is incremented using an interrupt that occurs with a period greater than 1 ms, w

[U-Boot] Nios Pull Request

2011-05-16 Thread Scott McNutt
Dear Wolfgang, The following changes since commit 535abb96fb665402894b820f934deaca61ce3d3e: Wolfgang Denk (1): Merge branch 'master' of git://git.denx.de/u-boot-nand-flash are available in the git repository at: git://git.denx.de/u-boot-nios.git next Thomas Chou (1): nios2

Re: [U-Boot] [PATCH] nios2: Make STANDALONE_LOAD_ADDR configurable per board

2011-05-13 Thread Scott McNutt
Thomas, Applied to git://git.denx.de/u-boot-nios.git next Thanks, --Scott Thomas Chou wrote: > Follow commit 8ae86b76c648d8bef97241c78e2fddb1c4f164d3 > which changed the variable name. > > Fix this error, > nios2-elf-ld: invalid hex number `-o' > > Signed-off-by: Thomas Chou > --- > for u-boo

[U-Boot] [Nios] Pull Request

2011-04-08 Thread Scott McNutt
Dear Wolfgang, The following changes since commit 4db2fa7f9446d0f2fe8db3d62184b1212fe22707: Wolfgang Denk (1): Merge branch 'master' of git://git.denx.de/u-boot-mpc85xx are available in the git repository at: git://git.denx.de/u-boot-nios.git next Thomas Chou (1): nios2: r

Re: [U-Boot] [PATCH v2] nios2: reset cfi flash before reading env

2011-03-26 Thread Scott McNutt
Applied to: git://git.denx.de/u-boot-nios next Thanks, --Scott Thomas Chou wrote: > Flash might be in unknown state when u-boot is started with jtag. > And got wrong env data. So reset it in board early init. > > We cannot use generic cfi flash routines, because flash_init() is > not run yet.

Re: [U-Boot] [PATCH 15/21] nios2: Generic system restart support

2011-03-08 Thread Scott McNutt
Moffett, Kyle D wrote: > Hi! > > On Mar 08, 2011, at 19:13, Scott McNutt wrote: >> Hi Kyle, >> >> Kyle Moffett wrote: >>> The Nios-II port appears to use no generic hardware capability for >>> performing a CPU reset. Since all of the supported boards

Re: [U-Boot] [PATCH 15/21] nios2: Generic system restart support

2011-03-08 Thread Scott McNutt
Hi Kyle, Kyle Moffett wrote: > The Nios-II port appears to use no generic hardware capability for > performing a CPU reset. Since all of the supported boards use the exact > same code to perform a jump-to-flash it goes into __arch_restart(). > > This means that Nios-II has a no-op __arch_emergen

[U-Boot] [Nios] Pull Request

2011-02-08 Thread Scott McNutt
Dear Wolfgang, The following changes since commit 8d4addc3c3fe1a9ea160a5a1a20a1f934ff3fe97: Wolfgang Denk (1): Merge branch 'master' of git://git.denx.de/u-boot-mpc83xx are available in the git repository at: git://git.denx.de/u-boot-nios.git next Thomas Chou (4): nios2: a

Re: [U-Boot] [PATCH] nios2: add gpio_free

2011-01-18 Thread Scott McNutt
Added to: git://git.denx.de/u-boot-nios.git 'next' Thank you, --Scott Thomas Chou wrote: > Signed-off-by: Thomas Chou > --- > arch/nios2/include/asm/gpio.h |6 ++ > board/altera/nios2-generic/gpio.c |5 + > 2 files changed, 11 insertions(+), 0 deletions(-) > > diff --git a

Re: [U-Boot] [PATCH] nios2: add gpio_is_valid

2011-01-18 Thread Scott McNutt
Added to: git://git.denx.de/u-boot-nios.git 'next' Thank you, --Scott Thomas Chou wrote: > Signed-off-by: Thomas Chou > --- > arch/nios2/include/asm/gpio.h|6 ++ > board/altera/nios2-generic/custom_fpga.h |1 + > board/altera/nios2-generic/gpio.c|6 ++ >

Re: [U-Boot] [PATCH] nios2: use long for ssize_t

2011-01-18 Thread Scott McNutt
Added to: git://git.denx.de/u-boot-nios.git 'next' Thank you, --Scott Thomas Chou wrote: > This is consistent with nios2-linux. And resolved the warning, > > cmd_nvedit.c: In function `do_env_export': > cmd_nvedit.c:660: warning: size_t format, ssize_t arg (arg 3) > > Signed-off-by: Thomas Ch

Re: [U-Boot] [PATCH] altera_spi: add spi_set_speed

2011-01-18 Thread Scott McNutt
Added to: git://git.denx.de/u-boot-nios.git 'next' Thank you, --Scott Thomas Chou wrote: > Added this for mmc_spi driver. Though altera spi core does not > support programmable speed. It is fixed when configured in > sopc-builder. > > Signed-off-by: Thomas Chou > --- > drivers/spi/altera_spi

Re: [U-Boot] [STATUS] Custodian changes, using Patchwork

2010-11-12 Thread Scott McNutt
Wolfgang Denk wrote: > For now, I would like to ask all CUSTODIANS to register as users at > patchwork.ozlabs.org, so we can arrange that the appropriate > privileges will be granted to you. Registered as "smcnutt" Regards, --Scott ___ U-Boot mai

[U-Boot] [Nios] Pull Request

2010-08-25 Thread Scott McNutt
Dear Wolfgang, The following changes since commit bd2313078114c4b44c4a5ce149af43bcb7fc8854: Wolfgang Denk (1): Merge branch 'master' of ssh://gemini/home/wd/git/u-boot/master are available in the git repository at: git://git.denx.de/u-boot-nios.git next Thomas Chou (2): ni

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

2010-08-19 Thread Scott McNutt
Thomas, Applied to: git://git.denx.de/u-boot-nios.git next Thanks, --Scott Thomas Chou wrote: > There is a limitation (or bug?) of nios2 toolchain. The nios2 gcc > didn't generate correct code when the reset vector is passed as a > constant. It just generated a direct "call", which was wrong whe

Re: [U-Boot] [PATCH] nios2: fix bootm error on fdt args

2010-08-04 Thread Scott McNutt
Applied to branch 'next' at: git://git.denx.de/u-boot-nios.git Regards, --Scott Thomas Chou wrote: > We should check argv[3] only if there are enough args. Otherwise, > it might cause invalid memory access fault. > > Signed-off-by: Thomas Chou > --- > arch/nios2/lib/bootm.c |2 +- > 1

[U-Boot] [Nios] Pull Request

2010-07-12 Thread Scott McNutt
Dear Wolfgang, The following changes since commit 54841ab50c20d6fa6c9cc3eb826989da3a22d934: Wolfgang Denk (1): Make sure that argv[] argument pointers are not modified. are available in the git repository at: git://git.denx.de/u-boot-nios.git next Thomas Chou (6): nios2: u

Re: [U-Boot] [PATCH v2] nios2: remove EP1C20, EP1S10, EP1S40 boards

2010-07-12 Thread Scott McNutt
00644 board/altera/ep1s40/Makefile > delete mode 100644 board/altera/ep1s40/config.mk > delete mode 100644 board/altera/ep1s40/ep1s40.c > delete mode 100644 include/configs/EP1C20.h > delete mode 100644 include/configs/EP1S10.h > delete mode 100644 include/configs/EP1S40.h > &

Re: [U-Boot] [PATCH 2/2 v2] gpio_led: add gpio_request to __led_init

2010-06-15 Thread Scott McNutt
Applied to: git://git.denx.de/u-boot-nios.git next Thanks, --Scott Thomas Chou wrote: > This patch adds the gpio usage request. The polarity is changed to > positive as suggested by Mike Frysinger. > > Signed-off-by: Thomas Chou > --- > v2: fix typo, change led polarity > > drivers/misc/gpio_l

Re: [U-Boot] [PATCH 1/2] nios2: add gpio_request

2010-06-15 Thread Scott McNutt
Applied to: git://git.denx.de/u-boot-nios.git next Thanks, --Scott Thomas Chou wrote: > This will be used by nand_plat. > > Signed-off-by: Thomas Chou > --- > arch/nios2/include/asm/gpio.h |6 ++ > board/altera/nios2-generic/gpio.c |5 + > 2 files changed, 11 insertions(+),

Re: [U-Boot] [PATCH] nios2: add fdt support

2010-06-15 Thread Scott McNutt
Applied to: git://git.denx.de/u-boot-nios.git next Thanks, --Scott Thomas Chou wrote: > This patch adds fdt support to boot linux, followed Michal's > work on microblaze. > > Signed-off-by: Thomas Chou > --- > arch/nios2/lib/bootm.c | 21 + > 1 files changed, 21 insertions

Re: [U-Boot] [PATCH] nios2: use gc sections to reduce image size

2010-06-15 Thread Scott McNutt
Applied to: git://git.denx.de/u-boot-nios.git next Thanks, --Scott Thomas Chou wrote: > Follow the discussion of Charles Manning and Mike Frysinger. > Using gc_sections helps reduce image size. > > Configuring for nios2-generic board... > Before, >textdata bss dec hex filename

Re: [U-Boot] [Nios2-dev] [PATCH] nios2: use gc sections to reduce image size

2010-05-28 Thread Scott McNutt
> Ian Abbott wrote: >> On 28/05/2010 05:08, Thomas Chou wrote: >>> Follow the discussion of Charles Manning and Mike Frysinger. >>> Using gc_sections helps reduce image size. >> Hi Thomas, >> >> Will that stop it working with the gcc3-based nios2 nommu toolchain? >> The version of 'ld' in that tool

[U-Boot] [Nios] Pull Request

2010-05-28 Thread Scott McNutt
Dear Wolfgang, The following changes since commit 01f03bda5b22e5aeae5f02fd537da97a41485c73: Wolfgang Denk (1): Prepare v2010.06-rc1 are available in the git repository at: git://git.denx.de/u-boot-nios.git next Thomas Chou (8): nios2: add gpio support misc: add gpio

Re: [U-Boot] [PATCH 0/4 v2] Makefile: rework / cleanup

2010-05-28 Thread Scott McNutt
Wolfgang Denk wrote: > In message <4bff1e99.8020...@wytron.com.tw> you wrote: >> But old nios-32 arch is broken and will be removed soon. Shall I perform >> the removal based on current head or after these patches applied? > > I don't really care - the chages are simple enough. > > I see your p

Re: [U-Boot] old nios arch removal

2010-05-27 Thread Scott McNutt
Thomas, > The old nios arch is obsolete and the build has been broken for a long > time. Shall we remove it from u-boot? I'm in favor of removing the nios-32 code. It's been a very long time since I had a customer using nios-32 -- never mind nios-32 u-boot. If nobody objects, let's get rid of i

Re: [U-Boot] [PATCH] nios2: allow STANDALONE_LOAD_ADDR overriding

2010-05-25 Thread Scott McNutt
Applied to: git://git.denx.de/u-boot-nios.git next Thanks, --Scott Thomas Chou wrote: > This patch allows users to override default STANDALONE_LOAD_ADDR. > The gcclibdir path was duplicated in the standalone Makefile and > can be removed. > > Signed-off-by: Thomas Chou > --- > arch/nios2/c

Re: [U-Boot] [PATCH] nios2: fix div64 issue for gcc4

2010-05-25 Thread Scott McNutt
Applied to: git://git.denx.de/u-boot-nios.git next Thanks, --Scott Thomas Chou wrote: > This patch fixes the run-time error on div64 when built with > gcc4, which was reported by jhwu0625 on nios forum. It merges > math support from libgcc of gcc4. This patch is copied from > nios2-linux. >

Re: [U-Boot] [PATCH v2] nios2: fix r15 issue for gcc4

2010-05-25 Thread Scott McNutt
Applied to: git://git.denx.de/u-boot-nios.git next Thanks, --Scott Thomas Chou wrote: > The "-ffixed-r15" option doesn't work well for gcc4. Since we > don't use gp for small data with option "-G0", we can use gp > as global data pointer. This allows compiler to use r15. It > is necessary for

Re: [U-Boot] [PATCH 6/6 v3] nios2: add spi flash support to nios2-generic board

2010-05-25 Thread Scott McNutt
Thomas, I applied this to: git://git.denx.de/u-boot-nios.git testing after merging with Mike's 'sf' branch at: git://git.denx.de/u-boot-blackfin so we can pickup: [PATCH 5/6 v3] spi_flash: support old STMicro parts with RES I'll merge once Mike's changes are available upstream. In

Re: [U-Boot] [PATCH 4/6 v10] spi: add altera spi controller support

2010-05-25 Thread Scott McNutt
Applied to: git://git.denx.de/u-boot-nios.git next Thanks, --Scott Thomas Chou wrote: > This patch adds the driver of altera spi controller, which is > used as epcs/spi flash controller. It also works with mmc_spi > driver. > > This driver support more than one spi bus, with base list decla

Re: [U-Boot] [PATCH 3/6 v3] nios2: add gpio support to nios2-generic board

2010-05-25 Thread Scott McNutt
Applied to: git://git.denx.de/u-boot-nios.git next Thanks, --Scott Thomas Chou wrote: > This patch adds gpio support of Altera PIO component to the > nios2-generic board. Though it drives only gpio_led at the > moment, it supports bidirectional port to control bit-banging > I2C, NAND flash b

Re: [U-Boot] [PATCH 2/6 v2] misc: add gpio based status led driver

2010-05-25 Thread Scott McNutt
Applied to: git://git.denx.de/u-boot-nios.git next Thanks, --Scott Thomas Chou wrote: > This patch adds a status led driver followed the GPIO access > conventions of Linux. The led mask is used to specify the gpio pin. > > Signed-off-by: Thomas Chou > --- > v2: moved to drivers/misc. > >

Re: [U-Boot] [PATCH 1/6 v4] nios2: add gpio support

2010-05-25 Thread Scott McNutt
Applied to: git://git.denx.de/u-boot-nios.git next Thanks, --Scott Thomas Chou wrote: > This patch adds driver for a trivial gpio core, which is described > in http://nioswiki.com/GPIO. It is used for gpio led and nand flash > interface in u-boot. > > When CONFIG_SYS_GPIO_BASE is not defined

Re: [U-Boot] Building for da830 fails

2010-05-11 Thread Scott McNutt
Wolfgang Denk wrote: > Ah. With "USE_PRIVATE_LIBGCC=yes" I see this one: > > undefined reference to `__aeabi_uldivmod' > > Note that this is __aeabi_uldivmod, not __udivdi3. > > > Which version of compiler / which tool chain are you using? gcc 4.1.2 --Scott

Re: [U-Boot] Building for da830 fails

2010-05-07 Thread Scott McNutt
Wolfgang Denk wrote: > In message <4be42048.7000...@ge.com> you wrote: >> This did not happen when I last updated on March 22nd and >> I have not updated my tools at all. > > Then you are in an excellent position to run git bisect and find out > which exact commit is responsible for the changed be

Re: [U-Boot] [PATCH v2] misc: add gpio based status led driver

2010-05-04 Thread Scott McNutt
Dear Wolfgang, Wolfgang Denk wrote: > Dear Thomas Chou, > > In message <4bd7b0b3.3010...@wytron.com.tw> you wrote: >> I sent a patch to enable some peripherals on the nios2-generic board. >> >> 04/28 [PATCH v2] nios2: add epcs, gpio led and mmc_spi to nios2-generic >> >> This patch should be appl

Re: [U-Boot] [PATCH 3/6 v3] nios2: add gpio support to nios2-generic board

2010-04-30 Thread Scott McNutt
Thomas Chou wrote: > On 04/30/2010 10:24 PM, Scott McNutt wrote: >> Thomas Chou wrote: >>> This patch adds gpio support of Altera PIO component to the >>> nios2-generic board. Though it drives only gpio_led at the >>> moment, it supports bidirectional port

Re: [U-Boot] [PATCH 3/6 v3] nios2: add gpio support to nios2-generic board

2010-04-30 Thread Scott McNutt
Thomas Chou wrote: > This patch adds gpio support of Altera PIO component to the > nios2-generic board. Though it drives only gpio_led at the > moment, it supports bidirectional port to control bit-banging > I2C, NAND flash busy status or button switches, etc. > > Signed-off-by: Thomas Chou > ---

Re: [U-Boot] [PATCH v2] misc: add gpio based status led driver

2010-04-24 Thread Scott McNutt
Hi Wolfgang, Thomas Chou wrote: > On 04/25/2010 06:32 AM, Wolfgang Denk wrote: >> >> I mean, which board in U-Boot uses this code? I didn't find any. I think the most accurate answer is both "all" and "none" ... and I'm not trying to be funny or disrespectful in any way. It's just so very easy to

[U-Boot] [Nios] Pull Request

2010-04-24 Thread Scott McNutt
Dear Wolfgang, The following changes since commit 6e5fb4eec3702a13770769a5a48a9423aa68ee9c: Wolfgang Denk (1): Merge branch 'master' of git://git.denx.de/u-boot-mmc are available in the git repository at: git://git.denx.de/u-boot-nios.git next Thomas Chou (8): nios2: allow

Re: [U-Boot] [PATCH] nios2: remove EP1C20, EP1S10, EP1S40 boards

2010-04-22 Thread Scott McNutt
Hi Thomas, Thomas Chou wrote: >>> With nios2-generic approach, the fpga parameter header file can >>> be generated from hardware designs using tools. Porting u-boot for >> >> What tools are you referring to? > 2. sopc-create-config-files > > The script is available at > > http://sopc.et.ntust

Re: [U-Boot] [PATCH 5/5 v3] nios2: fix no flash, add nand and mmc init in board.c

2010-04-22 Thread Scott McNutt
Applied. Thanks. --Scott Thomas Chou wrote: > This patch fixes error when CONFIG_SYS_NO_FLASH. And adds > nand flash and mmc initialization, which should go before > env initialization. > > Signed-off-by: Thomas Chou > --- > v3 include mmc.h and nand.h. > v2 arch dir reorganized. > > arch/nios

Re: [U-Boot] [PATCH] nios2: consolidate reset initialization

2010-04-22 Thread Scott McNutt
Applied. Thanks. --Scott Thomas Chou wrote: > Global interrupt should be disabled from the beginning. > > Signed-off-by: Thomas Chou > --- > arch/nios2/cpu/start.S |9 - > 1 files changed, 4 insertions(+), 5 deletions(-) > > diff --git a/arch/nios2/cpu/start.S b/arch/nios2/cpu/star

Re: [U-Boot] [PATCH v2] altera_jtag_uart: bypass when no jtag connection

2010-04-22 Thread Scott McNutt
Applied. Thanks. --Scott Thomas Chou wrote: > This patch adds an option to bypass output waiting when there > is no jtag connection. This allows the jtag uart work similar > to a serial uart, ie, boot even without connection. > > This option is enabled with, > > Signed-off-by: Thomas Chou > ---

Re: [U-Boot] [Nios] Pull Request

2010-04-22 Thread Scott McNutt
Wolfgang Denk wrote: > > Um... Scott, I have a few other NIOS2 related patches in my queue > that seem to be pending, could you please have a look at these? > > 03/25 Thomas Chou [PATCH v2] nios2: add dma_alloc_coherent with > asm-nios2/dma-mapping.h Applied resubmission: 04/16 Thomas Chou [PA

Re: [U-Boot] [PATCH v3] nios2: add dma_alloc_coherent

2010-04-22 Thread Scott McNutt
Applied. Thanks. --Scott Thomas Chou wrote: > This function return cache-line aligned allocation which is mapped > to uncached io region. > > Signed-off-by: Thomas Chou > --- > arch dir reorganized. > > arch/nios2/include/asm/dma-mapping.h | 23 +++ > 1 files changed, 23

Re: [U-Boot] [PATCH v2] nios2: add 64 bits swab support

2010-04-22 Thread Scott McNutt
Applied. Thanks. --Scott Thomas Chou wrote: > This patch adds 64 bits swab support. Most 32 bits processors use > this. We need 64 bits swab for UBI. > > Signed-off-by: Thomas Chou > --- > arch dir reorganized. > > arch/nios2/include/asm/byteorder.h |6 ++ > 1 files changed, 6 insertio

Re: [U-Boot] [PATCH v5] nios2: add altera cf reset

2010-04-22 Thread Scott McNutt
Applied. Thanks. --Scott Thomas Chou wrote: > This patch toggles power to reset the cf card. > > Signed-off-by: Thomas Chou > --- > more checkpatch.pl fixes > > board/altera/common/cfide.c | 33 + > 1 files changed, 33 insertions(+), 0 deletions(-) > create m

Re: [U-Boot] [PATCH] nios2: allow link script overriding from boards

2010-04-22 Thread Scott McNutt
Applied. Thanks. --Scott Thomas Chou wrote: > This patch allow boards to override the default link script. > > Signed-off-by: Thomas Chou > --- > arch/nios2/config.mk |2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/arch/nios2/config.mk b/arch/nios2/config.mk > in

Re: [U-Boot] [PATCH] nios2: remove EP1C20, EP1S10, EP1S40 boards

2010-04-22 Thread Scott McNutt
Hi Thomas, Thomas Chou wrote: > The example configuration files of nios2-generic board can generated > binary to run on the EP1C20, EP1S10, and EP1S40 boards. So the three > boards can be removed. > > With nios2-generic approach, the fpga parameter header file can > be generated from hardware des

Re: [U-Boot] Is there a better way?

2010-04-20 Thread Scott McNutt
Hi Chris, Ira W. Snyder wrote: >> My problem: >> If I have an in-memory filesystem on my board (the ramdisk), and I have the >> entire 256MB of memory accessible to the host over the PCI bus, you'd think >> I could write a tool (or find a tool) that I could point at a block of >> physical memory a

Re: [U-Boot] [PATCH] nios2: add gpio based status led driver

2010-04-20 Thread Scott McNutt
Thomas Chou wrote: > On 04/20/2010 09:19 PM, Scott McNutt wrote: >>> +void __led_init(led_id_t mask, int state) >>> +{ >>> +gpio_direction_output(mask, (state == STATUS_LED_ON) ? 0 : 1); >> >> >> The direction register only exists when the PIO

Re: [U-Boot] [PATCH] nios2: add gpio based status led driver

2010-04-20 Thread Scott McNutt
Thomas, Thomas Chou wrote: > This patch adds a gpio based status led driver. The led mask > is used to specify the gpio pin. > > Signed-off-by: Thomas Chou > --- > board/altera/common/gpioled.c | 30 ++ > 1 files changed, 30 insertions(+), 0 deletions(-) > create

Re: [U-Boot] [Nios] Pull Request

2010-04-19 Thread Scott McNutt
Wolfgang, Wolfgang Denk wrote: > Um... Scott, I have a few other NIOS2 related patches in my queue > that seem to be pending, could you please have a look at these? > > 03/25 Thomas Chou [PATCH v2] nios2: add dma_alloc_coherent with > asm-nios2/dma-mapping.h > 03/27 Thomas Chou [PATCH] nios2:

[U-Boot] [Nios] Pull Request

2010-04-16 Thread Scott McNutt
Rev. A support are available in the git repository at: git://git.denx.de/u-boot-nios.git master Scott McNutt (1): nios2: Move individual board linker scripts to common script in cpu tree. arch/nios2/config.mk |2 + {board/altera/ep1c20 => a

[U-Boot] [PATCH] nios2: Move individual board linker scripts to common script in cpu tree.

2010-04-16 Thread Scott McNutt
Signed-off-by: Scott McNutt --- arch/nios2/config.mk|2 + arch/nios2/cpu/u-boot.lds | 135 ++ board/altera/ep1c20/u-boot.lds | 135 -- board/altera/ep1s10/u-boot.lds | 135

[U-Boot] [Nios] Pull Request

2010-04-02 Thread Scott McNutt
Wolfgang, The following changes since commit ffa37fc98d71ef930bccd4e9eed37f6ce6b4d6af: Wolfgang Denk (1): Merge branch 'next' are available in the git repository at: git://git.denx.de/u-boot-nios.git master Scott McNutt (7): nios2: Move serial drivers to indivi

Re: [U-Boot] [PATCH] nios2: Set CONFIG_SYS_HZ to 1000 all nios2 boards.

2010-04-01 Thread Scott McNutt
Michal, >> It would indeed be more efficient -- perhaps a common header for >> the Altera boards when time permits. > > :-) It is not just to be more efficient. > 1. Save u-boot size > 2. If is only one place where it is defined than you don't need to spend > time to fix all boards which are ver

Re: [U-Boot] [PATCH] nios2: Set CONFIG_SYS_HZ to 1000 all nios2 boards.

2010-04-01 Thread Scott McNutt
Michal Simek wrote: > Scott McNutt wrote: >>CONFIG_SYS_HZ was being calculated (incorrectly) in nios2 >> configuration >>headers. Updated comments to accurately describe timebase macros. >> >> Signed-off-by: Scott McNutt >> -

[U-Boot] [PATCH] nios2: Reload timer count in reset_timer()

2010-03-31 Thread Scott McNutt
establishing the base timestamp with get_timer(0), provided reset_timer() resets the hardware timer (rather than simply resetting only the timestamp). This has the effect of synchronizing the interrupts (and the advance of the timestamp) with the timing loop. Signed-off-by: Scott McNutt

Re: [U-Boot] [PATCH] nios2: Set CONFIG_SYS_HZ to 1000 all nios2 boards.

2010-03-30 Thread Scott McNutt
Hi Thomas, Thomas Chou wrote: > On 03/31/2010 10:09 AM, Scott McNutt wrote: >>> So it might be cleaner to let user define the HZ as the actual tick rate >>> and increase the tick count by one in the tmr_isr. >>> >> This was discussed/debated thoroughly

Re: [U-Boot] [PATCH v2] net: add opencore 10/100 ethernet mac driver

2010-03-30 Thread Scott McNutt
Hi Wolfgang, Do we have a network drivers custodian? ... or should I just handle this patch through the nios repository? I'm guessing that this will only be used with nios2 in the near term. I'm not sure if any Microblaze (Xilinx) folks have worked with this -- perhaps Michal can comment? Regards

Re: [U-Boot] [PATCH] nios2: pass command line and initrd to linux in bootm.c

2010-03-30 Thread Scott McNutt
Thomas, Applied. Theank you, --Scott Thomas Chou wrote: > This patch adds bootargs passing to nios2 linux. > > The args passing is enabled with, > r4 : 'NIOS' magic > r5 : pointer to initrd start > r6 : pointer to initrd end > r7 : pointer to command line > > Signed-off-by: Thomas Chou > ---

Re: [U-Boot] [PATCH] nios2: Set CONFIG_SYS_HZ to 1000 all nios2 boards.

2010-03-30 Thread Scott McNutt
> So it might be cleaner to let user define the HZ as the actual tick rate > and increase the tick count by one in the tmr_isr. This was discussed/debated thoroughly over the past year: CONFIG_SYS_HZ at 1000 is mandatory. > > -timestamp += CONFIG_SYS_NIOS_TMRMS; > +timestamp++; This me

[U-Boot] [PATCH] nios2: Fix AMDLV065D flash write bug in altera board common tree.

2010-03-30 Thread Scott McNutt
Signed-off-by: Scott McNutt --- board/altera/common/AMDLV065D.c |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/board/altera/common/AMDLV065D.c b/board/altera/common/AMDLV065D.c index 72b0a9f..7a1b4d3 100644 --- a/board/altera/common/AMDLV065D.c +++ b/board/altera

[U-Boot] [PATCH] nios2: Set CONFIG_SYS_HZ to 1000 all nios2 boards.

2010-03-30 Thread Scott McNutt
CONFIG_SYS_HZ was being calculated (incorrectly) in nios2 configuration headers. Updated comments to accurately describe timebase macros. Signed-off-by: Scott McNutt --- include/configs/EP1C20.h | 14 -- include/configs/EP1S10.h | 14 -- include/configs

Re: [U-Boot] [PATCH v3] nios2: add altera cf reset

2010-03-28 Thread Scott McNutt
Thomas, Please test your patches _before_ you post them. When you post three versions of the same patch all within thirty minutes, you do little to build any confidence in their quality or your reputation. Regards, --Scott ___ U-Boot mailing list U-Boo

[U-Boot] Rejected: [PATCH v2] nios2: flush data cache after relocating code in start.S

2010-03-25 Thread Scott McNutt
Hi Thomas, Patch is reject. > diff --git a/cpu/nios2/start.S b/cpu/nios2/start.S > index 31cd5b0..61784d8 100644 > --- a/cpu/nios2/start.S > +++ b/cpu/nios2/start.S > @@ -98,6 +98,17 @@ _cur: movhi r5, %hi(_cur - _start) > stwio r7, 0(r5) ^ The existing code uses stxi

Re: [U-Boot] [PATCH v2] spi: add altera spi controller support

2010-03-23 Thread Scott McNutt
> On Monday 22 March 2010 23:36:19 Thomas Chou wrote: >> +#include >> +#include >> +#include >> +#include >> +#include > > side note, but am i the only one who thinks nios headers in include/ is bad > mojo ? No. It's definitely bad mojo ... and has been for years (along with many other head

Re: [U-Boot] [PATCH v2] spi: add altera spi controller support

2010-03-23 Thread Scott McNutt
Applied. Thanks, --Scott Thomas Chou wrote: > 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/Makefi

[U-Boot] [PATCH][Resubmit] nios2: Add missing Ethernet initialization to board_init().

2010-03-23 Thread Scott McNutt
Signed-off-by: Scott McNutt --- lib_nios2/board.c |7 +++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/lib_nios2/board.c b/lib_nios2/board.c index 41d3297..8ec66a3 100644 --- a/lib_nios2/board.c +++ b/lib_nios2/board.c @@ -139,6 +139,13 @@ void board_init (void

[U-Boot] [PATCH] nios2: Fix outx/writex parameter order in io.h

2010-03-21 Thread Scott McNutt
The outx/writex macros were using writex(addr, val) rather than the standard writex(val, addr), resulting in incompatibilty with architecture independent components. This change set uses standard parameter order. Signed-off-by: Scott McNutt --- board/altera/common/AMDLV065D.c

[U-Boot] [PATCH] nios2: Add support for EPCS16 and EPCS64 configuration devices.

2010-03-21 Thread Scott McNutt
Signed-off-by: Scott McNutt --- cpu/nios2/epcs.c | 12 1 files changed, 8 insertions(+), 4 deletions(-) diff --git a/cpu/nios2/epcs.c b/cpu/nios2/epcs.c index 483b249..a2e3fe3 100644 --- a/cpu/nios2/epcs.c +++ b/cpu/nios2/epcs.c @@ -207,6 +207,8 @@ static void epcs_status_wr

Re: [U-Boot] [PATCH] nios2: Add missing Ethernet initialization to board_init().

2010-03-21 Thread Scott McNutt
Mike Frysinger wrote: > On Sunday 21 March 2010 13:37:53 Scott McNutt wrote: >> +WATCHDOG_RESET (); >> +puts ("Net: "); > > considering serial drivers' putc() should be calling watchdog reset, does > this > really make sense here ? No

[U-Boot] [PATCH] nios2: Add missing Ethernet initialization to board_init().

2010-03-21 Thread Scott McNutt
Signed-off-by: Scott McNutt --- lib_nios2/board.c |8 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/lib_nios2/board.c b/lib_nios2/board.c index 41d3297..311d66c 100644 --- a/lib_nios2/board.c +++ b/lib_nios2/board.c @@ -139,6 +139,14 @@ void board_init (void

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

2010-03-19 Thread Scott McNutt
Applied. Thank you, --Scott Thomas Chou wrote: > 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 100

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

2010-03-19 Thread Scott McNutt
Applied. Thank you, --Scott Thomas Chou wrote: > 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

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

2010-03-19 Thread Scott McNutt
Applied. Thank you, --Scott Thomas Chou wrote: > 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/a

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

2010-03-19 Thread Scott McNutt
Applied. Thank you, --Scott Thomas Chou wrote: > 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/

[U-Boot] [PATCH] nios2: Move serial drivers to individual files in drivers/serial

2010-03-19 Thread Scott McNutt
The standard Altera UART & JTAG UART as well as the OpenCores YANU driver are now in individual files in drivers/serial rather than a single file uner cpu/nios2. Signed-off-by: Scott McNutt --- cpu/nios2/Makefile|2 +- cpu/nios2/serial.c|

[U-Boot] Location of headers for IP blocks

2010-03-19 Thread Scott McNutt
Hi All, When an IP block can be shared among several different architectures, where should the _header_ files be located? Examples of such blocks would be OpenCores peripherals, Altera peripherals, etc. Some peripherals may not need to export any interfaces, so no header file is necessary. But t

[U-Boot] [Nios] Pull Request

2010-03-18 Thread Scott McNutt
Wolfgang, The following changes since commit f1fdc42e5efb9e3b6d0dd3b605d0848d3ca8a039: Wolfgang Denk (1): Merge branch 'master' of git://git.denx.de/u-boot-video are available in the git repository at: git://git.denx.de/u-boot-nios.git master Renato Andreola (1): nios2: Ad

Re: [U-Boot] PATCH - Added support to YANU Nios2 uart (02)

2010-03-16 Thread Scott McNutt
Renato, Patch applied to the nios2 tree. I think it's time to consider moving the nios2 header files into include/asm-nios before the top-level include gets too polluted. Regards, --Scott Renato Andreola wrote: > From d7a79fc4e5a3ebc6a1ca5c23500e3f2f1c3b33c2 Mon Sep 17 00:00:00 2001 > From: Re

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

2010-03-16 Thread Scott McNutt
Applied. Best Regards, --Scott Thomas Chou wrote: > 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-nio

  1   2   >