MIPS: improve Ingenic JZ4755 device tree support
Subsystems (2)
v2 cover MIPS: improve Ingenic JZ4755 device tree support
This patcheseries moves Ingenic JZ4755 UART initialization into device tree and makes JZ4755 device tree organization more clear.
This patchseries is a part of work on Ingenic chips support and prepares MIPS board support switch to device tree. Next patchseries will add device tree Ingenic gpio, clk and pinctls support.
Changes since v1:
* use "make FCR setup value part of struct ns16550_priv"
instead of "make it possible to get reg_write() from devtype";
* add a trivial "fix whitespaces" patch.
Antony Pavlov (8):
MIPS: mach-xburst: fix DEBUG_LL=n build error
MIPS: dts: rzx50: move jz4755 description to the separate file
serial: ns16550: fix whitespaces
serial: ns16550: make FCR setup value part of struct ns16550_priv
serial: ns16550: add compatible entry for "ingenic,jz4740-uart"
MIPS: rzx50: drop console initialization in board code
MIPS: mach-xburst: drop serial.c
MIPS: boards: rename rzx50 -> ritmix-rzx50
Documentation/boards.dox | 2 +- arch/mips/Makefile | 2 +- arch/mips/boards/ritmix-rzx50/Makefile | 1 + .../ritmix-rzx50/include/board/board_pbl_start.h | 43 ++++++++++++++++ .../boards/ritmix-rzx50/include/board/debug_ll.h | 23 +++++++++ arch/mips/boards/ritmix-rzx50/ritmix-rzx50.dox | 46 +++++++++++++++++ arch/mips/boards/ritmix-rzx50/serial.c | 27 ++++++++++ arch/mips/boards/rzx50/Makefile | 1 - .../boards/rzx50/include/board/board_pbl_start.h | 43 ---------------- arch/mips/boards/rzx50/include/board/debug_ll.h | 23 --------- arch/mips/boards/rzx50/rzx50.dox | 46 ----------------- arch/mips/boards/rzx50/serial.c | 32 ------------ arch/mips/configs/ritmix-rzx50_defconfig | 39 ++++++++++++++ arch/mips/configs/rzx50_defconfig | 39 -------------- arch/mips/dts/jz4755.dtsi | 35 +++++++++++++ arch/mips/dts/rzx50.dts | 8 ++- arch/mips/include/asm/debug_ll_ns16550.h | 2 + arch/mips/mach-xburst/Makefile | 1 - arch/mips/mach-xburst/mach-xburst.dox | 2 +- arch/mips/mach-xburst/serial.c | 60 ---------------------- drivers/serial/serial_ns16550.c | 35 ++++++++++--- 21 files changed, 254 insertions(+), 256 deletions(-) create mode 100644 arch/mips/boards/ritmix-rzx50/Makefile create mode 100644 arch/mips/boards/ritmix-rzx50/include/board/board_pbl_start.h create mode 100644 arch/mips/boards/ritmix-rzx50/include/board/debug_ll.h create mode 100644 arch/mips/boards/ritmix-rzx50/ritmix-rzx50.dox create mode 100644 arch/mips/boards/ritmix-rzx50/serial.c delete mode 100644 arch/mips/boards/rzx50/Makefile delete mode 100644 arch/mips/boards/rzx50/include/board/board_pbl_start.h delete mode 100644 arch/mips/boards/rzx50/include/board/debug_ll.h delete mode 100644 arch/mips/boards/rzx50/rzx50.dox delete mode 100644 arch/mips/boards/rzx50/serial.c create mode 100644 arch/mips/configs/ritmix-rzx50_defconfig delete mode 100644 arch/mips/configs/rzx50_defconfig create mode 100644 arch/mips/dts/jz4755.dtsi delete mode 100644 arch/mips/mach-xburst/serial.c
Signature · 7 lines
1.9.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v2 1/8 MIPS: mach-xburst: fix DEBUG_LL=n build error
Here is my error log:
CC common/startup.o
In file included from arch/mips/mach-xburst/include/mach/debug_ll.h:25,
from include/debug_ll.h:31,
from common/startup.c:36:arch/mips/include/asm/debug_ll_ns16550.h: In function 'PUTC_LL':arch/mips/include/asm/debug_ll_ns16550.h:62: error: 'DEBUG_LL_UART_ADDR' undeclared (first use in this function) arch/mips/include/asm/debug_ll_ns16550.h:62: error: (Each undeclared identifier is reported only once arch/mips/include/asm/debug_ll_ns16550.h:62: error: for each function it appears in.)
make[1]: *** [common/startup.o] Error 1
--- arch/mips/include/asm/debug_ll_ns16550.h | 2 ++ 1 file changed, 2 insertions(+)
arch/mips/include/asm/debug_ll_ns16550.h +2 -0
@@ -59,9 +59,11 @@static __inline__void PUTC_LL (char ch) { +#ifdef CONFIG_DEBUG_LL while (!(__raw_readb ((u8 *)DEBUG_LL_UART_ADDR +UART_LSR ) &UART_LSR_THRE )) ;__raw_writeb (ch, (u8 *)DEBUG_LL_UART_ADDR +UART_THR ); +#endif /* CONFIG_DEBUG_LL */ }#else /* __ASSEMBLY__ */ /*
Signature · 7 lines
1.9.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v2 2/8 MIPS: dts: rzx50: move jz4755 description to the separate file
In reply to Antony Pavlov--- arch/mips/dts/jz4755.dtsi | 35 +++++++++++++++++++++++++++++++++++ arch/mips/dts/rzx50.dts | 8 +++++++- 2 files changed, 42 insertions(+), 1 deletion(-)
arch/mips/dts/jz4755.dtsi new file +35 -0
@@ -0,0 +1,35 @@ +#include "skeleton.dtsi" + +/ { + soc { + compatible = "simple-bus"; + model = "Ingenic JZ4755"; + #address-cells = <1>; + #size-cells = <1>; + ranges; + + serial0: serial@b0030000 { + compatible = "ingenic,jz4740-uart"; + reg = <0xb0030000 0x20>; + reg-shift = <2>; + clock-frequency = <12000000>; + status = "disabled"; + }; + + serial1: serial@b0031000 { + compatible = "ingenic,jz4740-uart"; + reg = <0xb0031000 0x20>; + reg-shift = <2>; + clock-frequency = <12000000>; + status = "disabled"; + }; + + serial2: serial@b0032000 { + compatible = "ingenic,jz4740-uart"; + reg = <0xb0032000 0x20>; + reg-shift = <2>; + clock-frequency = <12000000>; + status = "disabled"; + }; + }; +};
arch/mips/dts/rzx50.dts +7 -1
@@ -1,6 +1,6 @@ /dts-v1/; -/include/ "skeleton.dtsi" +#include "jz4755.dtsi" / { model = "Ritmix RZX-50";
@@ -9,4 +9,10 @@ memory { reg = <0x00000000 0x4000000>; }; + + soc { + serial1: serial@b0031000 { + status = "okay"; + }; + }; };
Signature · 7 lines
1.9.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v2 3/8 serial: ns16550: fix whitespaces
In reply to Antony Pavlov--- drivers/serial/serial_ns16550.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/serial/serial_ns16550.c +1 -1
@@ -192,7 +192,7 @@ static void ns16550_omap_init_port(struct console_device *cdev)ns16550_serial_init_port (cdev);ns16550_write (cdev,0x07 , omap_mdr1);/* Disable */ -ns16550_write (cdev,0x00 , omap_mdr1); +ns16550_write (cdev,0x00 , omap_mdr1); }/*********** Exposed Functions **********************************/
Signature · 7 lines
1.9.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v2 4/8 serial: ns16550: make FCR setup value part of struct ns16550_priv
In reply to Antony Pavlov--- drivers/serial/serial_ns16550.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)
drivers/serial/serial_ns16550.c +7 -6
@@ -48,6 +48,7 @@ struct ns16550_priv {struct NS16550_plat plat;int access_width;struct clk *clk; +uint32_t fcrval; };static inline struct ns16550_priv *to_ns16550_priv (struct console_device *cdev)
@@ -157,18 +158,13 @@ static int ns16550_setbaudrate(struct console_device *cdev, int baud_rate) {unsigned int baud_divisor =ns16550_calc_divisor (cdev, baud_rate);struct ns16550_priv *priv =to_ns16550_priv (cdev); -struct NS16550_plat *plat = &priv->plat;ns16550_write (cdev,LCR_BKSE , lcr);ns16550_write (cdev, baud_divisor &0xff , dll);ns16550_write (cdev, (baud_divisor >>8 ) &0xff , dlm);ns16550_write (cdev,LCRVAL , lcr);ns16550_write (cdev,MCRVAL , mcr); - -if (plat->flags &NS16650_FLAG_DISABLE_FIFO ) -ns16550_write (cdev,FCRVAL & ~FCR_FIFO_EN , fcr); -else -ns16550_write (cdev,FCRVAL , fcr); +ns16550_write (cdev, priv->fcrval, fcr);return 0 ; }
@@ -316,6 +312,11 @@ static int ns16550_probe(struct device_d *dev) cdev->setbrg = ns16550_setbaudrate; cdev->linux_console_name = devtype->linux_console_name; +if (plat->flags &NS16650_FLAG_DISABLE_FIFO ) + priv->fcrval =FCRVAL & ~FCR_FIFO_EN ; +else + priv->fcrval =FCRVAL ; + devtype->init_port (cdev);return console_register (cdev);
Signature · 7 lines
1.9.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH v2 4/8] serial: ns16550: make FCR setup value part of struct ns16550_priv
On Tue, 25 Mar 2014 00:13:50 +0400
Antony Pavlov <[email protected]> wrote:
This patch can be very handy for adding device tree FIFO-less controllers support in the future.
E.g.: .compatible = "ns8250" or .compatible = "ns16450"
Quoted 52 lines
Signed-off-by Antony Pavlov <[email protected]>--- drivers/serial/serial_ns16550.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-)drivers/serial/serial_ns16550.c +7
-6@@ -48,6 +48,7 @@ struct ns16550_priv {struct NS16550_plat plat;int access_width;struct clk *clk; +uint32_t fcrval; };static inline struct ns16550_priv *to_ns16550_priv (struct console_device *cdev)@@ -157,18 +158,13 @@ static int ns16550_setbaudrate(struct console_device *cdev, int baud_rate) {unsigned int baud_divisor =ns16550_calc_divisor (cdev, baud_rate);struct ns16550_priv *priv =to_ns16550_priv (cdev); -struct NS16550_plat *plat = &priv->plat;ns16550_write (cdev,LCR_BKSE , lcr);ns16550_write (cdev, baud_divisor &0xff , dll);ns16550_write (cdev, (baud_divisor >>8 ) &0xff , dlm);ns16550_write (cdev,LCRVAL , lcr);ns16550_write (cdev,MCRVAL , mcr); - -if (plat->flags &NS16650_FLAG_DISABLE_FIFO ) -ns16550_write (cdev,FCRVAL & ~FCR_FIFO_EN , fcr); -else -ns16550_write (cdev,FCRVAL , fcr); +ns16550_write (cdev, priv->fcrval, fcr);return 0 ; }@@ -316,6 +312,11 @@ static int ns16550_probe(struct device_d *dev) cdev->setbrg = ns16550_setbaudrate; cdev->linux_console_name = devtype->linux_console_name; +if (plat->flags &NS16650_FLAG_DISABLE_FIFO ) + priv->fcrval =FCRVAL & ~FCR_FIFO_EN ; +else + priv->fcrval =FCRVAL ; + devtype->init_port (cdev);return console_register (cdev);Signature · 1 line
1.9.0
Signature · 8 lines
-- Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v2 5/8 serial: ns16550: add compatible entry for "ingenic, jz4740-uart"
In reply to Antony Pavlov--- drivers/serial/serial_ns16550.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+)
drivers/serial/serial_ns16550.c +20 -0
@@ -191,6 +191,16 @@ static void ns16550_omap_init_port(struct console_device *cdev)ns16550_write (cdev,0x00 , omap_mdr1); } +#define JZ_FCR_UME 0x10/* Uart Module Enable */ + +static void ns16550_jz_init_port (struct console_device *cdev) +{ +struct ns16550_priv *priv =to_ns16550_priv (cdev); + + priv->fcrval |=JZ_FCR_UME ; +ns16550_serial_init_port (cdev); +} +/*********** Exposed Functions **********************************/ /**
@@ -251,6 +261,10 @@ static __maybe_unused struct ns16550_drvdata omap_drvdata = { .linux_console_name = "ttyO", }; +static __maybe_unused struct ns16550_drvdata jz_drvdata = { + .init_port = ns16550_jz_init_port, +}; +/** * @brief Probe entry point -called on the first match for device *
@@ -347,6 +361,12 @@ static struct of_device_id ns16550_serial_dt_ids[] = { .data = (unsigned long)&omap_drvdata, },#endif +#if IS_ENABLED(CONFIG_MACH_MIPS_XBURST) + { + .compatible = "ingenic,jz4740-uart", + .data = (unsigned long)&jz_drvdata, + }, +#endif { /* sentinel */ },
Signature · 7 lines
1.9.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v2 6/8 MIPS: rzx50: drop console initialization in board code
In reply to Antony Pavlov--- arch/mips/boards/rzx50/Makefile | 2 +- arch/mips/boards/rzx50/serial.c | 9 ++------- 2 files changed, 3 insertions(+), 8 deletions(-)
arch/mips/boards/rzx50/Makefile +1 -1
@@ -1 +1 @@ -obj-$(CONFIG_DRIVER_SERIAL_NS16550) += serial.o +obj-y += serial.o
arch/mips/boards/rzx50/serial.c +2 -7
@@ -17,16 +17,11 @@#include <common.h> #include <init.h> -#include <mach/devices.h> -#include <mach/jz4750d_regs.h> -static int rzx50_console_init (void ) +static int rzx50_hostname_init (void ) {barebox_set_hostname ("rzx50" ); -/* Register the serial port */ -jz_add_uart (DEVICE_ID_DYNAMIC ,UART1_BASE ,12000000 ); -return 0 ; } -console_initcall (rzx50_console_init); +console_initcall (rzx50_hostname_init);
Signature · 7 lines
1.9.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v2 7/8 MIPS: mach-xburst: drop serial.c
In reply to Antony PavlovWe use dts for serial port initialization, so we have no need in mach-xburst/serial.c anymore.
--- arch/mips/mach-xburst/Makefile | 1 - arch/mips/mach-xburst/serial.c | 60 ------------------------------------------ 2 files changed, 61 deletions(-)
arch/mips/mach-xburst/Makefile +0 -1
@@ -1,2 +1 @@ -obj-y += serial.o obj-$(CONFIG_CPU_JZ4755) += csrc-jz4750.o reset-jz4750.o
arch/mips/mach-xburst/serial.c deleted +0 -60
60 lines not on this page · raw message
Signature · 7 lines
1.9.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH v2 8/8 MIPS: boards: rename rzx50 -> ritmix-rzx50
In reply to Antony PavlovAll MIPS board use <vendor>-<model> name template save Ritmix RZX-50. This commit fixes this inconsistency.
--- Documentation/boards.dox | 2 +- arch/mips/Makefile | 2 +- arch/mips/boards/ritmix-rzx50/Makefile | 1 + .../ritmix-rzx50/include/board/board_pbl_start.h | 43 ++++++++++++++++++++ .../boards/ritmix-rzx50/include/board/debug_ll.h | 23 +++++++++++ arch/mips/boards/ritmix-rzx50/ritmix-rzx50.dox | 46 ++++++++++++++++++++++ arch/mips/boards/ritmix-rzx50/serial.c | 27 +++++++++++++ arch/mips/boards/rzx50/Makefile | 1 - .../boards/rzx50/include/board/board_pbl_start.h | 43 -------------------- arch/mips/boards/rzx50/include/board/debug_ll.h | 23 ----------- arch/mips/boards/rzx50/rzx50.dox | 46 ---------------------- arch/mips/boards/rzx50/serial.c | 27 ------------- arch/mips/configs/ritmix-rzx50_defconfig | 39 ++++++++++++++++++ arch/mips/configs/rzx50_defconfig | 39 ------------------ arch/mips/mach-xburst/mach-xburst.dox | 2 +- 15 files changed, 182 insertions(+), 182 deletions(-)
Documentation/boards.dox +1 -1
@@ -59,7 +59,7 @@ MIPS type: @li @subpage dlink_dir_320 @li @subpage loongson_ls1b @li @subpage qemu_malta -@li @subpage rzx50 +@li @subpage ritmix-rzx50 */
arch/mips/Makefile +1 -1
@@ -85,7 +85,7 @@ machine-$(CONFIG_MACH_MIPS_LOONGSON) := loongson board-$(CONFIG_BOARD_LOONGSON_TECH_LS1B) := loongson-ls1b machine-$(CONFIG_MACH_MIPS_XBURST) := xburst -board-$(CONFIG_BOARD_RZX50) := rzx50 +board-$(CONFIG_BOARD_RZX50) := ritmix-rzx50 machdirs := $(patsubst %,arch/mips/mach-%/,$(machine-y))
arch/mips/boards/ritmix-rzx50/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-y += serial.o
arch/mips/boards/ritmix-rzx50/include/board/board_pbl_start.h new file +43 -0
43 lines not on this page · raw message
arch/mips/boards/ritmix-rzx50/include/board/debug_ll.h new file +23 -0
@@ -0,0 +1,23 @@ +/* +* Copyright (C) 2012 Antony Pavlov <[email protected]> +* +* This file is part of barebox. +* See file CREDITS for list of people who contributed to this project. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 +* as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +*/ + +#ifndef __INCLUDE_RZX50_BOARD_DEBUG_LL_H__ +#define __INCLUDE_RZX50_BOARD_DEBUG_LL_H__ + +#include <mach/debug_ll_jz4750d.h> + +#endif /* __INCLUDE_RZX50_BOARD_DEBUG_LL_H__ */
arch/mips/boards/ritmix-rzx50/ritmix-rzx50.dox new file +46 -0
46 lines not on this page · raw message
arch/mips/boards/ritmix-rzx50/serial.c new file +27 -0
@@ -0,0 +1,27 @@ +/* +* Copyright (C) 2012 Antony Pavlov <[email protected]> +* +* This file is part of barebox. +* See file CREDITS for list of people who contributed to this project. +* +* This program is free software; you can redistribute it and/or modify +* it under the terms of the GNU General Public License version 2 +* as published by the Free Software Foundation. +* +* This program is distributed in the hope that it will be useful, +* but WITHOUT ANY WARRANTY; without even the implied warranty of +* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +* GNU General Public License for more details. +* +*/ + +#include <common.h> +#include <init.h> + +static int rzx50_hostname_init (void ) +{ +barebox_set_hostname ("rzx50" ); + +return 0 ; +} +console_initcall (rzx50_hostname_init);
arch/mips/boards/rzx50/Makefile deleted +0 -1
@@ -1 +0,0 @@ -obj-y += serial.o
arch/mips/boards/rzx50/include/board/board_pbl_start.h deleted +0 -43
43 lines not on this page · raw message
arch/mips/boards/rzx50/include/board/debug_ll.h deleted +0 -23
@@ -1,23 +0,0 @@ -/* -* Copyright (C) 2012 Antony Pavlov <[email protected]> -* -* This file is part of barebox. -* See file CREDITS for list of people who contributed to this project. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 -* as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -*/ - -#ifndef __INCLUDE_RZX50_BOARD_DEBUG_LL_H__ -#define __INCLUDE_RZX50_BOARD_DEBUG_LL_H__ - -#include <mach/debug_ll_jz4750d.h> - -#endif /* __INCLUDE_RZX50_BOARD_DEBUG_LL_H__ */
arch/mips/boards/rzx50/rzx50.dox deleted +0 -46
46 lines not on this page · raw message
arch/mips/boards/rzx50/serial.c deleted +0 -27
@@ -1,27 +0,0 @@ -/* -* Copyright (C) 2012 Antony Pavlov <[email protected]> -* -* This file is part of barebox. -* See file CREDITS for list of people who contributed to this project. -* -* This program is free software; you can redistribute it and/or modify -* it under the terms of the GNU General Public License version 2 -* as published by the Free Software Foundation. -* -* This program is distributed in the hope that it will be useful, -* but WITHOUT ANY WARRANTY; without even the implied warranty of -* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -* GNU General Public License for more details. -* -*/ - -#include <common.h> -#include <init.h> - -static int rzx50_hostname_init (void ) -{ -barebox_set_hostname ("rzx50" ); - -return 0 ; -} -console_initcall (rzx50_hostname_init);
arch/mips/configs/ritmix-rzx50_defconfig new file +39 -0
@@ -0,0 +1,39 @@ +CONFIG_BUILTIN_DTB=y +CONFIG_BUILTIN_DTB_NAME="rzx50" +CONFIG_MACH_MIPS_XBURST=y +CONFIG_JZ4750D_DEBUG_LL_UART1=y +CONFIG_PBL_IMAGE=y +CONFIG_BAUDRATE=57600 +CONFIG_GLOB=y +CONFIG_HUSH_FANCY_PROMPT=y +CONFIG_HUSH_GETOPT=y +CONFIG_CMDLINE_EDITING=y +CONFIG_AUTO_COMPLETE=y +# CONFIG_DEFAULT_ENVIRONMENT is not set +CONFIG_DEBUG_LL=y +CONFIG_CMD_EDIT=y +CONFIG_CMD_SLEEP=y +CONFIG_CMD_LOADB=y +CONFIG_CMD_LOADY=y +CONFIG_CMD_LOADS=y +CONFIG_CMD_SAVES=y +CONFIG_CMD_MEMINFO=y +CONFIG_CMD_IOMEM=y +CONFIG_CMD_MD5SUM=y +CONFIG_CMD_BOOTM_SHOW_TYPE=y +CONFIG_CMD_BOOTM_VERBOSE=y +CONFIG_CMD_BOOTM_INITRD=y +CONFIG_CMD_BOOTM_OFTREE=y +CONFIG_CMD_BOOTM_OFTREE_UIMAGE=y +CONFIG_CMD_UIMAGE=y +CONFIG_CMD_RESET=y +CONFIG_CMD_POWEROFF=y +CONFIG_CMD_GO=y +CONFIG_CMD_OFTREE=y +CONFIG_CMD_OF_PROPERTY=y +CONFIG_CMD_OF_NODE=y +CONFIG_OFDEVICE=y +# CONFIG_SPI is not set +CONFIG_SHA1=y +CONFIG_SHA224=y +CONFIG_SHA256=y
arch/mips/configs/rzx50_defconfig deleted +0 -39
@@ -1,39 +0,0 @@ -CONFIG_BUILTIN_DTB=y -CONFIG_BUILTIN_DTB_NAME="rzx50" -CONFIG_MACH_MIPS_XBURST=y -CONFIG_JZ4750D_DEBUG_LL_UART1=y -CONFIG_PBL_IMAGE=y -CONFIG_BAUDRATE=57600 -CONFIG_GLOB=y -CONFIG_HUSH_FANCY_PROMPT=y -CONFIG_HUSH_GETOPT=y -CONFIG_CMDLINE_EDITING=y -CONFIG_AUTO_COMPLETE=y -# CONFIG_DEFAULT_ENVIRONMENT is not set -CONFIG_DEBUG_LL=y -CONFIG_CMD_EDIT=y -CONFIG_CMD_SLEEP=y -CONFIG_CMD_LOADB=y -CONFIG_CMD_LOADY=y -CONFIG_CMD_LOADS=y -CONFIG_CMD_SAVES=y -CONFIG_CMD_MEMINFO=y -CONFIG_CMD_IOMEM=y -CONFIG_CMD_MD5SUM=y -CONFIG_CMD_BOOTM_SHOW_TYPE=y -CONFIG_CMD_BOOTM_VERBOSE=y -CONFIG_CMD_BOOTM_INITRD=y -CONFIG_CMD_BOOTM_OFTREE=y -CONFIG_CMD_BOOTM_OFTREE_UIMAGE=y -CONFIG_CMD_UIMAGE=y -CONFIG_CMD_RESET=y -CONFIG_CMD_POWEROFF=y -CONFIG_CMD_GO=y -CONFIG_CMD_OFTREE=y -CONFIG_CMD_OF_PROPERTY=y -CONFIG_CMD_OF_NODE=y -CONFIG_OFDEVICE=y -# CONFIG_SPI is not set -CONFIG_SHA1=y -CONFIG_SHA224=y -CONFIG_SHA256=y
arch/mips/mach-xburst/mach-xburst.dox +1 -1
@@ -2,6 +2,6 @@ @section xburst_boards XBurst-based boards -@li @subpage rzx50 +@li @subpage ritmix-rzx50 */
Signature · 7 lines
1.9.0 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
On Tue, 25 Mar 2014 00:13:46 +0400
Antony Pavlov <[email protected]> wrote:
Sascha!
Please ignore this series!
There is a error in
[PATCH v2 4/8] serial: ns16550: make FCR setup value part of struct ns16550_priv
This code does not check 'plat' value before checking plat->flags!
+ if (plat->flags & NS16650_FLAG_DISABLE_FIFO)
+ priv->fcrval = FCRVAL & ~FCR_FIFO_EN;
+ else
+ priv->fcrval = FCRVAL;
+
Quoted 65 lines
This patcheseries moves Ingenic JZ4755 UART initialization into device tree and makes JZ4755 device tree organization more clear.
This patchseries is a part of work on Ingenic chips support and prepares MIPS board support switch to device tree. Next patchseries will add device tree Ingenic gpio, clk and pinctls support.
Changes since v1:
* use "make FCR setup value part of structns16550_priv"instead of "make it possible to get reg_write() from devtype";* add a trivial "fix whitespaces" patch.
Antony Pavlov (8):
MIPS: mach-xburst: fix DEBUG_LL=n build error
MIPS: dts: rzx50: move jz4755 description to the separate file
serial: ns16550: fix whitespaces
serial: ns16550: make FCR setup value part of structns16550_priv
serial: ns16550: add compatible entry for "ingenic,jz4740-uart"
MIPS: rzx50: drop console initialization in board code
MIPS: mach-xburst: dropserial.c
MIPS: boards: rename rzx50 -> ritmix-rzx50Documentation/boards.dox | 2 +- arch/mips/Makefile | 2 +- arch/mips/boards/ritmix-rzx50/Makefile | 1 + .../ritmix-rzx50/include/board/board_pbl_start.h | 43 ++++++++++++++++ .../boards/ritmix-rzx50/include/board/debug_ll.h | 23 +++++++++ arch/mips/boards/ritmix-rzx50/ritmix-rzx50.dox | 46 +++++++++++++++++ arch/mips/boards/ritmix-rzx50/serial.c | 27 ++++++++++ arch/mips/boards/rzx50/Makefile | 1 - .../boards/rzx50/include/board/board_pbl_start.h | 43 ---------------- arch/mips/boards/rzx50/include/board/debug_ll.h | 23 --------- arch/mips/boards/rzx50/rzx50.dox | 46 ----------------- arch/mips/boards/rzx50/serial.c | 32 ------------ arch/mips/configs/ritmix-rzx50_defconfig | 39 ++++++++++++++ arch/mips/configs/rzx50_defconfig | 39 -------------- arch/mips/dts/jz4755.dtsi | 35 +++++++++++++ arch/mips/dts/rzx50.dts | 8 ++- arch/mips/include/asm/debug_ll_ns16550.h | 2 + arch/mips/mach-xburst/Makefile | 1 - arch/mips/mach-xburst/mach-xburst.dox | 2 +- arch/mips/mach-xburst/serial.c | 60 ---------------------- drivers/serial/serial_ns16550.c | 35 ++++++++++--- 21 files changed, 254 insertions(+), 256 deletions(-) create mode 100644 arch/mips/boards/ritmix-rzx50/Makefile create mode 100644 arch/mips/boards/ritmix-rzx50/include/board/board_pbl_start.h create mode 100644 arch/mips/boards/ritmix-rzx50/include/board/debug_ll.h create mode 100644 arch/mips/boards/ritmix-rzx50/ritmix-rzx50.dox create mode 100644 arch/mips/boards/ritmix-rzx50/serial.c delete mode 100644 arch/mips/boards/rzx50/Makefile delete mode 100644 arch/mips/boards/rzx50/include/board/board_pbl_start.h delete mode 100644 arch/mips/boards/rzx50/include/board/debug_ll.h delete mode 100644 arch/mips/boards/rzx50/rzx50.dox delete mode 100644 arch/mips/boards/rzx50/serial.c create mode 100644 arch/mips/configs/ritmix-rzx50_defconfig delete mode 100644 arch/mips/configs/rzx50_defconfig create mode 100644 arch/mips/dts/jz4755.dtsi delete mode 100644 arch/mips/mach-xburst/serial.cSignature · 1 line
1.9.0
Signature · 8 lines
-- Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox