Re: [PATCH 0/2] readline_simple: return -1 if getc fails

2017-08-09 Thread Antony Pavlov
On Wed, 9 Aug 2017 14:58:53 -0400 Gaël PORTAY wrote: > Hi, > > On Wed, Aug 09, 2017 at 08:05:57AM +0200, Oleksij Rempel wrote: > > Am 09.08.2017 um 06:13 schrieb Gaël PORTAY: > > > Dear maintainers, > > > > > > I came accross this issue when I was trying to add support for a new MIPS > > > boar

Re: [PATCH 0/2] readline_simple: return -1 if getc fails

2017-08-09 Thread Oleksij Rempel
Am 09.08.2017 um 20:58 schrieb Gaël PORTAY: > Hi, > > On Wed, Aug 09, 2017 at 08:05:57AM +0200, Oleksij Rempel wrote: >> Am 09.08.2017 um 06:13 schrieb Gaël PORTAY: >>> Dear maintainers, >>> >>> I came accross this issue when I was trying to add support for a new MIPS >>> board. >> >> Just out of

Re: [PATCH 0/2] readline_simple: return -1 if getc fails

2017-08-09 Thread Gaël PORTAY
Hi, On Wed, Aug 09, 2017 at 08:05:57AM +0200, Oleksij Rempel wrote: > Am 09.08.2017 um 06:13 schrieb Gaël PORTAY: > > Dear maintainers, > > > > I came accross this issue when I was trying to add support for a new MIPS > > board. > > Just out of curiosity, what MIPS board are you working on? If i

[PATCH v1 1/4] MIPS: tplink-mr3020: pbl: move WMAC init after flash addr test

2017-08-09 Thread Oleksij Rempel
if this function is called in the RAM, we won't be able to continue start sequence. It brakes boot over JTAG use case. Signed-off-by: Oleksij Rempel Cc: Yegor Yefremov --- arch/mips/boards/tplink-mr3020/include/board/board_pbl_start.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) d

[PATCH v1 2/4] MIPS: tplink-mr3020: pbl: move hornet_mips24k_cp0_setup after flash addr test

2017-08-09 Thread Oleksij Rempel
this is needed to start zbarebox.bin from running barebox. Signed-off-by: Oleksij Rempel --- arch/mips/boards/tplink-mr3020/include/board/board_pbl_start.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/mips/boards/tplink-mr3020/include/board/board_pbl_start.h b/ar

[PATCH v1 4/4] MIPS: tplink-mr3020.dts: add partition table

2017-08-09 Thread Oleksij Rempel
We need partition table for barebox update handler and for barebox environment Signed-off-by: Oleksij Rempel --- arch/mips/dts/tplink-mr3020.dts | 19 +++ 1 file changed, 19 insertions(+) diff --git a/arch/mips/dts/tplink-mr3020.dts b/arch/mips/dts/tplink-mr3020.dts index 1e843e

[PATCH v1 3/4] MIPS: tplink-mr3020_defconfig: enable more options

2017-08-09 Thread Oleksij Rempel
Signed-off-by: Oleksij Rempel --- arch/mips/configs/tplink-mr3020_defconfig | 40 +-- 1 file changed, 38 insertions(+), 2 deletions(-) diff --git a/arch/mips/configs/tplink-mr3020_defconfig b/arch/mips/configs/tplink-mr3020_defconfig index 93fb10ddd..4193bd628 100644

[PATCH v1] MIPS: ath79: add barebox update handler

2017-08-09 Thread Oleksij Rempel
Most of ar93xx SoCs seem to work only with spi. spifash handler should be enough for now. Signed-off-by: Oleksij Rempel --- arch/mips/mach-ath79/Makefile | 1 + arch/mips/mach-ath79/bbu.c| 28 2 files changed, 29 insertions(+) create mode 100644 arch/mips/mach-

[PATCH v1] filetype: fix file type detection for Barebox MIPS

2017-08-09 Thread Oleksij Rempel
Since there is no "0/" after "barebox" in the file header, comparison won't stop on the right place. Fix regression introduced by patch: |commit 03939c0dfbf27d99e81d85e1bc0340fbee083d74 |Author: Jean-Christophe PLAGNIOL-VILLARD |Date: Tue Jan 22 15:40:36 2013 +0100 | | filetype: add is_barebox_

[PATCH v1 2/3] MIPS: ath79: add initial QCA AR9344 SoC support

2017-08-09 Thread Oleksij Rempel
According to the documentation: "The AR9344 is a highly integrated and feature-rich IEEE 802.11n 2x2 2.4/5 GHz System-on-a-Chip (SoC) for advanced WLAN platforms. It includes a MIPS 74Kc processor, PCI Express 1.1 Root Complex and Endpoint interfaces, five port IEEE 802.3 Fast Ethernet Switch with

[PATCH v1 0/3] provide basic support for TP-Link WDR4300

2017-08-09 Thread Oleksij Rempel
this set also including support of QCA AR9344 too. Oleksij Rempel (3): MIPS: ath79: provide CONFIG_SOC_QCA_AR9331 option MIPS: ath79: add initial QCA AR9344 SoC support MIPS: ath79: add TP-Link WDR4300 board support arch/mips/Makefile | 1 + arch/mips/boar

[PATCH v1 1/3] MIPS: ath79: provide CONFIG_SOC_QCA_AR9331 option

2017-08-09 Thread Oleksij Rempel
QCA AR9331 and QCA AR9344 have some similar part but different uart engines. We need this flag to provide common debug_ll support. Signed-off-by: Oleksij Rempel --- arch/mips/mach-ath79/Kconfig | 5 + 1 file changed, 5 insertions(+) diff --git a/arch/mips/mach-ath79/Kconfig b/arch/mips/mach

[PATCH v1 3/3] MIPS: ath79: add TP-Link WDR4300 board support

2017-08-09 Thread Oleksij Rempel
This provides low level initialization of pll and ddr2. Resulting binary should work from SRAM, DDR2 and SPI flash. If started from DDR2 RAM level initialization will skipped. Signed-off-by: Oleksij Rempel --- arch/mips/Makefile | 1 + arch/mips/boards/tplink-wdr

Re: [PATCH v2 01/13] MIPS: ath79: provide CONFIG_SOC_QCA_AR9331 option

2017-08-09 Thread Oleksij Rempel
I assume it was bad idea to push this patches all together. will split it and send in separate chunks. Am 07.08.2017 um 16:39 schrieb Oleksij Rempel: > QCA AR9331 and QCA AR9344 have some similar part but different uart engines. > We need this flag to provide common debug_ll support. > > Signed-