[PATCH] xtensa: xtfpga: enable DM_SERIAL

2025-05-12 Thread Max Filippov
Enable DM_SERIAL for the xtensa architecture and update xtfpga_defconfig Signed-off-by: Max Filippov --- arch/Kconfig | 1 + configs/xtfpga_defconfig | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/arch/Kconfig b/arch/Kconfig index ea33d07c086b

Re: Convert xtfpga U-Boot platform to DM_SERIAL

2025-05-04 Thread Max Filippov
I was able to build working u-Boot for the kc705 xtfpga variant with the change below. I can submit a proper patch If it looks correct: --8<-- >From f0b6e632da8b72f0437a39dc1769b740fef04cf6 Mon Sep 17 00:00:00 2001 From: Max Filippov Date: Sun, 4 May 2025 18:40:44 -0700 Subject: [PATCH] WIP:

Re: [PATCH v2 00/10] xtensa: Enable qemu-xtensa board

2024-05-24 Thread Max Filippov
a/toolchain/releases/download/2020.07/x86_64-2020.07-xtensa-dc232b-elf.tar.gz > > Signed-off-by: Jiaxun Yang > --- > Changes in v2: > - Fix noMMU memory mappings > - Addressing Max's comments in other patches > - Link to v1: > https://lore.kernel.org/r/20240519-qemu-xte

Re: [PATCH 09/10] board: emulation: New board qemu-xtensa

2024-05-22 Thread Max Filippov
On Tue, May 21, 2024 at 1:20 AM Jiaxun Yang wrote: > 在2024年5月21日五月 上午8:35,Max Filippov写道: > >> +++ b/board/emulation/qemu-xtensa/MAINTAINERS > >> @@ -0,0 +1,7 @@ > >> +QEMU XTENSA 'VIRT' BOARD > >> +M: Jiaxun Yang > >> +S: Ma

Re: [PATCH 04/10] xtensa: Define PLATFORM_ELFFLAGS

2024-05-22 Thread Max Filippov
On Tue, May 21, 2024 at 12:12 AM Max Filippov wrote: > On Mon, May 20, 2024 at 9:00 AM Jiaxun Yang wrote: > > >> diff --git a/arch/xtensa/config.mk b/arch/xtensa/config.mk > > >> index b080e403..3ec936272f25 100644 > > >> --- a/arch/xtensa/confi

Re: [PATCH 09/10] board: emulation: New board qemu-xtensa

2024-05-21 Thread Max Filippov
On Sun, May 19, 2024 at 1:54 PM Jiaxun Yang wrote: > > Introduce the new board, define every bits. > > Signed-off-by: Jiaxun Yang > --- > arch/xtensa/Kconfig | 5 +++ > board/emulation/qemu-xtensa/Kconfig | 41 + > board/emulation/qemu-xtensa/MAIN

Re: [PATCH 04/10] xtensa: Define PLATFORM_ELFFLAGS

2024-05-21 Thread Max Filippov
On Mon, May 20, 2024 at 9:00 AM Jiaxun Yang wrote: > >> diff --git a/arch/xtensa/config.mk b/arch/xtensa/config.mk > >> index b080e403..3ec936272f25 100644 > >> --- a/arch/xtensa/config.mk > >> +++ b/arch/xtensa/config.mk > >> @@ -7,3 +7,6 @@ PLATFORM_CPPFLAGS += -D__XTENSA__ -mlongcalls > >>

Re: [PATCH 06/10] drivers: serial: Add xtensa semihosting driver

2024-05-20 Thread Max Filippov
On Sun, May 19, 2024 at 1:53 PM Jiaxun Yang wrote: > > Add xtensa semihosting driver. > > It can't use regular semihosting driver as Xtensa's has it's own > semihosting ABI. > > Note that semihosting supports puts in serial but I never managed to > get it work, so it's putc only for now. I wonder

Re: [PATCH 05/10] xtensa: Bring in semihosting headers and config options

2024-05-20 Thread Max Filippov
gt; arch/xtensa/include/asm/platform/simcall-iss.h | 73 +++ > arch/xtensa/include/asm/platform/simcall.h | 110 > +++ > 4 files changed, 244 insertions(+) Reviewed-by: Max Filippov -- Thanks. -- Max

Re: [PATCH 04/10] xtensa: Define PLATFORM_ELFFLAGS

2024-05-20 Thread Max Filippov
On Sun, May 19, 2024 at 1:53 PM Jiaxun Yang wrote: > > u-boot.elf target requiures it to work. Typo. > Signed-off-by: Jiaxun Yang > --- > arch/xtensa/config.mk | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/xtensa/config.mk b/arch/xtensa/config.mk > index b080e403..3ec936

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-17 Thread Max Filippov
On Fri, Sep 17, 2021 at 5:04 AM Tom Rini wrote: > So this is in context with: > https://patchwork.ozlabs.org/project/uboot/list/?series=256258 > and specifically: > https://patchwork.ozlabs.org/project/uboot/patch/20210802131838.21097-7-p...@kernel.org/ Yes, I've found that series and the purpose

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Max Filippov
On Thu, Sep 16, 2021 at 12:42 PM Tom Rini wrote: > We also don't have qemu support for it I'm curious what happened to it and what I should do to update it? xtensa is still supported in the QEMU and AFAIK nothing has changed about it: neither building nor invocation. -- Thanks. -- Max

Re: [PATCH] xtensa: Put U-Boot version string at correct place by linker script

2021-09-16 Thread Max Filippov
On Thu, Sep 16, 2021 at 10:30 AM Tom Rini wrote: > > Update the linker script macros to know that we need to include the > .text_version_string section now as well. > > Signed-off-by: Tom Rini > --- > arch/xtensa/include/asm/ldscript.h | 1 + > 1 file changed, 1 insertion(+) > > diff --git a/arc

Re: [U-Boot] [PATCH 3/3] Kconfig: move CONFIG_STANDALONE_LOAD_ADDR to Kconfig

2018-09-26 Thread Max Filippov
Hi Daniel, On Mon, Sep 24, 2018 at 12:40 PM, Daniel Schwierzeck wrote: > I see you set the SYS_CPU string manually. I think this is error-prone > and not user-friendly. I suggest to convert this to Kconfig symbols like > this: > > config SYS_CPU > default "dc232b" if CPU_DC232B >

Re: [U-Boot] [PATCH 3/3] Kconfig: move CONFIG_STANDALONE_LOAD_ADDR to Kconfig

2018-09-24 Thread Max Filippov
On Sun, Sep 23, 2018 at 1:02 PM, Daniel Schwierzeck wrote: > Create a new Kconfig menu called 'Standalone programs' with > 'Program load address' as menu entry. It's possible now to build without > the standalone example. Anyway the default value for CONFIG_STANDALONE > is 'y' to maintain the curr

Re: [U-Boot] Fwd: Parallel build is broken

2018-09-11 Thread Max Filippov
On Mon, Sep 10, 2018 at 11:46 AM, Trent Piepho wrote: > On Wed, 2018-09-05 at 06:57 -0500, Adam Ford wrote: >> On Wed, Sep 5, 2018 at 3:46 AM Alex Kiernan wrote: >> > >> > On Tue, Sep 4, 2018 at 3:54 PM Andy Shevchenko >> > wrote: >> > > >> > > On Tue, Sep 4, 2018 at 5:50 PM Andy Shevchenko >> >

Re: [U-Boot] [PATCH 4/4] xtensa: use asm-generic/atomic.h

2018-09-08 Thread Max Filippov
On Sat, Sep 8, 2018 at 2:39 AM, Chris Packham wrote: > Make use of asm-generic/atomic.h. > > Signed-off-by: Chris Packham > --- > > arch/xtensa/include/asm/atomic.h | 44 +--- > 1 file changed, 1 insertion(+), 43 deletions(-) Acked-by: Max

[U-Boot] [PATCH 2/2] xtensa: clean up CONFIG_SYS_TEXT_ADDR

2018-02-12 Thread Max Filippov
Drop CONFIG_SYS_MEMORY_TOP. Rename CONFIG_SYS_TEXT_ADDR to XTENSA_SYS_TEXT_ADDR. Signed-off-by: Max Filippov --- arch/xtensa/cpu/start.S| 2 +- arch/xtensa/cpu/u-boot.lds | 4 ++-- include/configs/xtfpga.h | 5 ++--- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/arch

[U-Boot] [PATCH 1/2] board/cadence/xtfpga: move SYS_MONITOR_LEN to Kconfig

2018-02-12 Thread Max Filippov
Signed-off-by: Max Filippov --- board/cadence/xtfpga/Kconfig | 5 + include/configs/xtfpga.h | 7 --- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/board/cadence/xtfpga/Kconfig b/board/cadence/xtfpga/Kconfig index 69296be49c7a..67ae3860b6d4 100644 --- a/board/cadence

[U-Boot] [PATCH 0/2] xtensa: clean up SYS_MONITOR_LEN/SYS_TEXT_ADDR

2018-02-12 Thread Max Filippov
Hello, this series moves SYS_MONITOR_LEN to Kconfig for board/cadence/xtfpga, removes SYS_MEMORY_TOP and renames CONFIG_SYS_TEXT_ADDR to XTENSA_SYS_TEXT_ADDR. Max Filippov (2): board/cadence/xtfpga: move SYS_MONITOR_LEN to Kconfig xtensa: clean up CONFIG_SYS_TEXT_ADDR arch/xtensa/cpu

Re: [U-Boot] Build system: Don't check for CONFIG_SYS_TEXT_BASE being set

2018-02-12 Thread Max Filippov
On Mon, Feb 12, 2018 at 1:03 PM, Tom Rini wrote: >> On Mon, Feb 12, 2018 at 6:23 AM, Tom Rini wrote: >> > I'm largely ok with the above, but: >> > - For Xtensa (Max?), CONFIG_SYS_TEXT_ADDR needs to be renamed to >> > CONFIG_SYS_TEXT_BASE there >> >> For xtensa that address is defined as an expr

Re: [U-Boot] Build system: Don't check for CONFIG_SYS_TEXT_BASE being set

2018-02-12 Thread Max Filippov
Hello, On Tue, Jan 30, 2018 at 7:23 AM, Alexey Brodkin wrote: > CONFIG_SYS_TEXT_BASE must be set anyways and then it is used in many > places in the same Makefile without any checks Why? xtensa doesn't use any of it. On Mon, Feb 12, 2018 at 6:23 AM, Tom Rini wrote: > I'm largely ok with the ab

[U-Boot] [PATCH v2 1/3] .travis.yml: download xtensa prebuilt toolchain

2018-02-07 Thread Max Filippov
xtensa toolchains are core-specific, so give full toolchain name and download corresponding prebuilt toolchain from the github release. Signed-off-by: Max Filippov --- .travis.yml | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index

[U-Boot] [PATCH v2 3/3] .travis.yml: test xtensa xtfpga board in QEMU

2018-02-07 Thread Max Filippov
This allows running tests on emulated KC705 board with DC233C xtensa core. It expects to find conf.xtfpga_qemu in the uboot-test-hooks. Signed-off-by: Max Filippov --- .travis.yml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8e96a269299f

[U-Boot] [PATCH v2 0/3] .travis.yml changes for building/testing xtensa port

2018-02-07 Thread Max Filippov
no falures in the testsuite. Max Filippov (3): .travis.yml: download xtensa prebuilt toolchain xtfpga: enable hush parser .travis.yml: test xtensa xtfpga board in QEMU .travis.yml | 15 +-- configs/xtfpga_defconfig | 1 + include/configs/xtfpga.h | 2 -- 3 files chan

[U-Boot] [PATCH v2 2/3] xtfpga: enable hush parser

2018-02-07 Thread Max Filippov
Remove CONFIG_BOOT_RETRY_TIME as it doesn't do much good and enable CONFIG_HUSH_PARSER in xtfpga_defconfig. Signed-off-by: Max Filippov --- Changes v1->v2: - new patch configs/xtfpga_defconfig | 1 + include/configs/xtfpga.h | 2 -- 2 files changed, 1 insertion(+), 2 deletions(-) diff

[U-Boot] [PATCH 1/2] .travis.yml: download xtensa prebuilt toolchain

2018-02-07 Thread Max Filippov
xtensa toolchains are core-specific, so give full toolchain name and download corresponding prebuilt toolchain from the github release. Signed-off-by: Max Filippov --- .travis.yml | 8 ++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.travis.yml b/.travis.yml index

[U-Boot] [PATCH 2/2] .travis.yml: test xtensa xtfpga board in QEMU

2018-02-07 Thread Max Filippov
This allows running tests on emulated KC705 board with DC233C xtensa core. It expects to find conf.xtfpga_qemu in the uboot-test-hooks. Signed-off-by: Max Filippov --- .travis.yml | 7 +++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index 8e96a269299f

[U-Boot] [PATCH 0/2] .travis.yml changes for building/testing xtensa port

2018-02-07 Thread Max Filippov
cause hush is not enabled in the xtfpga_defconfig. Max Filippov (2): .travis.yml: download xtensa prebuilt toolchain .travis.yml: test xtensa xtfpga board in QEMU .travis.yml | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) --

[U-Boot] [PATCH v2] Pass empty CFLAGS on invocation of libfdt/setup.py

2017-03-16 Thread Max Filippov
command line option "-mlongcalls" cc1: error: unrecognized command line option "-mauto-litpools" Signed-off-by: Max Filippov Reviewed-by: Simon Glass --- Changes v1->v2: - remove "" after CFLAGS= tools/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(

Re: [U-Boot] [PATCH] Pass empty CFLAGS on invocation of libfdt/setup.py

2017-03-16 Thread Max Filippov
On Thu, Mar 16, 2017 at 2:11 PM, Tom Rini wrote: > On Thu, Mar 16, 2017 at 11:38:00AM -0700, Max Filippov wrote: > >> When building u-boot tools in cross-build environment CFLAGS environment >> variable set up for target is taken into an account when building code >> for

[U-Boot] [PATCH] Pass empty CFLAGS on invocation of libfdt/setup.py

2017-03-16 Thread Max Filippov
command line option "-mlongcalls" cc1: error: unrecognized command line option "-mauto-litpools" Signed-off-by: Max Filippov --- tools/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/Makefile b/tools/Makefile index 1c840d7..c224e8a 100644

Re: [U-Boot] [PATCH 12/27] xtensa: Use asm-generic/io.h

2016-10-03 Thread Max Filippov
only been build-tested, feedback from architecture maintainers > is welcome. > > Signed-off-by: Paul Burton > Cc: Max Filippov > --- > > arch/xtensa/include/asm/io.h | 25 ++--- > 1 file changed, 2 insertions(+), 23 deletions(-) Acke

[U-Boot] [PATCH v4 3/6] xtensa: add core information for the dc232b processor

2016-08-10 Thread Max Filippov
From: Chris Zankel DC232B is an xtensa processor with full MMUv2 capable of running Linux. Core information files are autogenerated from the processor description and are not meant to be edited. Signed-off-by: Chris Zankel Signed-off-by: Max Filippov Reviewed-by: Simon Glass Reviewed-by: Tom

[U-Boot] [PATCH v4 6/6] xtensa: add support for the 'xtfpga' evaluation board

2016-08-10 Thread Max Filippov
t, ns16550 serial, lcd display, flash, etc.). Signed-off-by: Chris Zankel Signed-off-by: Max Filippov Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- Changes v3->v4: - rebase to sysreset consolidation patch, move sysreset driver to drivers/sysreset. --- arch/xtensa/Kconfig

[U-Boot] [PATCH v4 4/6] xtensa: add core information for the dc233c processor

2016-08-10 Thread Max Filippov
DC233C is an xtensa processor with full MMUv3 capable of running Linux. Core information files are autogenerated from the processor description and are not meant to be edited. Signed-off-by: Max Filippov Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- arch/xtensa/include/asm/arch-dc233c

[U-Boot] [PATCH v4 2/6] xtensa: add support for the xtensa processor architecture [2/2]

2016-08-10 Thread Max Filippov
ris Zankel Signed-off-by: Max Filippov Reviewed-by: Simon Glass --- Changes v3->v4: - use __attribute__((section(".data"))) with gd; - always define interrupt_init, enable_interrupts and disable_interrupts; --- arch/Kconfig | 6 + arch/xtensa/Kconfig

[U-Boot] [PATCH v4 5/6] xtensa: add core information for the de212 processor

2016-08-10 Thread Max Filippov
DE212 is a general purpose xtensa processor without full MMU. Core information files are autogenerated from the processor description and are not meant to be edited. Signed-off-by: Max Filippov Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- arch/xtensa/include/asm/arch-de212/core.h

[U-Boot] [PATCH v4 1/6] xtensa: add support for the xtensa processor architecture [1/2]

2016-08-10 Thread Max Filippov
additional drivers will be in separate commits. Signed-off-by: Chris Zankel Signed-off-by: Max Filippov Reviewed-by: Simon Glass Reviewed-by: Tom Rini --- MAINTAINERS | 5 +++ Makefile| 10 - cmd/bdinfo.c| 8 common/board_f.c

[U-Boot] [PATCH v4 0/6] U-Boot port to Xtensa architecture

2016-08-10 Thread Max Filippov
ssor xtensa: add support for the 'xtfpga' evaluation board Max Filippov (2): xtensa: add core information for the dc233c processor xtensa: add core information for the de212 processor MAINTAINERS | 5 + Makefile

[U-Boot] [PATCH v2] drivers/sysreset: group sysreset drivers

2016-08-06 Thread Max Filippov
Create drivers/sysreset and move sysreset-uclass and all sysreset drivers there. Signed-off-by: Max Filippov --- Changes v1->v2: - move RK3399 sysreset driver as well; - format patch with -M to make renames explicit. --- arch/arm/mach-rockchip/rk3036/Makefile | 1 - arch/

Re: [U-Boot] [PATCH v3 6/6] xtensa: add support for the 'xtfpga' evaluation board

2016-08-06 Thread Max Filippov
On Sat, Aug 6, 2016 at 4:41 AM, Simon Glass wrote: > On 5 August 2016 at 17:00, Max Filippov wrote: >> From: Chris Zankel >> >> The 'xtfpga' board is actually a set of FPGA evaluation boards that >> can be configured to run an Xtensa processor. >>

Re: [U-Boot] [PATCH v3 2/6] xtensa: add support for the xtensa processor architecture [2/2]

2016-08-06 Thread Max Filippov
On Sat, Aug 6, 2016 at 4:41 AM, Simon Glass wrote: > On 5 August 2016 at 17:00, Max Filippov wrote: >> From: Chris Zankel >> >> The Xtensa processor architecture is a configurable, extensible, >> and synthesizable 32-bit RISC processor core provided by Tensilica, in

[U-Boot] [PATCH] drivers/sysreset: group sysreset drivers

2016-08-06 Thread Max Filippov
Create drivers/sysreset and move sysreset-uclass and all sysreset drivers there. Signed-off-by: Max Filippov --- arch/arm/mach-rockchip/rk3036/Makefile | 1 - arch/arm/mach-rockchip/rk3036/reset_rk3036.c | 45 arch/arm/mach-rockchip/rk3288/Makefile | 1 - arch/arm

[U-Boot] [PATCH v3 6/6] xtensa: add support for the 'xtfpga' evaluation board

2016-08-05 Thread Max Filippov
t, ns16550 serial, lcd display, flash, etc.). Signed-off-by: Chris Zankel Signed-off-by: Max Filippov --- Changes v2->v3: - drop LCD display support; - add reset driver; - add ethernet device configuration for DM_ETH driver; - enable phylib in defconfig; --- arch/xtensa/Kconfig

[U-Boot] [PATCH v3 5/6] xtensa: add core information for the de212 processor

2016-08-05 Thread Max Filippov
DE212 is a general purpose xtensa processor without full MMU. Core information files are autogenerated from the processor description and are not meant to be edited. Signed-off-by: Max Filippov --- Changes v2->v3: - fix core configuration files license; - add comment that core configurat

[U-Boot] [PATCH v3 4/6] xtensa: add core information for the dc233c processor

2016-08-05 Thread Max Filippov
DC233C is an xtensa processor with full MMUv3 capable of running Linux. Core information files are autogenerated from the processor description and are not meant to be edited. Signed-off-by: Max Filippov --- Changes v2->v3: - fix core configuration files license; - add comment that c

[U-Boot] [PATCH v3 3/6] xtensa: add core information for the dc232b processor

2016-08-05 Thread Max Filippov
From: Chris Zankel DC232B is an xtensa processor with full MMUv2 capable of running Linux. Core information files are autogenerated from the processor description and are not meant to be edited. Signed-off-by: Chris Zankel Signed-off-by: Max Filippov --- Changes v2->v3: - fix c

[U-Boot] [PATCH v3 2/6] xtensa: add support for the xtensa processor architecture [2/2]

2016-08-05 Thread Max Filippov
ris Zankel Signed-off-by: Max Filippov --- Changes v2->v3: - fix comment wording and stylistic issues; - drop {HAVE,SYS}_GENERIC_BOARD from Kconfig; - drop ASCDISP, display_printf and include/asm/xtensa.h; - drop 10 second delay in unhandled_exception; - don's silence invalid memory access

[U-Boot] [PATCH v3 0/6] U-Boot port to Xtensa architecture

2016-08-05 Thread Max Filippov
xtensa: add support for the xtensa processor architecture [2/2] xtensa: add core information for the dc232b processor xtensa: add support for the 'xtfpga' evaluation board Max Filippov (2): xtensa: add core information for the dc233c processor xtensa: add core information for th

[U-Boot] [PATCH v3 1/6] xtensa: add support for the xtensa processor architecture [1/2]

2016-08-05 Thread Max Filippov
additional drivers will be in separate commits. Signed-off-by: Chris Zankel Signed-off-by: Max Filippov --- Changes v2->v3: - drop changes to the MAKEALL script; - refactor do_bdinfo; - fix wording of doc/README.xtensa; - rewrite memory exception handling part in doc/README.xtensa. - add bss cle

[U-Boot] [PATCH v2 5/7] net/ethoc: don't mix virtual and physical addresses

2016-08-05 Thread Max Filippov
Addresses used in buffer descriptors and passed in platform data or device tree are physical. Addresses used by CPU to access packet data and registers are virtual. Don't mix these addresses and use virt_to_phys for translation. Signed-off-by: Max Filippov Acked-by: Joe Hershberger --- dr

[U-Boot] [PATCH v2 4/7] net/ethoc: support device tree

2016-08-05 Thread Max Filippov
Add .of_match table and .ofdata_to_platdata callback to allow for ethoc device configuration from the device tree. Signed-off-by: Max Filippov Acked-by: Joe Hershberger --- drivers/net/ethoc.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/ethoc.c b/drivers

[U-Boot] [PATCH v2 3/7] net/ethoc: add CONFIG_DM_ETH support

2016-08-05 Thread Max Filippov
Extract reusable parts from ethoc_init, ethoc_set_mac_address, ethoc_send and ethoc_receive, move the rest under #ifdef CONFIG_DM_ETH. Add U_BOOT_DRIVER, eth_ops structure and implement required methods. Signed-off-by: Max Filippov Reviewed-by: Simon Glass Acked-by: Joe Hershberger --- Changes

[U-Boot] [PATCH v2 2/7] net/ethoc: use priv instead of dev internally

2016-08-05 Thread Max Filippov
Don't use physical base address of registers directly, ioremap it first. Save pointer in private struct ethoc and use that struct in all internal functions. Signed-off-by: Max Filippov Acked-by: Joe Hershberger --- drivers/net/ethoc.c

[U-Boot] [PATCH v2 7/7] net/ethoc: implement MDIO bus and support phylib

2016-08-05 Thread Max Filippov
Implement MDIO bus read/write functions, initialize the bus and scan for the PHY when phylib is enabled. Limit PHY speeds to 10/100 Mbps. Cc: Michal Simek Signed-off-by: Max Filippov --- Changes v1->v2: - use wait_for_bit in ethoc_mdio_read/ethoc_mdio_write; - remove stray ioremap remo

[U-Boot] [PATCH v2 0/7] net/ethoc improvements

2016-08-05 Thread Max Filippov
in ethoc_mdio_read/ethoc_mdio_write; - remove stray ioremap addition/removal across the series. Max Filippov (7): net/ethoc: add Kconfig entry for the driver net/ethoc: use priv instead of dev internally net/ethoc: add CONFIG_DM_ETH support net/ethoc: support device tree net/ethoc: don't mix vir

[U-Boot] [PATCH v2 6/7] net/ethoc: support private memory configurations

2016-08-05 Thread Max Filippov
callback. Signed-off-by: Max Filippov Acked-by: Joe Hershberger --- drivers/net/ethoc.c | 46 include/dm/platform_data/net_ethoc.h | 1 + 2 files changed, 42 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c

[U-Boot] [PATCH v2 1/7] net/ethoc: add Kconfig entry for the driver

2016-08-05 Thread Max Filippov
Add Kconfig entry for the driver, remove #define CONFIG_ETHOC from the only board configuration that uses it and put it into that board's defconfig. Cc: Stefan Kristiansson Signed-off-by: Max Filippov Acked-by: Joe Hershberger --- configs/openrisc-generic_defconfig | 2 ++ drivers/net/Kc

Re: [U-Boot] [PATCH 7/7] net/ethoc: implement MDIO bus and support phylib

2016-08-05 Thread Max Filippov
On Thu, Aug 4, 2016 at 11:48 PM, Joe Hershberger wrote: > On Tue, Aug 2, 2016 at 6:31 AM, Max Filippov wrote: >> Implement MDIO bus read/write functions, initialize the bus and scan for >> the PHY when phylib is enabled. Limit PHY speeds to 10/100 Mbps. >> >> Cc: Mic

Re: [U-Boot] [PATCH 3/7] net/ethoc: add CONFIG_DM_ETH support

2016-08-05 Thread Max Filippov
On Thu, Aug 4, 2016 at 8:51 PM, Joe Hershberger wrote: > On Tue, Aug 2, 2016 at 6:31 AM, Max Filippov wrote: >> Extract reusable parts from ethoc_init, ethoc_set_mac_address, >> ethoc_send and ethoc_receive, move the rest under #ifdef CONFIG_DM_ETH. >> Add U_BOOT_DRIVER,

[U-Boot] [PATCH 7/7] net/ethoc: implement MDIO bus and support phylib

2016-08-02 Thread Max Filippov
Implement MDIO bus read/write functions, initialize the bus and scan for the PHY when phylib is enabled. Limit PHY speeds to 10/100 Mbps. Cc: Michal Simek Signed-off-by: Max Filippov --- drivers/net/ethoc.c | 152 +--- 1 file changed, 146

[U-Boot] [PATCH 1/7] net/ethoc: add Kconfig entry for the driver

2016-08-02 Thread Max Filippov
Add Kconfig entry for the driver, remove #define CONFIG_ETHOC from the only board configuration that uses it and put it into that board's defconfig. Cc: Stefan Kristiansson Signed-off-by: Max Filippov --- configs/openrisc-generic_defconfig | 2 ++ drivers/net/Kconfig

[U-Boot] [PATCH 5/7] net/ethoc: don't mix virtual and physical addresses

2016-08-02 Thread Max Filippov
Addresses used in buffer descriptors and passed in platform data or device tree are physical. Addresses used by CPU to access packet data and registers are virtual. Don't mix these addresses and use virt_to_phys for translation. Signed-off-by: Max Filippov --- drivers/net/ethoc.c

[U-Boot] [PATCH 6/7] net/ethoc: support private memory configurations

2016-08-02 Thread Max Filippov
callback. Signed-off-by: Max Filippov --- drivers/net/ethoc.c | 46 include/dm/platform_data/net_ethoc.h | 1 + 2 files changed, 42 insertions(+), 5 deletions(-) diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index e25dd1b..fa623d5 100644

[U-Boot] [PATCH 4/7] net/ethoc: support device tree

2016-08-02 Thread Max Filippov
Add .of_match table and .ofdata_to_platdata callback to allow for ethoc device configuration from the device tree. Signed-off-by: Max Filippov --- drivers/net/ethoc.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c index 0225595

[U-Boot] [PATCH 3/7] net/ethoc: add CONFIG_DM_ETH support

2016-08-02 Thread Max Filippov
Extract reusable parts from ethoc_init, ethoc_set_mac_address, ethoc_send and ethoc_receive, move the rest under #ifdef CONFIG_DM_ETH. Add U_BOOT_DRIVER, eth_ops structure and implement required methods. Signed-off-by: Max Filippov --- drivers/net/ethoc.c | 221

[U-Boot] [PATCH 0/7] net/ethoc improvements

2016-08-02 Thread Max Filippov
address usage. Please review. Max Filippov (7): net/ethoc: add Kconfig entry for the driver net/ethoc: use priv instead of dev internally net/ethoc: add CONFIG_DM_ETH support net/ethoc: support device tree net/ethoc: don't mix virtual and physical addresses net/ethoc: support pr

[U-Boot] [PATCH 2/7] net/ethoc: use priv instead of dev internally

2016-08-02 Thread Max Filippov
Don't use physical base address of registers directly, ioremap it first. Save pointer in private struct ethoc and use that struct in all internal functions. Signed-off-by: Max Filippov --- drivers/net/ethoc.c | 111 ++-- 1 file change

Re: [U-Boot] [PATCH v2 7/7] cmd/bdinfo: extract print_std_bdinfo

2016-07-31 Thread Max Filippov
Tom, Simon, On Mon, Aug 1, 2016 at 4:03 AM, Simon Glass wrote: > On 27 July 2016 at 18:57, Max Filippov wrote: >> print_std_bdinfo outputs typical set of board information entries: >> boot params location, memory and flash addresses and sizes, network >> interfaces infor

[U-Boot] [PATCH v2 3/7] cmd/bdinfo: extract print_bi_dram

2016-07-27 Thread Max Filippov
print_bi_dram outputs start address and size for each DRAM bank. Signed-off-by: Max Filippov --- Changes v1->v2: - fix build for architectures w/o CONFIG_NR_DRAM_BANKS and bi_dram in bd_t. cmd/bdinfo.c | 60 +++- 1 file changed,

[U-Boot] [PATCH v2 7/7] cmd/bdinfo: extract print_std_bdinfo

2016-07-27 Thread Max Filippov
print_std_bdinfo outputs typical set of board information entries: boot params location, memory and flash addresses and sizes, network interfaces information and configured serial baud rate. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 32 1 file changed, 12

[U-Boot] [PATCH v2 1/7] cmd/bdinfo: extract print_bi_boot_params

2016-07-27 Thread Max Filippov
print_bi_boot_params outputs boot parameters structure location. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index f2435ab..60aaafb 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c

[U-Boot] [PATCH v2 4/7] cmd/bdinfo: extract print_bi_flash

2016-07-27 Thread Max Filippov
print_bi_flash outputs flashstart, flashsize and flashoffset lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 54 +++--- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index c8a0511..0bef930 100644

[U-Boot] [PATCH v2 6/7] cmd/bdinfo: extract print_baudrate

2016-07-27 Thread Max Filippov
print_baudrate outputs serial baud rate. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 39 +-- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 4ffb757..403ed3e 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c

[U-Boot] [PATCH v2 5/7] cmd/bdinfo: extract print_eth_ip_addr

2016-07-27 Thread Max Filippov
print_eth_ip_addr outputs eth configurations for up to 6 interfaces and configured IP address. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 113 +++ 1 file changed, 36 insertions(+), 77 deletions(-) diff --git a/cmd/bdinfo.c b/cmd

[U-Boot] [PATCH v2 2/7] cmd/bdinfo: extract print_bi_mem

2016-07-27 Thread Max Filippov
print_bi_mem outputs memstart and memsize lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 60aaafb..df68b58 100644 --- a/cmd/bdinfo.c +++ b/cmd

[U-Boot] [PATCH v2 0/7] cmd/bdinfo: extract common parts and reuse them

2016-07-27 Thread Max Filippov
Hi, this series extracts common parts of cmd/bdinfo.c used by various architectures into reusable functions. Changes v1->v2: - fix build for architectures w/o CONFIG_NR_DRAM_BANKS and bi_dram in bd_t. Please review. Max Filippov (7): cmd/bdinfo: extract print_bi_boot_params cmd/bdi

[U-Boot] [PATCH 6/7] cmd/bdinfo: extract print_baudrate

2016-07-26 Thread Max Filippov
print_baudrate outputs serial baud rate. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 39 +-- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index ab56ea5..b4abb91 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c

[U-Boot] [PATCH 7/7] cmd/bdinfo: extract print_std_bdinfo

2016-07-26 Thread Max Filippov
print_std_bdinfo outputs typical set of board information entries: boot params location, memory and flash addresses and sizes, network interfaces information and configured serial baud rate. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 32 1 file changed, 12

[U-Boot] [PATCH 4/7] cmd/bdinfo: extract print_bi_flash

2016-07-26 Thread Max Filippov
print_bi_flash outputs flashstart, flashsize and flashoffset lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 54 +++--- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 2f37232..f89de5f 100644

[U-Boot] [PATCH 2/7] cmd/bdinfo: extract print_bi_mem

2016-07-26 Thread Max Filippov
print_bi_mem outputs memstart and memsize lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 60aaafb..df68b58 100644 --- a/cmd/bdinfo.c +++ b/cmd

[U-Boot] [PATCH 5/7] cmd/bdinfo: extract print_eth_ip_addr

2016-07-26 Thread Max Filippov
print_eth_ip_addr outputs eth configurations for up to 6 interfaces and configured IP address. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 113 +++ 1 file changed, 36 insertions(+), 77 deletions(-) diff --git a/cmd/bdinfo.c b/cmd

[U-Boot] [PATCH 0/7] cmd/bdinfo: extract common parts and reuse them

2016-07-26 Thread Max Filippov
Hi, this series extracts common parts of cmd/bdinfo.c used by various architectures into reusable functions. Please review. Max Filippov (7): cmd/bdinfo: extract print_bi_boot_params cmd/bdinfo: extract print_bi_mem cmd/bdinfo: extract print_bi_dram cmd/bdinfo: extract print_bi_flash

[U-Boot] [PATCH 3/7] cmd/bdinfo: extract print_bi_dram

2016-07-26 Thread Max Filippov
print_bi_dram outputs start address and size for each DRAM bank. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 58 +- 1 file changed, 17 insertions(+), 41 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index df68b58..2f37232

[U-Boot] [PATCH 1/7] cmd/bdinfo: extract print_bi_boot_params

2016-07-26 Thread Max Filippov
print_bi_boot_params outputs boot parameters structure location. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index f2435ab..60aaafb 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c

[U-Boot] [PATCH 6/6] cmd/bdinfo: extract print_std_bdinfo

2016-07-26 Thread Max Filippov
print_std_bdinfo outputs typical set of board information entries: boot params location, memory and flash addresses and sizes, network interfaces information and configured serial baud rate. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 32 1 file changed, 12

Re: [U-Boot] [PATCH 0/7] cmd/bdinfo: extract common parts and reuse them

2016-07-26 Thread Max Filippov
On Wed, Jul 27, 2016 at 8:27 AM, Max Filippov wrote: > Hi, > > this series extracts common parts of cmd/bdinfo.c used by various > architectures into reusable functions. Sorry, messed up my patch directory, will resend. -- Thanks. -- Max __

[U-Boot] [PATCH 4/7] cmd/bdinfo: extract print_bi_flash

2016-07-26 Thread Max Filippov
print_bi_flash outputs flashstart, flashsize and flashoffset lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 54 +++--- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 2f37232..f89de5f 100644

[U-Boot] [PATCH 6/7] cmd/bdinfo: extract print_baudrate

2016-07-26 Thread Max Filippov
print_baudrate outputs serial baud rate. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 39 +-- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index ab56ea5..b4abb91 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c

[U-Boot] [PATCH 5/7] cmd/bdinfo: extract print_eth_ip_addr

2016-07-26 Thread Max Filippov
print_eth_ip_addr outputs eth configurations for up to 6 interfaces and configured IP address. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 113 +++ 1 file changed, 36 insertions(+), 77 deletions(-) diff --git a/cmd/bdinfo.c b/cmd

[U-Boot] [PATCH 4/6] cmd/bdinfo: extract print_eth_ip_addr

2016-07-26 Thread Max Filippov
print_eth_ip_addr outputs eth configurations for up to 6 interfaces and configured IP address. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 113 +++ 1 file changed, 36 insertions(+), 77 deletions(-) diff --git a/cmd/bdinfo.c b/cmd

[U-Boot] [PATCH 5/6] cmd/bdinfo: extract print_baudrate

2016-07-26 Thread Max Filippov
print_baudrate outputs serial baud rate. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 39 +-- 1 file changed, 25 insertions(+), 14 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index ab56ea5..b4abb91 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c

[U-Boot] [PATCH 3/6] cmd/bdinfo: extract print_bi_flash

2016-07-26 Thread Max Filippov
print_bi_flash outputs flashstart, flashsize and flashoffset lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 54 +++--- 1 file changed, 27 insertions(+), 27 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 2f37232..f89de5f 100644

[U-Boot] [PATCH 3/7] cmd/bdinfo: extract print_bi_dram

2016-07-26 Thread Max Filippov
print_bi_dram outputs start address and size for each DRAM bank. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 58 +- 1 file changed, 17 insertions(+), 41 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index df68b58..2f37232

[U-Boot] [PATCH 2/6] cmd/bdinfo: extract print_bi_dram

2016-07-26 Thread Max Filippov
print_bi_dram outputs start address and size for each DRAM bank. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 58 +- 1 file changed, 17 insertions(+), 41 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index df68b58..2f37232

[U-Boot] [PATCH 1/6] cmd/bdinfo: extract print_bi_mem

2016-07-26 Thread Max Filippov
print_bi_mem outputs memstart and memsize lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 60aaafb..df68b58 100644 --- a/cmd/bdinfo.c +++ b/cmd

[U-Boot] [PATCH 0/7] cmd/bdinfo: extract common parts and reuse them

2016-07-26 Thread Max Filippov
Hi, this series extracts common parts of cmd/bdinfo.c used by various architectures into reusable functions. Please review. Max Filippov (7): cmd/bdinfo: extract print_bi_boot_params cmd/bdinfo: extract print_bi_mem cmd/bdinfo: extract print_bi_dram cmd/bdinfo: extract print_bi_flash

[U-Boot] [PATCH 1/7] cmd/bdinfo: extract print_bi_boot_params

2016-07-26 Thread Max Filippov
print_bi_boot_params outputs boot parameters structure location. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 20 +--- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index f2435ab..60aaafb 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c

[U-Boot] [PATCH 2/7] cmd/bdinfo: extract print_bi_mem

2016-07-26 Thread Max Filippov
print_bi_mem outputs memstart and memsize lines. Signed-off-by: Max Filippov --- cmd/bdinfo.c | 42 ++ 1 file changed, 26 insertions(+), 16 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 60aaafb..df68b58 100644 --- a/cmd/bdinfo.c +++ b/cmd

  1   2   >