Re: [PATCH v5 0/9] Raspberry Pi miniuart support

2018-12-18 Thread Rouven Czerwinski
On Tue, 2018-12-18 at 15:26 +0100, Peter Korsgaard wrote: > > > > > > "Sascha" == Sascha Hauer writes: > > > On Tue, Dec 18, 2018 at 11:47:35AM +0100, Rouven Czerwinski wrote: > >> This patch series adds support for the raspberry pi miniuart > (also called > >> aux-uart) to barebox. > >>

Re: [PATCH v5 0/9] Raspberry Pi miniuart support

2018-12-18 Thread Peter Korsgaard
> "Sascha" == Sascha Hauer writes: > On Tue, Dec 18, 2018 at 11:47:35AM +0100, Rouven Czerwinski wrote: >> This patch series adds support for the raspberry pi miniuart (also called >> aux-uart) to barebox. >> With this series the miniuart overlay is no longer necessary to start >>

Re: [PATCH] commands: nand-bitflip: Add documentation for option '-c'

2018-12-18 Thread Sascha Hauer
On Tue, Dec 18, 2018 at 01:40:03PM +0100, Teresa Remmet wrote: > Signed-off-by: Teresa Remmet > --- > commands/nand-bitflip.c | 1 + > 1 file changed, 1 insertion(+) > Applied, thanks Sascha > diff --git a/commands/nand-bitflip.c b/commands/nand-bitflip.c > index a8a97c153aa0..cfde2f4040e7

Re: [PATCH v5 0/9] Raspberry Pi miniuart support

2018-12-18 Thread Sascha Hauer
On Tue, Dec 18, 2018 at 11:47:35AM +0100, Rouven Czerwinski wrote: > This patch series adds support for the raspberry pi miniuart (also called > aux-uart) to barebox. > With this series the miniuart overlay is no longer necessary to start barebox > on > Raspberry Pi 3. > > v5: > - Add defines

[PATCH 1/2] recursive_action: add ACTION_SORT flag

2018-12-18 Thread Baeuerle, Florian
Add a flag to sort directory entries before recursing into them. Since this part of lib/ is used inside barebox as well as in scripts/bareboxenv.c, we cannot easily use stringlists from lib/, which would have made the code a bit nicer. Further, add poison.h from kernel 4.5-rc1, which was the

[PATCH 2/2] envfs: new flag for sorting env before saving

2018-12-18 Thread Baeuerle, Florian
The resulting environment was dependend of the build machines' filesystem, i.e. the order in which readdir returns dirents depends on the filesystem implementation. Use the new flag in scripts/bareboxenv.c for generating a reproducible built-in environment. Signed-off-by: Florian Bäuerle ---

[PATCH] commands: nand-bitflip: Add documentation for option '-c'

2018-12-18 Thread Teresa Remmet
Signed-off-by: Teresa Remmet --- commands/nand-bitflip.c | 1 + 1 file changed, 1 insertion(+) diff --git a/commands/nand-bitflip.c b/commands/nand-bitflip.c index a8a97c153aa0..cfde2f4040e7 100644 --- a/commands/nand-bitflip.c +++ b/commands/nand-bitflip.c @@ -107,6 +107,7 @@

Re: [PATCH v1 1/3] MIPS: migrate all files to SPDX

2018-12-18 Thread Robert Schwebel
On Tue, Dec 18, 2018 at 12:32:50PM +0300, Antony Pavlov wrote: > > Beside, go you agree to upgrade files copyrighted by you as > > GPL-2.0-or-later? > > Not now. We use many codes from linux kernel (mostly GPL-2.0-only). > Can we face the problems of porting linux kernel code to barebox? > > I

[PATCH v5 9/9] ARM: rpi: use defines for uart bases

2018-12-18 Thread Rouven Czerwinski
Previously the clkdev_add_phybase was called on magic register values, add defines which clarify the device for which the phybase clkdev is created. Signed-off-by: Rouven Czerwinski --- arch/arm/boards/raspberry-pi/rpi-common.c | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-)

[PATCH v5 6/9] ARM: rpi: add NS16550 support

2018-12-18 Thread Rouven Czerwinski
Since the 16550 driver now supports the RPI3 miniuart, enable it in the default config. Signed-off-by: Rouven Czerwinski --- arch/arm/configs/rpi_defconfig | 1 + drivers/serial/serial_ns16550.c | 6 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git

[PATCH v5 5/9] serial_ns16550: add raspberry pi compatible and init

2018-12-18 Thread Rouven Czerwinski
Add the compatible for the Raspberry Pi AUX UART and an init function which enables it via the aux register and configures the correct shift value. Signed-off-by: Rouven Czerwinski --- drivers/serial/serial_ns16550.c | 25 + 1 file changed, 25 insertions(+) diff --git

[PATCH v5 3/9] ARM: rpi: retrieve miniuart clock from firmware

2018-12-18 Thread Rouven Czerwinski
The miniuart uses the core clock as the clock source. This clock is fixed by the firmware to 250Mhz if enable_uart=1 is set in the config.txt file. However a user could still choose to overclock the core frequency, which would result in wrong baudrates computed by barebox. Retrieve the core clock

[PATCH v5 2/9] ARM: rpi: move clks into board specific rpi-common

2018-12-18 Thread Rouven Czerwinski
We don't know if the firmware running on the raspberry pi is the same firmware which is running on all bcm283x devices. Therefore move the console clock initialization into the rpi-common.c board file. A future commit will use this function to retrieve the miniuart clock from the raspberry pi

[PATCH v5 7/9] ARM: rpi: choose miniuart as stdout

2018-12-18 Thread Rouven Czerwinski
Since we now support the miniuart, enable it as the default stdout port. With this change the device tree overlay to switch the miniuart to bluetooth is no longer necessary. Signed-off-by: Rouven Czerwinski --- arch/arm/dts/bcm2837-rpi-3.dts | 7 +-- 1 file changed, 1 insertion(+), 6

[PATCH v5 0/9] Raspberry Pi miniuart support

2018-12-18 Thread Rouven Czerwinski
This patch series adds support for the raspberry pi miniuart (also called aux-uart) to barebox. With this series the miniuart overlay is no longer necessary to start barebox on Raspberry Pi 3. v5: - Add defines for register and base values from Sascha Hauer and Roland Hieber v4: - Fix

[PATCH v5 8/9] doc: bcm283x: remove miniuart overlay instruction

2018-12-18 Thread Rouven Czerwinski
Since we now use the miniuart on the raspberry pi 3, the miniuart overlay is no longer needed. Signed-off-by: Rouven Czerwinski --- Documentation/boards/bcm2835.rst | 1 - 1 file changed, 1 deletion(-) diff --git a/Documentation/boards/bcm2835.rst b/Documentation/boards/bcm2835.rst index

[PATCH v5 4/9] serial_ns16550: handle default reg-io-width

2018-12-18 Thread Rouven Czerwinski
According to the device tree bindings for 8250, width is an optional property. Default to 1 which is the same default value as used by the kernel. Before this change the driver would not work for device trees which do not include the optional binding. Signed-off-by: Rouven Czerwinski ---

[PATCH v5 1/9] ARM: rpi: fix typo in rpi-common.c

2018-12-18 Thread Rouven Czerwinski
Signed-off-by: Rouven Czerwinski --- arch/arm/boards/raspberry-pi/rpi-common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/boards/raspberry-pi/rpi-common.c b/arch/arm/boards/raspberry-pi/rpi-common.c index b7ce0ad..9f0531f 100644 ---

Re: [PATCH v1 1/3] MIPS: migrate all files to SPDX

2018-12-18 Thread Antony Pavlov
On Tue, 18 Dec 2018 09:29:20 +0100 Oleksij Rempel wrote: > Hi, > > On 18.12.18 08:32, Antony Pavlov wrote: > > On Sat, 15 Dec 2018 11:02:33 +0100 > > Oleksij Rempel wrote: > > > >> Signed-off-by: Oleksij Rempel > >> --- > >> arch/mips/boards/8devices-lima/lowlevel.S | 14

Re: [PATCH v4 2/7] ARM: rpi: retrieve miniuart clock from firmware

2018-12-18 Thread Sascha Hauer
On Tue, Dec 18, 2018 at 09:39:19AM +0100, Rouven Czerwinski wrote: > On Tue, 2018-12-18 at 08:21 +0100, Sascha Hauer wrote: > > On Mon, Dec 17, 2018 at 09:10:40AM +0100, Rouven Czerwinski wrote: > > > The miniuart uses the core clock as the clock source. This clock is > > > fixed by the > > >

Re: [PATCH v4 2/7] ARM: rpi: retrieve miniuart clock from firmware

2018-12-18 Thread Rouven Czerwinski
On Tue, 2018-12-18 at 08:21 +0100, Sascha Hauer wrote: > On Mon, Dec 17, 2018 at 09:10:40AM +0100, Rouven Czerwinski wrote: > > The miniuart uses the core clock as the clock source. This clock is > > fixed by the > > firmware to 250Mhz if enable_uart=1 is set in the config.txt file. > > However a

Re: [PATCH v3 03/10] RISC-V: add low-level debug macros for ns16550

2018-12-18 Thread Oleksij Rempel
On 18.12.18 08:19, Antony Pavlov wrote: This patch adds macros for ns16550 port initialization and single char output. The macros can be used in MIPS asm pbl code. Signed-off-by: Antony Pavlov --- arch/riscv/include/asm/debug_ll_ns16550.h | 182 ++ 1 file changed, 182

Re: [PATCH v1 1/3] MIPS: migrate all files to SPDX

2018-12-18 Thread Oleksij Rempel
Hi, On 18.12.18 08:32, Antony Pavlov wrote: On Sat, 15 Dec 2018 11:02:33 +0100 Oleksij Rempel wrote: Signed-off-by: Oleksij Rempel --- arch/mips/boards/8devices-lima/lowlevel.S | 14 +- arch/mips/boards/black-swift/lowlevel.S | 14 +-