Re: [RFC] serial: ns16550: Set read/write functions depending on reg-io-width

2017-02-20 Thread Wadim Egorov
Is this patch okay? Am 09.02.2017 um 10:36 schrieb Wadim Egorov: > Set proper register read/write functions depending on reg-io-width > device tree property. > > Signed-off-by: Wadim Egorov > --- > > of_platform_device_create() creates resources in the device_d struct.

Re: barebox PBL question

2017-02-14 Thread Wadim Egorov
On 14.02.2017 11:48, Sascha Hauer wrote: > On Tue, Feb 14, 2017 at 10:54:49AM +0100, Wadim Egorov wrote: >> On 13.02.2017 20:22, Sascha Hauer wrote: >>> On Mon, Feb 13, 2017 at 04:13:48PM +0100, Wadim Egorov wrote: >>>> Hi, >>>> >>>> I would

Re: barebox PBL question

2017-02-14 Thread Wadim Egorov
On 13.02.2017 20:22, Sascha Hauer wrote: > On Mon, Feb 13, 2017 at 04:13:48PM +0100, Wadim Egorov wrote: >> Hi, >> >> I would like to add SPL support for the RK3288 SoC to barebox. But I am >> facing >> a few problems. >> >> The maximum size of the S

barebox PBL question

2017-02-13 Thread Wadim Egorov
Hi, I would like to add SPL support for the RK3288 SoC to barebox. But I am facing a few problems. The maximum size of the SPL image which the ROM code will read is 32KB. I was thinking to use the PBL feature for the SPL part. But using the the pbl code (with decompression) seems to be not a good

[RFC] serial: ns16550: Set read/write functions depending on reg-io-width

2017-02-09 Thread Wadim Egorov
Set proper register read/write functions depending on reg-io-width device tree property. Signed-off-by: Wadim Egorov --- of_platform_device_create() creates resources in the device_d struct. ns16550_init_iomem() and ns16550_init_ioport() are reading the resources and it's flags (register

[PATCH 2/2] config: Set UART port 2 as debug port

2017-02-09 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- arch/arm/configs/rk3288_defconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/configs/rk3288_defconfig b/arch/arm/configs/rk3288_defconfig index f54f4cc..15e6c15 100644 --- a/arch/arm/configs/rk3288_defconfig +++ b/arch/arm

[PATCH 1/2] ARM: phycore-rk3288: Use UART2 as debug output

2017-02-09 Thread Wadim Egorov
RK3288's UART2 is the default debug uart interface. Signed-off-by: Wadim Egorov --- arch/arm/boards/phytec-som-rk3288/lowlevel.c | 11 +-- arch/arm/dts/rk3288-phycore-som.dts | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/arch/arm/boards/phyte

[PATCH v3 6/8] ARM: Add phyCORE-RK3288 SOM support

2016-08-30 Thread Wadim Egorov
The phyCORE-RK3288 aka PCM-059 is a SoM (System on Module) containing a RK3288 SoC. The module can be connected to different carrier boards. Signed-off-by: Wadim Egorov --- Changes since v2: - fixed sdmmc/emmc partition layouts - renamed automount to automount-mmc to not overwrite the generic

[PATCH v2 6/8] ARM: Add phyCORE-RK3288 SOM support

2016-08-24 Thread Wadim Egorov
The phyCORE-RK3288 aka PCM-059 is a SoM (System on Module) containing a RK3288 SoC. The module can be connected to different carrier boards. Signed-off-by: Wadim Egorov --- arch/arm/boards/Makefile | 1 + arch/arm/boards/phytec-som-rk3288/Makefile | 3

[PATCH v2 4/8] clk: Add RK3288 clock driver

2016-08-24 Thread Wadim Egorov
Add clk driver for RK3288 SoC. This driver comes from the Linux kernel. Based on kernel v4.4 Signed-off-by: Wadim Egorov --- drivers/clk/rockchip/Makefile | 4 +- drivers/clk/rockchip/clk-rk3288.c | 836 ++ 2 files changed, 839 insertions(+), 1 deletion

[PATCH v2 8/8] doc: Add RK3288 Documentation

2016-08-24 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- Documentation/boards/rk3288.rst| 57 ++ Documentation/boards/rk3288/phytec-som.rst | 24 + 2 files changed, 81 insertions(+) create mode 100644 Documentation/boards/rk3288.rst create mode 100644 Documentation

[PATCH v2 1/8] ARM: rockchip: Add basic RK3288 support

2016-08-24 Thread Wadim Egorov
. Let's seperate the RK3188 and RK3288 SoCs. Later we will have two different configs. Signed-off-by: Wadim Egorov --- arch/arm/boards/radxa-rock/board.c | 2 +- .../{rockchip_defconfig => rk3188_defconfig} | 1 + arch/arm/mach-rockchip/Kconfig

[PATCH v2 7/8] configs: Add RK3288 defconfig

2016-08-24 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- arch/arm/configs/rk3288_defconfig | 104 ++ 1 file changed, 104 insertions(+) create mode 100644 arch/arm/configs/rk3288_defconfig diff --git a/arch/arm/configs/rk3288_defconfig b/arch/arm/configs/rk3288_defconfig new file

[PATCH v2 3/8] ARM: rockchip: Add early debug support for RK3288

2016-08-24 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- Changes since v1: - use CONFIG_BAUDRATE instead of hard coded value - use IOMEM macros --- arch/arm/mach-rockchip/include/mach/debug_ll.h | 73 +++--- common/Kconfig | 6 +-- 2 files changed, 46 insertions

[PATCH v2 2/8] clocksource: Add rk3288 timer driver

2016-08-24 Thread Wadim Egorov
This driver comes from the u-boot (v2016.01). Signed-off-by: Wadim Egorov --- Changes since v1: - moved rk_timer to drivers/clocksource - rk_timer now binds against a DT node --- arch/arm/mach-rockchip/Kconfig | 5 ++ arch/arm/mach-rockchip/include/mach/timer.h | 19

[PATCH v2 5/8] mci: dw_mmc: Add RK3288 compatible string

2016-08-24 Thread Wadim Egorov
The SDHC used in the RK2928 and RK3288 are compatible with each other. Add a compatible string for RK3288's SDHC. Signed-off-by: Wadim Egorov --- drivers/mci/dw_mmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mci/dw_mmc.c b/drivers/mci/dw_mmc.c index 0e004ab..27c36a6 1

Re: [PATCH 2/8] ARM: rockchip: Add timer driver

2016-08-03 Thread Wadim Egorov
On 03.08.2016 07:47, Sascha Hauer wrote: > On Thu, Jul 28, 2016 at 01:55:39PM +0200, Wadim Egorov wrote: >> >> On 20.07.2016 19:35, Andrey Smirnov wrote: >>> On Wed, Jul 20, 2016 at 7:17 AM, Wadim Egorov wrote: >>>> This driver comes from the u-boot (v2016.0

Re: [PATCH 1/8] ARM: rockchip: Add basic RK3288 support

2016-07-28 Thread Wadim Egorov
On 21.07.2016 08:54, Sascha Hauer wrote: > On Wed, Jul 20, 2016 at 10:52:52AM -0700, Andrey Smirnov wrote: >> On Wed, Jul 20, 2016 at 7:17 AM, Wadim Egorov wrote: >>> + >>> +struct rk3288_cru { >>> + struct rk3288_pll { >>> +

Re: [PATCH 2/8] ARM: rockchip: Add timer driver

2016-07-28 Thread Wadim Egorov
On 20.07.2016 19:35, Andrey Smirnov wrote: > On Wed, Jul 20, 2016 at 7:17 AM, Wadim Egorov wrote: >> This driver comes from the u-boot (v2016.01). > I'd suggest this to be moved to "drivers/clocksource" and converted to > a proper driver that binds against DT

Re: [PATCH 3/8] ARM: rockchip: Add early debug support for RK3288

2016-07-28 Thread Wadim Egorov
Hi Andrey, On 20.07.2016 17:03, Andrey Smirnov wrote: > On Wed, Jul 20, 2016 at 7:17 AM, Wadim Egorov wrote: >> Signed-off-by: Wadim Egorov >> --- >> arch/arm/mach-rockchip/include/mach/debug_ll.h | 72 >> +++--- >> common/Kconfig

Re: [PATCH 8/8] doc: Add RK3288 Documentation

2016-07-21 Thread Wadim Egorov
On 21.07.2016 09:00, Sascha Hauer wrote: > On Wed, Jul 20, 2016 at 04:17:45PM +0200, Wadim Egorov wrote: >> Signed-off-by: Wadim Egorov >> --- >> Documentation/boards/rk3288.rst| 57 >> ++ >> Documentation/

[PATCH 6/8] ARM: Add phyCORE-RK3288 SOM support

2016-07-20 Thread Wadim Egorov
The phyCORE-RK3288 aka PCM-059 is a SoM (System on Module) containing a RK3288 SoC. The module can be connected to different carrier boards. Signed-off-by: Wadim Egorov --- arch/arm/boards/Makefile | 1 + arch/arm/boards/phytec-som-rk3288/Makefile | 3

[PATCH 8/8] doc: Add RK3288 Documentation

2016-07-20 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- Documentation/boards/rk3288.rst| 57 ++ Documentation/boards/rk3288/phytec-som.rst | 24 + 2 files changed, 81 insertions(+) create mode 100644 Documentation/boards/rk3288.rst create mode 100644 Documentation

[PATCH 7/8] configs: Add RK3288 defconfig

2016-07-20 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- arch/arm/configs/rk3288_defconfig | 104 ++ 1 file changed, 104 insertions(+) create mode 100644 arch/arm/configs/rk3288_defconfig diff --git a/arch/arm/configs/rk3288_defconfig b/arch/arm/configs/rk3288_defconfig new file

[PATCH 4/8] clk: Add RK3288 clock driver

2016-07-20 Thread Wadim Egorov
Add clk driver for RK3288 SoC. This driver comes from the Linux kernel. Based on kernel v4.4 Signed-off-by: Wadim Egorov --- drivers/clk/rockchip/Makefile | 4 +- drivers/clk/rockchip/clk-rk3288.c | 836 ++ 2 files changed, 839 insertions(+), 1 deletion

[PATCH 1/8] ARM: rockchip: Add basic RK3288 support

2016-07-20 Thread Wadim Egorov
. Let's seperate the RK3188 and RK3288 SoCs. Later we will have two different configs. Signed-off-by: Wadim Egorov --- arch/arm/boards/radxa-rock/board.c | 2 +- .../{rockchip_defconfig => rk3188_defconfig} | 1 + arch/arm/mach-rockchip/Kconfig

[PATCH 3/8] ARM: rockchip: Add early debug support for RK3288

2016-07-20 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- arch/arm/mach-rockchip/include/mach/debug_ll.h | 72 +++--- common/Kconfig | 6 +-- 2 files changed, 45 insertions(+), 33 deletions(-) diff --git a/arch/arm/mach-rockchip/include/mach/debug_ll.h b/arch/arm

[PATCH 5/8] mci: dw_mmc: Add RK3288 compatible string

2016-07-20 Thread Wadim Egorov
The SDHC used in the RK2928 and RK3288 are compatible with each other. Add a compatible string for RK3288's SDHC. Signed-off-by: Wadim Egorov --- drivers/mci/dw_mmc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/mci/dw_mmc.c b/drivers/mci/dw_mmc.c index 0e004ab..27c36a6 1

[PATCH 2/8] ARM: rockchip: Add timer driver

2016-07-20 Thread Wadim Egorov
This driver comes from the u-boot (v2016.01). Signed-off-by: Wadim Egorov --- arch/arm/mach-rockchip/Kconfig | 5 +++ arch/arm/mach-rockchip/Makefile | 1 + arch/arm/mach-rockchip/include/mach/timer.h | 19 arch/arm/mach-rockchip/rk_timer.c | 48

[PATCH 3/3] net: dhcp: Fix CONFIG variable name

2015-09-28 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- net/dhcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/dhcp.c b/net/dhcp.c index e1625ec..fb8a713 100644 --- a/net/dhcp.c +++ b/net/dhcp.c @@ -158,7 +158,7 @@ static void env_str_handle(struct dhcp_opt *opt, unsigned char *popt, int

[PATCH 2/3] ARM: am33xx: Enable ethernet node on NET boot

2015-09-28 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- arch/arm/mach-omap/am33xx_generic.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/arch/arm/mach-omap/am33xx_generic.c b/arch/arm/mach-omap/am33xx_generic.c index ae0ee58..5eead5c 100644 --- a/arch/arm/mach-omap/am33xx_generic.c +++ b/arch/arm/mach-omap

[PATCH 1/3] ARM: dts: am335x-phytec-phycore-som: Disable mac node.

2015-09-28 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- arch/arm/dts/am335x-phytec-phycore-som-mlo.dts | 4 1 file changed, 4 insertions(+) diff --git a/arch/arm/dts/am335x-phytec-phycore-som-mlo.dts b/arch/arm/dts/am335x-phytec-phycore-som-mlo.dts index f70835f..32b43dd 100644 --- a/arch/arm/dts/am335x-phytec

[PATCH v2 2/2] ARM: OMAP: Add max file size for PBLX images

2015-06-25 Thread Wadim Egorov
On AM335x SOCs the maximum size of a downloaded MLO/PBLX image is 109 KB. Signed-off-by: Wadim Egorov --- v2: size fixed: size was 109*1000 --- arch/arm/configs/am335x_mlo_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/am335x_mlo_defconfig b/arch/arm

[PATCH v2 1/2] images: Add file size check for PBLX files

2015-06-25 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- common/Kconfig | 10 ++ images/Makefile | 2 ++ 2 files changed, 12 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index 3dfb5ac..cebe086 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -201,6 +201,16 @@ config BAREBOX_MAX_BARE_INIT_SIZE

Re: [PATCH] net: Set the actual ethaddr in register_preset_mac_address()

2015-06-15 Thread Wadim Egorov
On 15.06.2015 08:55, Sascha Hauer wrote: On Wed, Jun 10, 2015 at 08:44:11AM +0200, Wadim Egorov wrote: Hello Sascha, On 10.06.2015 06:32, Sascha Hauer wrote: Hi Wadim, On Tue, Jun 09, 2015 at 09:04:25AM +0200, Wadim Egorov wrote: Set the ethaddr for the current edev. Signed-off-by

[PATCH] scripts/omap_signGP: Fix image size in GP header

2015-06-15 Thread Wadim Egorov
field is 98303 bytes). Signed-off-by: Wadim Egorov --- This patch is the fix for the following reported issue: http://lists.infradead.org/pipermail/barebox/2015-March/023022.html A 98823 bytes big lzo packed MLO will not be copied correctly to the SRAM. This will cause a failure in the lzo code

[PATCH 1/2] images: Add file size check for PBLX files

2015-06-10 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- common/Kconfig | 10 ++ images/Makefile | 1 + 2 files changed, 11 insertions(+) diff --git a/common/Kconfig b/common/Kconfig index 1c5d14c..0ffa783 100644 --- a/common/Kconfig +++ b/common/Kconfig @@ -198,6 +198,16 @@ config BAREBOX_MAX_BARE_INIT_SIZE

[PATCH 2/2] ARM: OMAP: Add max file size for PBLX images

2015-06-10 Thread Wadim Egorov
On AM335x SOCs the maximum size of a downloaded MLO/PBLX image is 109 KB. Signed-off-by: Wadim Egorov --- arch/arm/configs/am335x_mlo_defconfig | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm/configs/am335x_mlo_defconfig b/arch/arm/configs/am335x_mlo_defconfig index 1dd7567

Re: [PATCH] net: Set the actual ethaddr in register_preset_mac_address()

2015-06-09 Thread Wadim Egorov
Hello Sascha, On 10.06.2015 06:32, Sascha Hauer wrote: Hi Wadim, On Tue, Jun 09, 2015 at 09:04:25AM +0200, Wadim Egorov wrote: Set the ethaddr for the current edev. Signed-off-by: Wadim Egorov --- net/eth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/eth.c b/net/eth.c index

[PATCH] net: Set the actual ethaddr in register_preset_mac_address()

2015-06-09 Thread Wadim Egorov
Set the ethaddr for the current edev. Signed-off-by: Wadim Egorov --- net/eth.c | 1 + 1 file changed, 1 insertion(+) diff --git a/net/eth.c b/net/eth.c index 89bddba..03e0a2e 100644 --- a/net/eth.c +++ b/net/eth.c @@ -49,6 +49,7 @@ static void register_preset_mac_address(struct eth_device

[PATCH v3] image: am335x: Generate SPI MLO images

2015-06-09 Thread Wadim Egorov
Generate *.spi.img files for SPI loading on AM335x. Signed-off-by: Wadim Egorov --- v3: - Added %.mlo file dependency --- images/Makefile.am33xx | 28 1 file changed, 28 insertions(+) diff --git a/images/Makefile.am33xx b/images/Makefile.am33xx index

[PATCH] net: dhcp: Fix CONFIG_ENVIRONMENT_VARIABLES check

2015-06-05 Thread Wadim Egorov
Please squash this patch into [PATCH v3 2/3] net: dhcp: Split dhcp funcionality & add dhcp command Signed-off-by: Wadim Egorov --- net/dhcp.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/net/dhcp.c b/net/dhcp.c index eb4bb38..e1625ec 100644 --- a/net/dhcp.c +

Re: [PATCH v2] image: am335x: Generate SPI MLO images

2015-06-05 Thread Wadim Egorov
On 05.06.2015 08:39, Wadim Egorov wrote: Generate *.spi.img files for SPI loading on AM335x. Signed-off-by: Wadim Egorov --- Please ignore the first patch. That was a bad approach. I have two questions. 1. Does the af inventions GF board support SPI boot? If not, we can drop the spi

[PATCH v2] image: am335x: Generate SPI MLO images

2015-06-04 Thread Wadim Egorov
Generate *.spi.img files for SPI loading on AM335x. Signed-off-by: Wadim Egorov --- Please ignore the first patch. That was a bad approach. I have two questions. 1. Does the af inventions GF board support SPI boot? If not, we can drop the spi image generation. 2. Building the barebox with

Re: [PATCH] image: am335x: Generate SPI MLO images

2015-06-04 Thread Wadim Egorov
Hello Sascha, please drop this patch. I don't think this is the right way to add new image types for the AM335x. Regards, Wadim On 04.06.2015 11:06, Sascha Hauer wrote: On Tue, Jun 02, 2015 at 10:01:07AM +0200, Wadim Egorov wrote: Signed-off-by: Wadim Egorov --- images/Mak

[PATCH v3 1/3] bootsource: Add NET bootsource

2015-06-03 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- common/bootsource.c | 1 + include/bootsource.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/bootsource.c b/common/bootsource.c index 7f3d51f..707b079 100644 --- a/common/bootsource.c +++ b/common/bootsource.c @@ -35,6 +35,7 @@ static const char

[PATCH v3 2/3] net: dhcp: Split dhcp funcionality & add dhcp command

2015-06-03 Thread Wadim Egorov
. Signed-off-by: Wadim Egorov --- v3: - Moved DHCP_DEFAULT_RETRY define to dhcp.h - CMD_DHCP now selects NET_DHCP --- commands/Kconfig | 1 + commands/Makefile | 1 + commands/dhcp.c | 78 ++ include/dhcp.h| 25 + net/Kconfig

[PATCH v3 3/3] ARM: am33xx: Add network boot

2015-06-03 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- arch/arm/mach-omap/Kconfig | 9 +++ arch/arm/mach-omap/am33xx_generic.c | 3 +++ arch/arm/mach-omap/xload.c | 51 + 3 files changed, 63 insertions(+) diff --git a/arch/arm/mach-omap/Kconfig b/arch/arm

[PATCH] image: am335x: Generate SPI MLO images

2015-06-02 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- images/Makefile| 2 +- images/Makefile.am33xx | 6 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/images/Makefile b/images/Makefile index 587cb26..36c1a57 100644 --- a/images/Makefile +++ b/images/Makefile @@ -123,6 +123,6 @@ images

[RFC v2 2/3] net: dhcp: Split dhcp funcionality & add dhcp command

2015-05-26 Thread Wadim Egorov
. Signed-off-by: Wadim Egorov --- v2: - Added a memset in commands/dhcp.c to clear the dhcp_param variable Please apply this set. --- commands/Kconfig | 1 + commands/Makefile | 1 + commands/dhcp.c | 78 ++ include/dhcp.h| 23 net/Kconfig

[RFC v2 3/3] ARM: am33xx: Add network boot

2015-05-26 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- arch/arm/mach-omap/Kconfig | 9 +++ arch/arm/mach-omap/am33xx_generic.c | 3 +++ arch/arm/mach-omap/xload.c | 52 - 3 files changed, 63 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap

[RFC v2 1/3] bootsource: Add NET bootsource

2015-05-26 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- common/bootsource.c | 1 + include/bootsource.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/bootsource.c b/common/bootsource.c index 7f3d51f..707b079 100644 --- a/common/bootsource.c +++ b/common/bootsource.c @@ -35,6 +35,7 @@ static const char

[PATCH v2 1/2] ARM: dts: Add an am33xx include file for MLO size reduction

2015-05-26 Thread Wadim Egorov
AM335x's MLO size limit is 109K. The am33xx.dtsi file adds spare and never used nodes to the dtb. With this patch we add a file to remove the unused nodes and reduce the size of the dtb. Including this file will reduce the lzo packed MLO size about 6K. Signed-off-by: Wadim Egorov -

[PATCH v2 2/2] ARM: dts: Add am33xx-strip.dtsi to PHYTEC MLOs

2015-05-26 Thread Wadim Egorov
This patch will reduce the size of the MLO images. Signed-off-by: Wadim Egorov --- arch/arm/dts/am335x-phytec-phycard-som-mlo.dts | 1 + arch/arm/dts/am335x-phytec-phycore-som-mlo.dts | 1 + arch/arm/dts/am335x-phytec-phyflex-som-mlo.dts | 1 + 3 files changed, 3 insertions(+) diff --git a

[RFC 2/3] net: dhcp: Split dhcp funcionality & add dhcp command

2015-05-22 Thread Wadim Egorov
. Signed-off-by: Wadim Egorov --- commands/Kconfig | 1 + commands/Makefile | 1 + commands/dhcp.c | 77 + include/dhcp.h| 23 net/Kconfig | 4 ++ net/Makefile | 2 +- net/dhcp.c| 164

[RFC 3/3] ARM: am33xx: Add network boot

2015-05-22 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- arch/arm/mach-omap/Kconfig | 9 +++ arch/arm/mach-omap/am33xx_generic.c | 3 +++ arch/arm/mach-omap/xload.c | 52 - 3 files changed, 63 insertions(+), 1 deletion(-) diff --git a/arch/arm/mach-omap

[RFC 1/3] bootsource: Add NET bootsource

2015-05-22 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- common/bootsource.c | 1 + include/bootsource.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/bootsource.c b/common/bootsource.c index 7f3d51f..707b079 100644 --- a/common/bootsource.c +++ b/common/bootsource.c @@ -35,6 +35,7 @@ static const char

[PATCH 2/2] ARM: dts: Add strip-am33xx.dtsi to PHYTEC MLOs

2015-05-22 Thread Wadim Egorov
This patch will reduce the size of the MLO images. Signed-off-by: Wadim Egorov --- arch/arm/dts/am335x-phytec-phycard-som-mlo.dts | 1 + arch/arm/dts/am335x-phytec-phycore-som-mlo.dts | 1 + arch/arm/dts/am335x-phytec-phyflex-som-mlo.dts | 1 + 3 files changed, 3 insertions(+) diff --git a

[PATCH 1/2] ARM: dts: Add an am33xx include file for MLO size reduction

2015-05-22 Thread Wadim Egorov
AM335x's MLO size limit is 109K. The am33xx.dtsi file adds spare and never used nodes to the dtb. With this patch we add a file to remove the unused nodes and reduce the size of the dtb. Including this file will reduce the lzo packed MLO size about 8K. Signed-off-by: Wadim Egorov --- arc

[PATCH] ARM: am33xx: Fix SCRM compatible string to match new DT compatible string

2015-05-13 Thread Wadim Egorov
Commit 461f8cfc7ea78842824027181836ceff5c4c renamed the SCRM compatible string in am33xx.dtsi and breaks all am335x based boards. Rename the SCRM compatible string. Signed-off-by: Wadim Egorov --- arch/arm/mach-omap/am33xx_scrm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff

[PATCH] mci: core: Check return value of dev_add_param_bool

2015-03-18 Thread Wadim Egorov
: Wadim Egorov --- drivers/mci/mci-core.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/mci/mci-core.c b/drivers/mci/mci-core.c index 8221632..bd5cae2 100644 --- a/drivers/mci/mci-core.c +++ b/drivers/mci/mci-core.c @@ -1774,7 +1774,8 @@ int mci_register(struct

[PATCH: For next] boards: phytec-som-am335x: Add phycard-som support

2015-02-17 Thread Wadim Egorov
Add support for the phyCARD SOM. Signed-off-by: Wadim Egorov --- Documentation/boards/am335x/phytec-som.rst | 4 + arch/arm/boards/phytec-som-am335x/board.c | 6 + arch/arm/boards/phytec-som-am335x/lowlevel.c| 4 + arch/arm/boards/phytec-som-am335x/ram-timings.h | 23

[PATCH v4: For next 2/2] ARM: am33xx: Add support for reset reason detection

2015-02-12 Thread Wadim Egorov
Also activate in defconfig. Signed-off-by: Wadim Egorov --- v4: Calling am33xx_detect_reset_reason() from am33xx_init() is now possible. --- arch/arm/configs/am335x_defconfig| 1 + arch/arm/mach-omap/am33xx_generic.c | 36 arch/arm/mach

[PATCH v4: For next 1/2] reset_source: Add external reset

2015-02-12 Thread Wadim Egorov
Some SoCs have special device pins for external reset signals. Signed-off-by: Wadim Egorov --- common/reset_source.c | 1 + include/reset_source.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/reset_source.c b/common/reset_source.c index 946670b..ae2f9f3 100644 --- a/common

Re: [PATCH v3: For next 2/2] ARM: am33xx: Add support for reset reason detection

2015-02-12 Thread Wadim Egorov
On 12.02.2015 09:30, Sascha Hauer wrote: On Wed, Feb 11, 2015 at 10:57:50AM +0100, Wadim Egorov wrote: On 11.02.2015 08:39, Sascha Hauer wrote: On Tue, Feb 10, 2015 at 03:13:58PM +0100, Wadim Egorov wrote: Also activate in defconfig. Signed-off-by: Wadim Egorov + break

Re: [PATCH v3: For next 2/2] ARM: am33xx: Add support for reset reason detection

2015-02-11 Thread Wadim Egorov
On 11.02.2015 08:39, Sascha Hauer wrote: On Tue, Feb 10, 2015 at 03:13:58PM +0100, Wadim Egorov wrote: Also activate in defconfig. Signed-off-by: Wadim Egorov + break; + case (1 << 1): + reset_source_set(RESET_RST); + break; + c

[PATCH v3: For next 2/2] ARM: am33xx: Add support for reset reason detection

2015-02-10 Thread Wadim Egorov
Also activate in defconfig. Signed-off-by: Wadim Egorov --- v3: Remove init wrapper --- arch/arm/configs/am335x_defconfig| 1 + arch/arm/mach-omap/am33xx_generic.c | 39 arch/arm/mach-omap/include/mach/am33xx-silicon.h | 1 + 3 files

[PATCH v3: For next 1/2] reset_source: Add external reset

2015-02-10 Thread Wadim Egorov
Some SoCs have special device pins for external reset signals. Signed-off-by: Wadim Egorov --- common/reset_source.c | 1 + include/reset_source.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/reset_source.c b/common/reset_source.c index 946670b..ae2f9f3 100644 --- a/common

[PATCH v2: For next 1/2] reset_source: Add external reset

2015-02-10 Thread Wadim Egorov
Some SoCs have special device pins for external reset signals. Signed-off-by: Wadim Egorov --- common/reset_source.c | 1 + include/reset_source.h | 1 + 2 files changed, 2 insertions(+) diff --git a/common/reset_source.c b/common/reset_source.c index 946670b..ae2f9f3 100644 --- a/common

[PATCH v2: For next 2/2] ARM: am33xx: Add support for reset reason detection

2015-02-10 Thread Wadim Egorov
Also activate in defconfig. Signed-off-by: Wadim Egorov --- v2: Use the existing rest_source framework. --- arch/arm/configs/am335x_defconfig| 1 + arch/arm/mach-omap/am33xx_generic.c | 44 arch/arm/mach-omap/include/mach/am33xx-silicon.h

[PATCH: For next 1/2] ARM: phyFLEX-AM335x-SOM: Update NAND partition table

2015-02-10 Thread Wadim Egorov
From: Teresa Gámez We double the partition size for barebox-env and oftree to be more robust against bad block issues. Signed-off-by: Teresa Gámez Signed-off-by: Wadim Egorov --- arch/arm/dts/am335x-phytec-phyflex-som.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH: For next 2/2] ARM: phyCORE-AM335x-SOM: Update NAND partition table

2015-02-10 Thread Wadim Egorov
From: Teresa Gámez We double the partition size for barebox-env and oftree to be more robust against bad block issues. Signed-off-by: Teresa Gámez Signed-off-by: Wadim Egorov --- arch/arm/dts/am335x-phytec-phycore-som.dtsi | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff

[PATCH: For next 2/2] board: phytec-som-am335x: Print last occurred reset reason.

2015-02-09 Thread Wadim Egorov
Print the last occurred reset reason in MLO. Signed-off-by: Wadim Egorov --- arch/arm/boards/phytec-som-am335x/board.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/arch/arm/boards/phytec-som-am335x/board.c b/arch/arm/boards/phytec-som-am335x/board.c index d084898

[PATCH: For next 1/2] ARM: am33xx: Add a function to retrieve the reset reason

2015-02-09 Thread Wadim Egorov
This patch adds a function to retrieve the last occurred reset reason on the AM335x. Signed-off-by: Wadim Egorov --- arch/arm/mach-omap/am33xx_generic.c | 41 arch/arm/mach-omap/include/mach/am33xx-generic.h | 13 arch/arm/mach-omap/include/mach

[PATCH 4/5] Docs: Add phytec-som-am335x documentation

2015-02-04 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- Documentation/boards/am335x.rst| 22 ++--- Documentation/boards/am335x/phytec-som.rst | 31 ++ 2 files changed, 50 insertions(+), 3 deletions(-) create mode 100644 Documentation/boards/am335x/phytec-som.rst

[PATCH 1/5] ARM: am335x: phyFLEX-AM335x: Split DT and add MLO DT

2015-02-04 Thread Wadim Egorov
To support different module variants, this patch splits the phyFLEX DT in dts and dtsi. And we are also adding a DT for the MLO, which has all bootable devices disabled. The bootsource is checked in the board file and only the needed device is enabled and registered. Signed-off-by: Wadim Egorov

[PATCH 5/5] boards: Drop phytec-phycore-am335x, phytec-phyflex-am335x

2015-02-04 Thread Wadim Egorov
Both boards are now merged in the phycore-som-am335x board. Signed-off-by: Wadim Egorov --- arch/arm/boards/Makefile | 2 - arch/arm/boards/phytec-phycore-am335x/Makefile | 3 - arch/arm/boards/phytec-phycore-am335x/board.c | 91 - .../defaultenv

[PATCH 3/5] boards: Add phytec-som-am335x

2015-02-04 Thread Wadim Egorov
E, phyFLEX. Signed-off-by: Wadim Egorov --- arch/arm/boards/Makefile | 1 + arch/arm/boards/phytec-som-am335x/Makefile | 3 + arch/arm/boards/phytec-som-am335x/board.c | 104 ++ .../defaultenv-physom-am335x/boot/mmc

[PATCH 2/5] ARM: dts: Add a new compatible type for am335x phytec SOMs

2015-02-04 Thread Wadim Egorov
Added a new compatible type for am335x phytec SOMs "phytec,am335x-som" Signed-off-by: Wadim Egorov --- arch/arm/dts/am335x-phytec-phycore-som-mlo.dts | 2 +- arch/arm/dts/am335x-phytec-phycore-som.dts | 2 +- arch/arm/dts/am335x-phytec-phyflex-som-mlo.dts | 2 +- arch/arm/

[PATCH:barebox-mainline] Fix spelling: pathes -> paths

2015-01-27 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- Documentation/boards/efi.rst | 14 +++--- Documentation/user/booting-linux.rst | 4 ++-- Documentation/user/variables.rst | 2 +- commands/Kconfig | 2 +- commands/of_property.c | 2 +- common/Kconfig

Re: [PATCH 1/2] ARM: dts: am335x-phytec-phycore-som: Add USB host support

2015-01-19 Thread Wadim Egorov
Yes, I have tested this on Linux (3.12). On 20.01.2015 08:00, Sascha Hauer wrote: On Mon, Jan 19, 2015 at 01:34:37PM +0100, Wadim Egorov wrote: Add USB host support for all phycore-som based boards. Signed-off-by: Wadim Egorov --- arch/arm/dts/am335x-phytec-phycore-som.dtsi | 30

[PATCH 2/2] ARM: dts: am335x-phytec-phyflex: Add USB host support

2015-01-19 Thread Wadim Egorov
Add USB host support for the phyflex-som. Signed-off-by: Wadim Egorov --- arch/arm/dts/am335x-phytec-phyflex.dts | 31 +++ 1 file changed, 31 insertions(+) diff --git a/arch/arm/dts/am335x-phytec-phyflex.dts b/arch/arm/dts/am335x-phytec-phyflex.dts index 6c49567

[PATCH 1/2] ARM: dts: am335x-phytec-phycore-som: Add USB host support

2015-01-19 Thread Wadim Egorov
Add USB host support for all phycore-som based boards. Signed-off-by: Wadim Egorov --- arch/arm/dts/am335x-phytec-phycore-som.dtsi | 30 + 1 file changed, 30 insertions(+) diff --git a/arch/arm/dts/am335x-phytec-phycore-som.dtsi b/arch/arm/dts/am335x-phytec-phycore

[PATCH] ARM: dts: phyCORE-AM335x: Remove unused pin in nandflash pinmuxing

2014-11-26 Thread Wadim Egorov
Pin 0x74 (gpmc_wpn.gpio0_30) is not used on the phyCORE SOM. Signed-off-by: Wadim Egorov --- arch/arm/dts/am335x-phytec-phycore-som.dtsi |1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/arch/arm/dts/am335x-phytec-phycore-som.dtsi b/arch/arm/dts/am335x-phytec-phycore

[For next PATCH] ARM: dts: phyFLEX: Add SKEW clock delays to emac0 node

2014-11-03 Thread Wadim Egorov
The KSZ9031 gigabit phy on the PBA-B-01 carrier board needs special settings for the RGMII skew control register. Signed-off-by: Wadim Egorov --- arch/arm/dts/am335x-phytec-phyflex.dts | 11 +++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/arch/arm/dts/am335x-phytec

[For next PATCH v2 1/2] arm: am33xx: Add rmii2_crs_dv mux selection in SMA2 register

2014-11-03 Thread Wadim Egorov
f pin multiplexing is selected with bit zero of the SMA2 register." See AM335x Sitara Processors Manual. Signed-off-by: Wadim Egorov --- v2: Added silicon revision check. SMA2 register does not exist in revision 1.0 arch/arm/mach-omap/am33xx_generic.c | 17 + arch/arm

[For next PATCH v2 2/2] phyFLEX: Select RMII2_CRS_DV on GPMC_A9 pin

2014-11-03 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- arch/arm/boards/phytec-phyflex-am335x/board.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/boards/phytec-phyflex-am335x/board.c b/arch/arm/boards/phytec-phyflex-am335x/board.c index 12fad8f..cf7dd2e 100644 --- a/arch/arm

[For next PATCH 1/2] arm: am33xx: Add rmii2_crs_dv mux selection in SMA2 register

2014-10-30 Thread Wadim Egorov
f pin multiplexing is selected with bit zero of the SMA2 register." See AM335x Sitara Processors Manual. Signed-off-by: Wadim Egorov --- arch/arm/mach-omap/am33xx_generic.c | 12 arch/arm/mach-omap/include/mach/am33xx-generic.h |1 + 2 files changed, 13 insertions(+), 0

[For next PATCH 2/2] phyFLEX: Select RMII2_CRS_DV on GPMC_A9 pin

2014-10-30 Thread Wadim Egorov
Signed-off-by: Wadim Egorov --- arch/arm/boards/phytec-phyflex-am335x/board.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/arch/arm/boards/phytec-phyflex-am335x/board.c b/arch/arm/boards/phytec-phyflex-am335x/board.c index 12fad8f..cf7dd2e 100644 --- a/arch/arm

[PATCH 1/2] net: phy: micrel: Add OF conf. support for ksz9031

2014-10-28 Thread Wadim Egorov
Adds support for ksz9031 PAD skew configuration over devicetree. Based on a patch from the linux kernel. Author: Hubert Chaumette Original commit: 6e4b82730c7525504fc485b370c7f09e594e2e96 Signed-off-by: Wadim Egorov --- drivers/net/phy/micrel.c | 86

[PATCH 2/2] net: cpsw: Set phy device_node pointer in probe

2014-10-28 Thread Wadim Egorov
: Wadim Egorov --- drivers/net/cpsw.c | 13 + 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/drivers/net/cpsw.c b/drivers/net/cpsw.c index 167b2dd..a0621f5 100644 --- a/drivers/net/cpsw.c +++ b/drivers/net/cpsw.c @@ -1200,6 +1200,19 @@ int cpsw_probe(struct device_d

[PATCH] barebox: common: Add missing filetype description

2014-07-23 Thread Wadim Egorov
Added missing filetype description for UBIFS. Signed-off-by: Wadim Egorov --- common/filetype.c |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/common/filetype.c b/common/filetype.c index a04fbdd..86e544a 100644 --- a/common/filetype.c +++ b/common/filetype.c @@ -51,6

[PATCH v3 3/4] ARM: omap: barebox update nand xloadslots handler

2014-05-16 Thread Wadim Egorov
- Added barebox nand xloadslots update handler - This handler updates all given xload slots in nand Signed-off-by: Wadim Egorov --- v3: - added static inline to bbu register function --- arch/arm/mach-omap/Kconfig | 10 ++ arch/arm/mach-omap/Makefile

[PATCH v3 4/4] phycore-am335x: Added bbu nand xloadslots handler

2014-05-16 Thread Wadim Egorov
Added bbu nand xloadslots handler to phycore-am335x. Signed-off-by: Wadim Egorov --- v3: - xloadslots array is now static - renamed handler: xloadslots -> MLO.nand --- arch/arm/boards/phytec-phycore-am335x/board.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) d

[PATCH v2 3/4] ARM: omap: barebox update nand xloadslots handler

2014-05-15 Thread Wadim Egorov
- Added barebox nand xloadslots update handler - This handler updates all given xload slots in nand Signed-off-by: Wadim Egorov --- v2: - fixed xloadslots updater description in mach-omap/Kconfig - changed method to pass device files - added nand_bbu_handler struct - added write_image

[PATCH v2 4/4] phycore-am335x: Added bbu nand xloadslots handler

2014-05-15 Thread Wadim Egorov
Added bbu nand xloadslots handler to phycore-am335x. Signed-off-by: Wadim Egorov --- v2: - changed method to pass device files --- arch/arm/boards/phytec-phycore-am335x/board.c |9 + 1 files changed, 9 insertions(+), 0 deletions(-) diff --git a/arch/arm/boards/phytec-phycore

[PATCH 3/4] ARM: omap: barebox update nand xloadslots handler

2014-05-12 Thread Wadim Egorov
- Added barebox nand xloadslots update handler - This handler updates all given xload slots in nand Signed-off-by: Wadim Egorov --- arch/arm/mach-omap/Kconfig |9 ++ arch/arm/mach-omap/Makefile |1 + arch/arm/mach-omap

[PATCH 1/4] PCM051: Update RAM timings

2014-05-12 Thread Wadim Egorov
From: Teresa Gámez Updated timings for new MT41J256M16HA15EIT RAM. Timings are backward compatible to the MT41J256M8HX15E RAMs Signed-off-by: Teresa Gámez Signed-off-by: Wadim Egorov --- arch/arm/boards/phytec-phycore-am335x/lowlevel.c | 28 ++--- 1 files changed, 13

[PATCH 2/4] barebox: common: added new filetypes

2014-05-12 Thread Wadim Egorov
- Added omap CH image header recognition * filetype_ch_image * filetype_ch_image_be Signed-off-by: Wadim Egorov --- common/filetype.c | 12 include/filetype.h |2 ++ 2 files changed, 14 insertions(+), 0 deletions(-) diff --git a/common/filetype.c b/common/filetype.c

[PATCH 4/4] phycore-am335x: Added bbu nand xloadslots handler

2014-05-12 Thread Wadim Egorov
Added bbu nand xloadslots handler to phycore-am335x. Signed-off-by: Wadim Egorov --- arch/arm/boards/phytec-phycore-am335x/board.c |5 + 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/arch/arm/boards/phytec-phycore-am335x/board.c b/arch/arm/boards/phytec-phycore-am335x

  1   2   >