[PATCH] net: usb: r8152: add device id of Linksys USB3GIGV1

2025-03-31 Thread Gabor Juhos
# 6.3 MiB/s done Bytes transferred = 8388608 (80 hex) uDPU>> Add the USB id of the device to the driver to allow using it from U-Boot. Signed-off-by: G

[U-Boot] [PATCH v2] malta: use unmapped flash base address

2013-11-12 Thread Gabor Juhos
, 1.5.3). Signed-off-by: Gabor Juhos Signed-off-by: Daniel Schwierzeck Cc: Paul Burton --- Changes since v1: - update CONFIG_SYS_{TEXT,MONITOR}_BASE constants - update commit message --- arch/mips/include/asm/malta.h |2 +- include/configs/malta.h |4 ++-- 2 files changed, 3

Re: [U-Boot] [PATCH] MIPS: use CONFIG_SYS_TEXT_BASE in relocation calculations

2013-11-12 Thread Gabor Juhos
2013.11.12. 16:40 keltezéssel, Daniel Schwierzeck írta: > 2013/11/12 Gabor Juhos : >> 2013.11.11. 23:36 keltezéssel, Daniel Schwierzeck írta: >> > ... >>>> >>>> Any idea how can we resolve this properly? >>>> >>>> -Gabor >&g

Re: [U-Boot] [PATCH] MIPS: use CONFIG_SYS_TEXT_BASE in relocation calculations

2013-11-12 Thread Gabor Juhos
2013.11.11. 23:36 keltezéssel, Daniel Schwierzeck írta: <...> >>> to be consistent with all other architectures, we should keep >>> CONFIG_SYS_MONITOR_BASE. I think it is neither valid nor intentional >>> to use a value different from CONFIG_SYS_TEXT_BASE. >> >> If it is neither valid nor intenti

Re: [U-Boot] [PATCH] MIPS: use CONFIG_SYS_TEXT_BASE in relocation calculations

2013-11-11 Thread Gabor Juhos
2013.11.11. 20:36 keltezéssel, Daniel Schwierzeck írta: > 2013/11/11 Gabor Juhos : >> The relocation code uses the CONFIG_SYS_MONITOR_BASE >> constant for calculating the reserved memory size and >> relocation offset values. Along with these predefined >> values the c

[U-Boot] [PATCH] MIPS: use CONFIG_SYS_TEXT_BASE in relocation calculations

2013-11-11 Thread Gabor Juhos
27; targets. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck Cc: Paul Burton --- Daniel, This should be merged before my 'malta: use unmapped flash base address' patch. Thanks, Gabor --- arch/mips/cpu/mips32/start.S |2 +- arch/mips/cpu/mips64/start.S |2 +- arch/mips/cpu/

Re: [U-Boot] [PATCH] malta: use unmapped flash base address

2013-11-11 Thread Gabor Juhos
2013.11.11. 15:22 keltezéssel, Paul Burton írta: <...> >> diff --git a/arch/mips/include/asm/malta.h b/arch/mips/include/asm/malta.h >> index 9b1100b..bd9043d 100644 >> --- a/arch/mips/include/asm/malta.h >> +++ b/arch/mips/include/asm/malta.h >> @@ -44,7 +44,7 @@ >> #define MALTA_RESET_BASE

[U-Boot] [PATCH] malta: use unmapped flash base address

2013-11-11 Thread Gabor Juhos
constant to avoid the problem. The change makes it possible to start U-Boot on a Malta board emulated with Qemu 1.6.1 and 1.7.0-rc0. It also works on older versions (tested with 1.1.1, 1.2.2, 1.4.2, 1.5.3). The change is not tested on a real Malta board. Signed-off-by: Gabor Juhos Cc: Daniel

Re: [U-Boot] [mips] malta configuration works in qemu-1.5 does not in qemu-1.6

2013-11-11 Thread Gabor Juhos
2013.11.11. 12:14 keltezéssel, Paul Burton írta: <...> > Aha, thanks for tracking that down. I guess if flash commands need to work at > 0x1fc0 I assume that it is working on a real Malta board, so it should be emulated correctly if possible. > then my QEMU patch fixed one bug but causes a

Re: [U-Boot] [mips] malta configuration works in qemu-1.5 does not in qemu-1.6

2013-11-11 Thread Gabor Juhos
2013.11.11. 10:52 keltezéssel, Daniel Schwierzeck írta: > 2013/11/10 Alon Bar-Lev : >> Hello, >> >> master is: 15c5cdf from Fri Nov 8 15:25:29 2013 -0500 >> u-boot-2013.10 >> >> Working in qemu-1.5.3. >> Does not work in qemu-1.6.1. >> >> The command prompt is not displayed, 100% cpu consumption. >

[U-Boot] [PATCH] malta: define CONFIG_MEMSIZE_IN_BYTES

2013-10-24 Thread Gabor Juhos
The memsize environment variable must contain the memory size in bytes on the Malta board. Otherwise Linux will use wrong memory size which causes a kernel panic. Define CONFIG_MEMSIZE_IN_BYTES in malta.h to avoid that. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck Cc: Paul Burton

Re: [U-Boot] [PATCH v2 09/15] malta: support for coreFPGA6 boards

2013-10-24 Thread Gabor Juhos
2013.10.24. 11:33 keltezéssel, Paul Burton írta: > This patch adds support for running on Malta boards using coreFPGA6 > core cards, including support for the msc01 system controller used > with them. The system controller is detected at runtime allowing one > U-boot binary to run on a Malta with e

Re: [U-Boot] [PATCH v2 07/15] qemu-malta: rename to just "malta"

2013-10-24 Thread Gabor Juhos
2013.10.24. 12:54 keltezéssel, Paul Burton írta: <...> >> I agree that it is related to the rename. However renaming the >> mips_boot_qemu_malta constant is a simple cleanup which can be done in a >> preceding patch. The same is true for the CONFIG_QEMU_MALTA->CONFIG_MALTA >> conversion. >> >> In

Re: [U-Boot] [PATCH v2 07/15] qemu-malta: rename to just "malta"

2013-10-24 Thread Gabor Juhos
2013.10.24. 12:10 keltezéssel, Paul Burton írta: > On 24/10/13 11:04, Gabor Juhos wrote: >> 2013.10.24. 11:31 keltezéssel, Paul Burton írta: >>> This is in preparation for adapting this board to function correctly on >>> a physical MIPS Malta board. The board is mo

Re: [U-Boot] [PATCH v2 07/15] qemu-malta: rename to just "malta"

2013-10-24 Thread Gabor Juhos
2013.10.24. 11:31 keltezéssel, Paul Burton írta: > This is in preparation for adapting this board to function correctly on > a physical MIPS Malta board. The board is moved into an "imgtec" vendor > directory at the same time in order to ready us for any other boards > supported by Imagination in t

Re: [U-Boot] [PATCH v3 1/8] MIPS: bootm: fix checkpatch.pl warnings

2013-08-14 Thread Gabor Juhos
2013.08.11. 21:39 keltezéssel, Daniel Schwierzeck írta: > Signed-off-by: Daniel Schwierzeck Looks good, but the subject line is misleading a bit. I would expect that the patch fixes all warnings, however there are some CamelCase warnings even after the patch. -Gabor _

[U-Boot] [PATCH v2 07/10] MIPS: xburst/start.S: rework relocation info check

2013-06-14 Thread Gabor Juhos
Make it similar to the code in mips{32,64}/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- v2: also change register name in the comment --- arch/mips/cpu/xburst/start.S |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff

[U-Boot] [PATCH 06/10] MIPS: xburst/start.S: use t8 register for dynamic relocation

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips{32,64}/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/xburst/start.S | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/mips/cpu/xburst/start.S b/arch

[U-Boot] [PATCH 09/10] MIPS: mips32/cache.S: store cache line size in t8 register

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips64/cache.S, in order to allow further unifications. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/mips32/cache.S |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/cpu/mips32/cache.S b/arch/mips/cpu/mips32

[U-Boot] [PATCH 07/10] MIPS: xburst/start.S: rework relocation info check

2013-06-13 Thread Gabor Juhos
Make it similar to the code in mips{32,64}/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/xburst/start.S |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/cpu/xburst/start.S b/arch/mips

[U-Boot] [PATCH 05/10] MIPS: xburst/start.S: save gd in s0 register

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips{32,64}/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/xburst/start.S |3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/mips/cpu/xburst/start.S b/arch/mips/cpu/xburst

[U-Boot] [PATCH 04/10] MIPS: xburst/start.S: save relocation offset in s1 register

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips{32,64}/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/xburst/start.S | 12 ++-- 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/arch/mips/cpu/xburst/start.S b/arch/mips

[U-Boot] [PATCH 08/10] MIPS: mips32/cache.S: save return address in t9 register

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips64/cache.S, in order to allow further unifications. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/mips32/cache.S |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/mips/cpu/mips32/cache.S b/arch/mips/cpu/mips32

[U-Boot] [PATCH 01/10] MIPS: mips32/start.S: use t8 register for dynamic relocation

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips64/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/mips32/start.S | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/arch/mips/cpu/mips32/start.S b/arch/mips

[U-Boot] [PATCH 03/10] MIPS: xburst/start.S: save relocation address in s2 register

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips{32,64}/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/xburst/start.S |8 +--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/mips/cpu/xburst/start.S b/arch/mips/cpu

[U-Boot] [PATCH 10/10] MIPS: mips32/cache.S: use v1 register for indirect function calls

2013-06-13 Thread Gabor Juhos
Synchronize the code with mips64/cache.S, in order to allow further unifications. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/mips32/cache.S |8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/mips/cpu/mips32/cache.S b/arch/mips/cpu

[U-Boot] [PATCH 00/10] MIPS: unify low-level assembly code

2013-06-13 Thread Gabor Juhos
Gabor Juhos (10): MIPS: mips32/start.S: use t8 register for dynamic relocation MIPS: mips32/start.S: rework relocation info check MIPS: xburst/start.S: save relocation address in s2 register MIPS: xburst/start.S: save relocation offset in s1 register MIPS: xburst/start.S: save gd in s0

[U-Boot] [PATCH 02/10] MIPS: mips32/start.S: rework relocation info check

2013-06-13 Thread Gabor Juhos
Make it similar to the code in mips64/start.S, in order to allow further unifications. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/mips32/start.S |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/cpu/mips32/start.S b/arch/mips/cpu

[U-Boot] [PATCH 3/4] MIPS: remove obsolete TODO items

2013-06-12 Thread Gabor Juhos
The MIPS code uses centralized u-boot.lds script already, and dynamic relocation is supported as well. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- doc/README.mips |4 1 file changed, 4 deletions(-) diff --git a/doc/README.mips b/doc/README.mips index f4f770b..b28f628

[U-Boot] [PATCH 1/4] MIPS: mips32/time.c: fix checkpatch errors/warnings

2013-06-12 Thread Gabor Juhos
checkpatch.pl happy. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/mips32/time.c |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/mips/cpu/mips32/time.c b/arch/mips/cpu/mips32/time.c index 09fc842..e9ed7fc 100644 --- a/arch/mips/cpu/mips32

[U-Boot] [PATCH 4/4] MIPS: mips32/cache.S: remove superfluous register assignment

2013-06-12 Thread Gabor Juhos
The t4 register already holds the cache line size, and the value of the register is not changed in mips_init_icache. Get the cache line size value from t4 for mips_init_dcache as well and remove the superfluous assignment of t5 register. Signed-off-by: Gabor Juhos --- arch/mips/cpu/mips32

[U-Boot] [PATCH 0/4] MIPS: minor cleanups

2013-06-12 Thread Gabor Juhos
Gabor Juhos (4): MIPS: mips32/time.c: fix checkpatch errors/warnings MIPS: mips64/interrupt.c: remove superfluous include MIPS: remove obsolete TODO items MIPS: mips32/cache.S: remove superfluous register assignment arch/mips/cpu/mips32/cache.S |3 +-- arch/mips/cpu/mips32

[U-Boot] [PATCH 2/4] MIPS: mips64/interrupt.c: remove superfluous include

2013-06-12 Thread Gabor Juhos
Nothing is used from asm/mipsregs.h. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/mips64/interrupts.c |1 - 1 file changed, 1 deletion(-) diff --git a/arch/mips/cpu/mips64/interrupts.c b/arch/mips/cpu/mips64/interrupts.c index e4e9aae..87f7a9f 100644 --- a/arch

[U-Boot] [PATCH] MIPS: mips64: fix typos in copyright text of start.S

2013-06-11 Thread Gabor Juhos
Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/mips64/start.S |6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/mips/cpu/mips64/start.S b/arch/mips/cpu/mips64/start.S index dc7ce07..1ece6c2 100644 --- a/arch/mips/cpu/mips64/start.S +++ b/arch

Re: [U-Boot] [PATCH 0/11] MIPS: bootm updates

2013-06-10 Thread Gabor Juhos
ise kernel cmdline variable 'mem' > MIPS: bootm: automatically initialise kernel cmdline variables > 'rd_start' and 'rd_size' > MIPS: bootm: add YAMON style Linux preparation/jump code for Qemu > Malta > MIPS: boo

Re: [U-Boot] [PATCH] pci: introduce CONFIG_PCI_INDIRECT_BRIDGE option

2013-05-30 Thread Gabor Juhos
2013.05.30. 18:36 keltezéssel, Daniel Schwierzeck írta: > 2013/5/29 Gabor Juhos : >> The pci_indirect.c file is always compiled when >> CONFIG_PCI is defined although the indirect PCI >> bridge support is not needed by every board. >> >> Introduce a new CONFIG_PCI

[U-Boot] [PATCH 0/6] nds32: fix build errors/warnings

2013-05-26 Thread Gabor Juhos
57ce9 ./u-boot Configuring for adp-ag101p board... textdata bss dec hex filename 1438976104 211752 361753 58519 ./u-boot Configuring for adp-ag102 board... textdata bss dec hex filename 1773696712 291592 475673 74219 ./u-boot - SUMM

[U-Boot] [PATCH 1/6] nds32: introduce macros for bit manipulation

2013-05-26 Thread Gabor Juhos
hitecture to avoid the errors. The macros are copied from the ARM implementation. Compile tested only. Cc: Kuo-Jung Su Cc: Macpaul Lin Signed-off-by: Gabor Juhos --- Notes: I'm unsure that the macros are correct or not because I know virtually nothing about the nds32 architecture.

[U-Boot] [PATCH 6/6] nds32: adp-ag102: use 'faraday/ftpci100.h' for pci_ftpci_init

2013-05-26 Thread Gabor Juhos
es the proper declaration and remove the local declaration to get rid of the warning. Compile tested only. Cc: Macpaul Lin Signed-off-by: Gabor Juhos --- board/AndesTech/adp-ag102/adp-ag102.c |3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/board/AndesTech/adp-ag102/adp-a

[U-Boot] [PATCH 3/6] block: constify sect_buf argument of ide_write_data

2013-05-26 Thread Gabor Juhos
clude/ide.h:76: note: expected 'ulong *' but argument is of type 'const ulong *' Also modify the driver-model documentation to match with the new prototype. Compile tested only. Cc: Macpaul Lin Signed-off-by: Gabor Juhos --- doc/driver-model/UDM-block.txt |2 +- drivers/b

[U-Boot] [PATCH 4/6] pci: add prototype for pci_ftpci_init() function

2013-05-26 Thread Gabor Juhos
The pci_ftpci_init() function is implemented in 'drivers/pci/pci_ftpci100.c' however it is always called by external code. Add function declaration into ftpci100.h to make it visible for external code. Compile tested only. Cc: Macpaul Lin Signed-off-by: Gabor Juhos --- d

[U-Boot] [PATCH 5/6] pci: move pci_ftpci100.h to include/faraday/ftpci100.h

2013-05-26 Thread Gabor Juhos
Even though the header files is used only by the pci_ftpci100 driver, it contains declaration for a function which is used by external code. Move the header file to a common location which lets external code use it. Compile tested only. Cc: Macpaul Lin Signed-off-by: Gabor Juhos --- drivers

[U-Boot] [PATCH 2/6] mmc: ftsdc010_mci: fix build error if CONFIG_FTSDC010_SDIO is not defined

2013-05-26 Thread Gabor Juhos
nce ftsdc010_mci.c:178: error: for each function it appears in.) The patch ensures that the FTSDC010_DCR_FIFO_RST symbol gets used only if CONFIG_FTSDC010_SDIO is defined. Compile tested only. Cc: Kuo-Jung Su Cc: Macpaul Lin Signed-off-by: Gabor Juhos --- drivers/mmc/ftsdc010_mci.c |6 ++

Re: [U-Boot] [PATCH v3 06/10] MIPS: qemu-malta: add PCI support

2013-05-24 Thread Gabor Juhos
2013.05.23. 17:49 keltezéssel, Tom Rini írta: <...> >>> The pci_indirect.c file is always compiled when CONFIG_PCI is defined >>> although it is not needed at all for Malta PCI support. >>> >>> The issue can be resolved on a few different ways: >>> >>> 1. Extend the '#if !defined(__I386__)' dir

Re: [U-Boot] [PATCH v3 06/10] MIPS: qemu-malta: add PCI support

2013-05-23 Thread Gabor Juhos
Hi Daniel, Thank you for the review! > 2013/5/22 Gabor Juhos : >> Qemu emulates the Galileo GT64120 System Controller >> which provides a CPU bus to PCI bus bridge. >> >> The patch adds driver for this bridge and enables >> PCI support for the emulated Malta

[U-Boot] [PATCH v3 00/10] MIPS: initial support for emulated Malta board

2013-05-22 Thread Gabor Juhos
: 'MIPS: fix __raw_* IO accessors' http://patchwork.ozlabs.org/patch/222195/ Gabor Juhos (10): MIPS: qemu-malta: add support for emulated MIPS Malta board MIPS: qemu-malta: add reset support MIPS: qemu-malta: enable flash support MIPS: import gt64120.h header from Linux MIPS:

[U-Boot] [PATCH v3 06/10] MIPS: qemu-malta: add PCI support

2013-05-22 Thread Gabor Juhos
Qemu emulates the Galileo GT64120 System Controller which provides a CPU bus to PCI bus bridge. The patch adds driver for this bridge and enables PCI support for the emulated Malta board. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v2: - move the PCI driver to drivers

[U-Boot] [PATCH v3 05/10] MIPS: qemu-malta: setup GT64120 registers as done by YAMON

2013-05-22 Thread Gabor Juhos
Move the GT64120 register base to 0x1be0 and setup PCI BAR registers as done by the original YAMON bootloader. This is needed for running Linux kernel. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v2: - rebased against the master branch of git.denx.de/u-boot.git

[U-Boot] [PATCH v3 10/10] MIPS: start.S: emulate REVISION register for qemu-malta

2013-05-22 Thread Gabor Juhos
is not emulated properly by Qemu, so put a hardcoded value into the flash to make Linux work. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v2: - rebased against the master branch of git.denx.de/u-boot.git Changes since v1: - rebased against mips/testing Changes since

[U-Boot] [PATCH v3 04/10] MIPS: import gt64120.h header from Linux

2013-05-22 Thread Gabor Juhos
The Linux specific register access macros, the extern function declarations and the UL suffixes has been removed. The header file will be used for the qemu-malta board. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v2: - use the header file from Linux 3.10-rc2 instead of

[U-Boot] [PATCH v3 01/10] MIPS: qemu-malta: add support for emulated MIPS Malta board

2013-05-22 Thread Gabor Juhos
Add minimal support for the MIPS Malta CoreLV board emulated by Qemu. The only supported peripherial is the UART. This is enough to boot U-Boot to the command prompt both in little and big endian mode. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v2: - rebased against

[U-Boot] [PATCH v3 08/10] MIPS: qemu-malta: bring up ethernet

2013-05-22 Thread Gabor Juhos
Qemu emulates a PCNET PCI card for the Malta CoreLV board. Enable the pcnet driver and add board specific ethernet initialization function to bring it up. Also enable the CONFIG_CMD_NET and CONFIG_CMD_PING options. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v2

[U-Boot] [PATCH v3 03/10] MIPS: qemu-malta: enable flash support

2013-05-22 Thread Gabor Juhos
Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v2: - remove CONFIG_SYS_WRITE_SWAPPED_DATA option, it is not needed since the __raw_* IO accessors has been fixed. - rebased against the master branch of git.denx.de/u-boot.git Changes since v1: - rebased against mips

[U-Boot] [PATCH v3 07/10] net: pcnet: use pci_virt_to_mem to obtain buffer addresses

2013-05-22 Thread Gabor Juhos
can't be used to obtain the memory address of the buffers. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v2: - rebased against the master branch of git.denx.de/u-boot.git Changes since v1: - rebased against mips/testing Changes since RFC: --- --- Note: This is

[U-Boot] [PATCH v3 02/10] MIPS: qemu-malta: add reset support

2013-05-22 Thread Gabor Juhos
The MIPS Malta board has a SOFTRES register. Writing a magic value into that register initiates a board reset. Use this feature to implement reset support. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v2: - don't use le32_to_cpu accessor, it is not needed because

[U-Boot] [PATCH v3 09/10] MIPS: bootm.c: add YAMON style Linux preparation/jump code

2013-05-22 Thread Gabor Juhos
Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v2: - rebased against the master branch of git.denx.de/u-boot.git Changes since v1: - rebased against mips/testing Changes since RFC: --- --- arch/mips/lib/bootm.c | 60 +++-- 1

[U-Boot] [PATCH] MIPS: fix __raw_* IO accessors

2013-02-21 Thread Gabor Juhos
IO accessor macros to fix this broken behaviour. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Note: The change does not affect the existing MIPS targets because none of those are using CONFIG_SWAP_IO_SPACE. Compiling all MIPS targets results in the same binary image with and without the

Re: [U-Boot] [PATCH v2 6/7] MIPS: u-boot.lds: add relocation specific sections

2013-02-11 Thread Gabor Juhos
2013.02.11. 15:32 keltezéssel, Daniel Schwierzeck írta: > From: Gabor Juhos > > This section contain the table needed for dynamic > relocation. Also provide symbols for the relocation > code to access the table. > > Discard all sections which are not needed in the final &g

Re: [U-Boot] [PATCH v1 6/7] MIPS: u-boot.lds: add relocation specific sections

2013-02-11 Thread Gabor Juhos
7d91477643497f8b51cc0c Mon Sep 17 00:00:00 2001 From: Gabor Juhos Date: Mon, 11 Feb 2013 15:06:17 +0100 Subject: [PATCH] MIPS: u-boot.lds: add back the .deadcode section --- arch/mips/cpu/u-boot.lds | 18 ++ 1 file changed, 18 insertions(+) diff --git a/arch/mips/cpu/u-boot.l

Re: [U-Boot] [PATCH v1 6/7] MIPS: u-boot.lds: add relocation specific sections

2013-02-11 Thread Gabor Juhos
2013.02.09. 21:33 keltezéssel, daniel.schwierz...@gmail.com írta: > From: Gabor Juhos > > This section contain the table needed for dynamic > relocation. Also provide symbols for the relocation > code to access the table. > > Discard all sections which are not needed in t

[U-Boot] [RFC 0/3] MIPS: add automatic relocation support

2013-02-03 Thread Gabor Juhos
/217651/ (MIPS: compute num_got_entries from .got section's size) Gabor Juhos (3): MIPS: add .dyn.rel section to u-boot.lds MIPS: add -pie flag to LDFLAGS_FINAL MIPS: add dynamic relocation support arch/mips/config.mk|2 +- arch/mips/cpu/mips32/start.S |

[U-Boot] [RFC 3/3] MIPS: add dynamic relocation support

2013-02-03 Thread Gabor Juhos
toolchains uses these types only. The CONFIG_NEEDS_MANUAL_RELOC is not needed after the patch, so remove that as well. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/mips32/start.S | 31 +-- arch/mips/cpu/mips64/start.S | 39

[U-Boot] [RFC 2/3] MIPS: add -pie flag to LDFLAGS_FINAL

2013-02-03 Thread Gabor Juhos
This ensures that the linker generates the .rel.dyn fixup table, which will be applied to the relocated image before transferring control to it. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/config.mk |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch

[U-Boot] [RFC 1/3] MIPS: add .dyn.rel section to u-boot.lds

2013-02-03 Thread Gabor Juhos
This section contain the table needed for dynamic relocation. Also provide symbols for the relocation code to access the table. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- arch/mips/cpu/u-boot.lds | 27 ++- 1 file changed, 26 insertions(+), 1 deletion

Re: [U-Boot] [PATCH v2 06/10] MIPS: qemu-malta: add PCI support

2013-02-03 Thread Gabor Juhos
2013.02.02. 20:37 keltezéssel, Daniel Schwierzeck írta: > I think this should be implemented as separate driver in drivers/pci/ Ok, i will move it. -Gabor ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 05/10] MIPS: qemu-malta: setup GT64120 registers as done by YAMON

2013-02-03 Thread Gabor Juhos
2013.02.02. 20:39 keltezéssel, Daniel Schwierzeck írta: > 2013/2/2 Gabor Juhos : >> Move the GT64120 register base to 0x1be0 >> and setup PCI BAR registers as done by the >> original YAMON bootloader. >> >> This is needed for running Linux kernel. >&g

Re: [U-Boot] [PATCH v2 02/10] MIPS: qemu-malta: add reset support

2013-02-03 Thread Gabor Juhos
2013.02.02. 20:35 keltezéssel, Daniel Schwierzeck írta: >> diff --git a/board/qemu-malta/qemu-malta.c b/board/qemu-malta/qemu-malta.c >> index 9ba711d..9333242 100644 >> --- a/board/qemu-malta/qemu-malta.c >> +++ b/board/qemu-malta/qemu-malta.c >> @@ -8,6 +8,9 @@ >> >> #include >> >> +#include

Re: [U-Boot] [PATCH v2 01/10] MIPS: qemu-malta: add support for emulated MIPS Malta board

2013-02-02 Thread Gabor Juhos
Hi Daniel, ... >> diff --git a/board/qemu-malta/lowlevel_init.S >> b/board/qemu-malta/lowlevel_init.S >> new file mode 100644 >> index 000..c5c5bd9 >> --- /dev/null >> +++ b/board/qemu-malta/lowlevel_init.S >> @@ -0,0 +1,19 @@ >> +/* >>

[U-Boot] [PATCH v2 10/10] MIPS: start.S: emulate REVISION register for qemu-malta

2013-02-02 Thread Gabor Juhos
is not emulated properly by Qemu, so put a hardcoded value into the flash to make Linux work. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v1: - rebased against mips/testing Changes since RFC: --- --- arch/mips/cpu/mips32/start.S |8 +++- 1 file changed, 7

[U-Boot] [PATCH v2 09/10] MIPS: bootm.c: add YAMON style Linux preparation/jump code

2013-02-02 Thread Gabor Juhos
Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v1: - rebased against mips/testing Changes since RFC: --- --- arch/mips/lib/bootm.c | 60 +++-- 1 file changed, 58 insertions(+), 2 deletions(-) diff --git a/arch/mips/lib

[U-Boot] [PATCH v2 08/10] MIPS: qemu-malta: bring up ethernet

2013-02-02 Thread Gabor Juhos
Qemu emulates a PCNET PCI card for the Malta CoreLV board. Enable the pcnet driver and add board specific ethernet initialization function to bring it up. Also enable the CONFIG_CMD_NET and CONFIG_CMD_PING options. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v1

[U-Boot] [PATCH v2 07/10] net: pcnet: use pci_virt_to_mem to obtain buffer addresses

2013-02-02 Thread Gabor Juhos
can't be used to obtain the memory address of the buffers. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v1: - rebased against mips/testing Changes since RFC: --- --- Note: This is only tested with the qemu-malta target. The change might break real platforms, howe

[U-Boot] [PATCH v2 05/10] MIPS: qemu-malta: setup GT64120 registers as done by YAMON

2013-02-02 Thread Gabor Juhos
Move the GT64120 register base to 0x1be0 and setup PCI BAR registers as done by the original YAMON bootloader. This is needed for running Linux kernel. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v1: - rebased against mips/testing Changes since RFC: --- --- arch

[U-Boot] [PATCH v2 01/10] MIPS: qemu-malta: add support for emulated MIPS Malta board

2013-02-02 Thread Gabor Juhos
Add minimal support for the MIPS Malta CoreLV board emulated by Qemu. The only supported peripherial is the UART. This is enough to boot U-Boot to the command prompt both in little and big endian mode. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v1: - remove custom u

[U-Boot] [PATCH v2 06/10] MIPS: qemu-malta: add PCI support

2013-02-02 Thread Gabor Juhos
Qemu emulates the Galileo GT64120 System Controller which provides a CPU bus to PCI bus bridge. The patch adds driver for this bridge and enables PCI support for the emulated Malta board. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v1: - rebased against mips/testing

[U-Boot] [PATCH v2 04/10] MIPS: import gt64120.h header from Linux 3.8-rc3

2013-02-02 Thread Gabor Juhos
The Linux specific register access macros, the extern function declarations and the UL suffixes has been removed. The header file will be used for the qemu-malta board. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v1: - rebased against mips/testing Changes since RFC

[U-Boot] [PATCH v2 03/10] MIPS: qemu-malta: enable flash support

2013-02-02 Thread Gabor Juhos
Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v1: - rebased against mips/testing Changes since RFC: --- --- arch/mips/include/asm/malta.h |2 ++ include/configs/qemu-malta.h | 13 +++-- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/arch

[U-Boot] [PATCH v2 02/10] MIPS: qemu-malta: add reset support

2013-02-02 Thread Gabor Juhos
The MIPS Malta board has a SOFTRES register. Writing a magic value into that register initiates a board reset. Use this feature to implement reset support. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v1: - rebased against mips/testing Changes since RFC: --- --- arch

[U-Boot] [PATCH v2 00/10] MIPS: initial support for emulated Malta board

2013-02-02 Thread Gabor Juhos
This patch set adds initial support for the MIPS Malta CoreLV board emulated under Qemu. The patches are against the testing branch of the MIPS custodian tree. The changes since the previous version of the series are described in the individual patches. Gabor Juhos (10): MIPS: qemu-malta: add

[U-Boot] [PATCH] MIPS: compute num_got_entries from .got section's size

2013-02-02 Thread Gabor Juhos
The '__got_start' and '__got_end' symbols are used only in the linker script to compute the value of the 'num_got_entries' symbol. Remove the symbols and use the SIZEOF(.got) command to get the size of the .got section. Signed-off-by: Gabor Juhos Cc: Daniel Sch

Re: [U-Boot] [PATCH v2] MIPS: start.S: unify and simplify reset vector handling

2013-02-01 Thread Gabor Juhos
2013.02.01. 23:48 keltezéssel, Daniel Schwierzeck írta: >>> + /* U-boot entry point */ >>> + b reset >>> + nop >>> + >>> + .org 0x10 >>> #ifdef CONFIG_SYS_XWAY_EBU_BOOTCFG >> >> The .org should be within the ifdef. Although it does not change the >> generated >> binary cod

Re: [U-Boot] [PATCH v2] MIPS: start.S: unify and simplify reset vector handling

2013-02-01 Thread Gabor Juhos
Hi Daniel, > From: Daniel Schwierzeck > > Adopt reset vector handling from Yamon. > > Signed-off-by: Daniel Schwierzeck Looks good, I have only one minor comment below. > --- > Changes for v2: > - optimized U-Boot entry point on MIPS32 > - fix indentation of .org > > --- > arch/mips/cpu/mi

Re: [U-Boot] [PATCH] MIPS: start.S: unify and simplify reset vector handling

2013-01-31 Thread Gabor Juhos
Hi Daniel, > From: Daniel Schwierzeck > > Adopt reset vector handling from Yamon. > > Signed-off-by: Daniel Schwierzeck > --- > arch/mips/cpu/mips32/start.S | 185 > +-- > arch/mips/cpu/mips64/start.S | 55 +++-- > 2 files changed, 64 insertio

Re: [U-Boot] [PATCH] MIPS: start.S: remove obsolete 64 bit handling in setup_c0_status

2013-01-31 Thread Gabor Juhos
Hi Daniel, > From: Daniel Schwierzeck > > Signed-off-by: Daniel Schwierzeck Looks good. -Gabor ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot

Re: [U-Boot] [PATCH v2 1/7] MIPS: add unified u-boot.lds file

2013-01-30 Thread Gabor Juhos
2013.01.30. 15:34 keltezéssel, Stefan Roese írta: > On 01/30/2013 03:31 PM, Gabor Juhos wrote: >> The patch adds an unified linker script file which >> can be used for all currently supported MIPS targets. >> >> Signed-off-by: Gabor Juhos >> Cc: Daniel Schwie

[U-Boot] [PATCH v2] MIPS: simplify relocated _G_O_T_ address calculation

2013-01-30 Thread Gabor Juhos
alculating the offset again from the _gp value. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck Cc: Xiangfu Liu --- Changes since v1: modify Xburst code as well This depends on the: 'MIPS: xburst: simplify relocation offset calculation' patch http://patchwork.ozlabs.org/patch/216

[U-Boot] [PATCH] MIPS: xburst: simplify relocation offset calculation

2013-01-30 Thread Gabor Juhos
adjust the gp pointer. This approach makes the code a bit simpler because it needs two instructions only. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck Cc: Xiangfu Liu --- arch/mips/cpu/xburst/start.S | 12 +++- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/arch/mips

[U-Boot] [PATCH v2 7/7] MIPS: qi_lb60: remove custom u-boot.lds script

2013-01-30 Thread Gabor Juhos
got_end = .; unified script: .got : { __got_start = .; *(.got) __got_end = .; } Despite this difference, the resulting images are functionally identical. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck Cc: Xiangfu Liu --- Chang

[U-Boot] [PATCH v2 6/7] MIPS: dbau1x00: remove custom u-boot.lds script

2013-01-30 Thread Gabor Juhos
Remove the board specific linker script. It is not needed anymore, the unified MIPS linker script can be used instead. All dbau1x00 targets are producing identical binary images after the change than before. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v1: --- --- board

[U-Boot] [PATCH v2 1/7] MIPS: add unified u-boot.lds file

2013-01-30 Thread Gabor Juhos
The patch adds an unified linker script file which can be used for all currently supported MIPS targets. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck Cc: Stefan Roese Cc: Wolfgang Denk Cc: Xiangfu Liu --- Changes since v1: - use consistent coding style for all sections - remove the

[U-Boot] [PATCH v2 2/7] MIPS: qemu-mips: use the unified u-boot.lds script

2013-01-30 Thread Gabor Juhos
Remove the board specific linker script. It is not needed anymore, the unified MIPS linker script can be used instead. All qemu_mips targets are producing identical binary images after the change than before. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v1

[U-Boot] [PATCH v2 3/7] MIPS: pb1x00: remove custom u-boot.lds script

2013-01-30 Thread Gabor Juhos
Remove the board specific linker script. It is not needed anymore, the unified MIPS linker script can be used instead. All pb1x00 targets are producing identical binary images after the change than before. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck --- Changes since v1: --- --- board

[U-Boot] [PATCH v2 4/7] MIPS: vct: remove custom u-boot.lds script

2013-01-30 Thread Gabor Juhos
Remove the board specific linker script. It is not needed anymore, the unified MIPS linker script can be used instead. All vct targets are producing identical binary images after the change than before. Signed-off-by: Gabor Juhos Acked-by: Stefan Roese Cc: Daniel Schwierzeck --- Changes since

[U-Boot] [PATCH v2 5/7] MIPS: incaip: remove custom u-boot.lds script

2013-01-30 Thread Gabor Juhos
Remove the board specific linker script. It is not needed anymore, the unified MIPS linker script can be used instead. All incaip targets are producing identical binary images after the change than before. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck Cc: Wolfgang Denk --- Changes since

[U-Boot] [PATCH v2 0/7] MIPS: use an unified u-boot.lds script

2013-01-30 Thread Gabor Juhos
This patch-set adds an unfied u-boot.lds file for the MIPS architecture, and removes the linker scripts of the individual boards. The series depends on the following patch: MIPS: remove OUTPUT_FORMAT from linker scripts http://patchwork.ozlabs.org/patch/216892/ Gabor Juhos (7): MIPS: add

[U-Boot] [PATCH v2 0/7] MIPS: use an unified u-boot.lds script

2013-01-30 Thread Gabor Juhos
This patch-set adds an unfied u-boot.lds file for the MIPS architecture, and removes the linker scripts of the individual boards. The series depends on the following patch: MIPS: remove OUTPUT_FORMAT from linker scripts http://patchwork.ozlabs.org/patch/216892/ Gabor Juhos (7): MIPS: add

[U-Boot] [PATCH] MIPS: remove OUTPUT_FORMAT from linker scripts

2013-01-30 Thread Gabor Juhos
The OUTPUT_FORMAT command in linker scripts was always misused due to some endianess and toolchain problems. Use GCC flags to ensure proper output format, and get rid of the OUTPUT_FORMAT commands in the board specific u-boot.lds files. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck Cc

Re: [U-Boot] [PATCH 1/7] MIPS: add unified u-boot.lds file

2013-01-29 Thread Gabor Juhos
2013.01.29. 11:44 keltezéssel, Daniel Schwierzeck írta: > 2013/1/29 Gabor Juhos : >> The patch adds an unified linker script file which >> can be used for all currently supported MIPS targets. >> >> Signed-off-by: Gabor Juhos >> Cc: Daniel Schwierzeck >&g

Re: [U-Boot] [PATCH 4/7] MIPS: vct: remove custom u-boot.lds script

2013-01-29 Thread Gabor Juhos
2013.01.29. 10:05 keltezéssel, Stefan Roese írta: > On 01/29/2013 09:31 AM, Gabor Juhos wrote: >> Remove the board specific linker script. It is not >> needed anymore, the unified MIPS linker script can >> be used instead. >> >> All vct targets are producing ide

[U-Boot] [PATCH 5/7] MIPS: incaip: remove custom u-boot.lds script

2013-01-29 Thread Gabor Juhos
Remove the board specific linker script. It is not needed anymore, the unified MIPS linker script can be used instead. All incaip targets are producing identical binary images after the change than before. Signed-off-by: Gabor Juhos Cc: Daniel Schwierzeck Cc: Wolfgang Denk --- board/incaip/u

  1   2   >