Skip to contentSkip to conversation

MIPS: add XBurst processor family support

RFC In review Antony Pavlov 2 participants 6 messages May 16, 2012 – May 17, 2012

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

v2 cover MIPS: add XBurst processor family support

This patch series introduce XBurst processor family support to barebox.

XBurst is an CPU family developed by Ingenic Semiconductor to address the requirements of mobile devices. XBurst processors are used in mobile gaming consoles (e.g. notable Dingoo A320), e-books, mp3-players and so on.

The patches have preliminary status. Please, review it!

[RFC v2 1/4] MIPS: add XBurst processor family support [RFC v2 2/4] MIPS: XBurst: add JZ4755 CPU support [RFC v2 3/4] MIPS: XBurst: add Ritmix RZX-50 board support [RFC v2 4/4] MIPS: add defconfig for Ritmix RZX-50 board

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox

#1 lore raw

RFC v2 1/4 MIPS: add XBurst processor family support

---
 arch/mips/Kconfig                             |    8 +++++++
 arch/mips/Makefile                            |    2 ++
 arch/mips/mach-mips.dox                       |    4 ++++
 arch/mips/mach-xburst/Kconfig                 |    7 ++++++
 arch/mips/mach-xburst/include/mach/debug_ll.h |   29 +++++++++++++++++++++++++
 arch/mips/mach-xburst/mach-xburst.dox         |    5 +++++
 6 files changed, 55 insertions(+)
 create mode 100644 arch/mips/mach-xburst/Kconfig
 create mode 100644 arch/mips/mach-xburst/include/mach/debug_ll.h
 create mode 100644 arch/mips/mach-xburst/mach-xburst.dox
arch/mips/Kconfig +8 -0
index 50d5c67..7a1eeac 100644
@@ -46,10 +46,18 @@ config MACH_MIPS_BCM47XX
 	select SYS_SUPPORTS_LITTLE_ENDIAN
 	select HAS_DEBUG_LL
 
+config MACH_MIPS_XBURST
+	bool "Ingenic XBurst-based boards"
+	select SYS_HAS_CPU_MIPS32_R1
+	select SYS_SUPPORTS_LITTLE_ENDIAN
+	select SYS_SUPPORTS_32BIT_KERNEL
+	select DRIVER_SERIAL_NS16550
+	select HAS_DEBUG_LL
 endchoice
 
 source arch/mips/mach-malta/Kconfig
 source arch/mips/mach-bcm47xx/Kconfig
+source arch/mips/mach-xburst/Kconfig
 
 endmenu
 
arch/mips/Makefile +2 -0
index 43b8ae6..345d9a2 100644
@@ -66,6 +66,8 @@ board-$(CONFIG_BOARD_QEMU_MALTA)	:= qemu-malta
 machine-$(CONFIG_MACH_MIPS_BCM47XX)	:= bcm47xx
 board-$(CONFIG_BOARD_DLINK_DIR320)	:= dlink-dir-320
 
+machine-$(CONFIG_MACH_MIPS_XBURST)	:= xburst
+
 machdirs := $(patsubst %,arch/mips/mach-%/,$(machine-y))
 
 ifeq ($(KBUILD_SRC),)
arch/mips/mach-mips.dox +4 -0
index 9bcec13..750a451 100644
@@ -58,4 +58,8 @@ ISBN-13: 978-0120884216
 @subsection mach_bcm47xx_info BCM47xx-based boards
 
 @li @subpage dev_bcm47xx_mach
+
+@subsection mach_xburst_info XBurst-based boards
+
+@li @subpage dev_xburst_mach
 */
arch/mips/mach-xburst/Kconfig new file +7 -0
new file mode 100644
index 0000000..7228b8f
@@ -0,0 +1,7 @@
+if MACH_MIPS_XBURST
+
+config ARCH_TEXT_BASE
+	hex
+	default 0xa0800000
+
+endif
arch/mips/mach-xburst/include/mach/debug_ll.h new file +29 -0
new file mode 100644
index 0000000..90f6528
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#ifndef __MACH_XBURST_DEBUG_LL__
+#define __MACH_XBURST_DEBUG_LL__
+
+/** @file
+ *  This File contains declaration for early output support
+ */
+#include <debug_ll_common.h>
+
+#endif  /* __MACH_XBURST_DEBUG_LL__ */
arch/mips/mach-xburst/mach-xburst.dox new file +5 -0
new file mode 100644
index 0000000..84ae221
@@ -0,0 +1,5 @@
+/** @page dev_xburst_mach XBurst in barebox
+
+@section xburst_boards XBurst-based boards
+
+*/
Signature · 7 lines
1.7.10


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#2 lore raw

RFC v2 2/4 MIPS: XBurst: add JZ4755 CPU support

In reply to Antony Pavlov
---
 arch/mips/mach-xburst/Kconfig                      |    3 +
 arch/mips/mach-xburst/Makefile                     |    1 +
 arch/mips/mach-xburst/csrc-jz4750.c                |   61 +++++++++++++++
 .../mach-xburst/include/mach/debug_ll_jz4755.h     |   29 +++++++
 arch/mips/mach-xburst/include/mach/jz4750d_regs.h  |   80 ++++++++++++++++++++
 arch/mips/mach-xburst/reset-jz4750.c               |   46 +++++++++++
 6 files changed, 220 insertions(+)
 create mode 100644 arch/mips/mach-xburst/Makefile
 create mode 100644 arch/mips/mach-xburst/csrc-jz4750.c
 create mode 100644 arch/mips/mach-xburst/include/mach/debug_ll_jz4755.h
 create mode 100644 arch/mips/mach-xburst/include/mach/jz4750d_regs.h
 create mode 100644 arch/mips/mach-xburst/reset-jz4750.c
arch/mips/mach-xburst/Kconfig +3 -0
index 7228b8f..0306f2e 100644
@@ -4,4 +4,7 @@ config ARCH_TEXT_BASE
 	hex
 	default 0xa0800000
 
+config CPU_JZ4755
+	bool
+
 endif
arch/mips/mach-xburst/Makefile new file +1 -0
new file mode 100644
index 0000000..e5634ba
@@ -0,0 +1 @@
+obj-$(CONFIG_CPU_JZ4755) += csrc-jz4750.o reset-jz4750.o
arch/mips/mach-xburst/csrc-jz4750.c new file +61 -0

61 lines not on this page · raw message

arch/mips/mach-xburst/include/mach/debug_ll_jz4755.h new file +29 -0
new file mode 100644
index 0000000..babe296
@@ -0,0 +1,29 @@
+/*
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ */
+
+#ifndef __INCLUDE_DEBUG_LL_JZ4755_H__
+#define __INCLUDE_DEBUG_LL_JZ4755_H__
+
+#include <mach/jz4750d_regs.h>
+
+#define DEBUG_LL_UART_ADDR	UART1_BASE
+#define DEBUG_LL_UART_SHIFT	2
+
+#endif  /* __INCLUDE_DEBUG_LL_JZ4755_H__ */
arch/mips/mach-xburst/include/mach/jz4750d_regs.h new file +80 -0

80 lines not on this page · raw message

arch/mips/mach-xburst/reset-jz4750.c new file +46 -0

46 lines not on this page · raw message

Signature · 7 lines
1.7.10


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#3 lore raw

RFC v2 3/4 MIPS: XBurst: add Ritmix RZX-50 board support

In reply to Antony Pavlov
---
 Documentation/boards.dox                      |    1 +
 arch/mips/Makefile                            |    1 +
 arch/mips/boards/rzx50/Kconfig                |    6 +++
 arch/mips/boards/rzx50/Makefile               |    1 +
 arch/mips/boards/rzx50/config.h               |   19 +++++++
 arch/mips/boards/rzx50/rzx50.dox              |   46 +++++++++++++++++
 arch/mips/boards/rzx50/serial.c               |   66 +++++++++++++++++++++++++
 arch/mips/mach-xburst/Kconfig                 |   11 +++++
 arch/mips/mach-xburst/include/mach/debug_ll.h |    6 ++-
 arch/mips/mach-xburst/mach-xburst.dox         |    2 +
 10 files changed, 158 insertions(+), 1 deletion(-)
 create mode 100644 arch/mips/boards/rzx50/Kconfig
 create mode 100644 arch/mips/boards/rzx50/Makefile
 create mode 100644 arch/mips/boards/rzx50/config.h
 create mode 100644 arch/mips/boards/rzx50/rzx50.dox
 create mode 100644 arch/mips/boards/rzx50/serial.c
Documentation/boards.dox +1 -0
index ba332a7..7fcba9c 100644
@@ -51,6 +51,7 @@ MIPS type:
 
 @li @subpage dlink_dir_320
 @li @subpage qemu_malta
+@li @subpage rzx50
 
 */
 
arch/mips/Makefile +1 -0
index 345d9a2..f28c21d 100644
@@ -67,6 +67,7 @@ machine-$(CONFIG_MACH_MIPS_BCM47XX)	:= bcm47xx
 board-$(CONFIG_BOARD_DLINK_DIR320)	:= dlink-dir-320
 
 machine-$(CONFIG_MACH_MIPS_XBURST)	:= xburst
+board-$(CONFIG_BOARD_RZX50)	:= rzx50
 
 machdirs := $(patsubst %,arch/mips/mach-%/,$(machine-y))
 
arch/mips/boards/rzx50/Kconfig new file +6 -0
new file mode 100644
index 0000000..38401aa
@@ -0,0 +1,6 @@
+if BOARD_RZX50
+
+config BOARDINFO
+	default "Ritmix RZX-50"
+
+endif
arch/mips/boards/rzx50/Makefile new file +1 -0
new file mode 100644
index 0000000..ff1a655
@@ -0,0 +1 @@
+obj-$(CONFIG_DRIVER_SERIAL_NS16550) += serial.o
arch/mips/boards/rzx50/config.h new file +19 -0
new file mode 100644
index 0000000..eb4ab08
@@ -0,0 +1,19 @@
+/*
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ *
+ * 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.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
+ * MA 02111-1307 USA
+ *
+ */
+
+/* nothing special yet */
arch/mips/boards/rzx50/rzx50.dox new file +46 -0

46 lines not on this page · raw message

arch/mips/boards/rzx50/serial.c new file +66 -0

66 lines not on this page · raw message

arch/mips/mach-xburst/Kconfig +11 -0
index 0306f2e..60e411c 100644
@@ -7,4 +7,15 @@ config ARCH_TEXT_BASE
 config CPU_JZ4755
 	bool
 
+choice
+	prompt "Board type"
+
+config BOARD_RZX50
+	bool "Ritmix RZX-50"
+	select CPU_JZ4755
+
+endchoice
+
+source arch/mips/boards/rzx50/Kconfig
+
 endif
arch/mips/mach-xburst/include/mach/debug_ll.h +5 -1
index 90f6528..c3dbaa2 100644
@@ -24,6 +24,10 @@
 /** @file
  *  This File contains declaration for early output support
  */
-#include <debug_ll_common.h>
+#ifdef CONFIG_BOARD_RZX50
+#include <mach/debug_ll_jz4755.h>
+#endif
+
+#include <debug_ll_ns16550.h>
 
 #endif  /* __MACH_XBURST_DEBUG_LL__ */
arch/mips/mach-xburst/mach-xburst.dox +2 -0
index 84ae221..a5e524d 100644
@@ -2,4 +2,6 @@
 
 @section xburst_boards XBurst-based boards
 
+@li @subpage rzx50
+
 */
Signature · 7 lines
1.7.10


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#4 lore raw

RFC v2 4/4 MIPS: add defconfig for Ritmix RZX-50 board

In reply to Antony Pavlov
---
 arch/mips/configs/rzx50_defconfig |   29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)
 create mode 100644 arch/mips/configs/rzx50_defconfig
arch/mips/configs/rzx50_defconfig new file +29 -0
new file mode 100644
index 0000000..722d977
@@ -0,0 +1,29 @@
+CONFIG_MACH_MIPS_XBURST=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_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_GO=y
+# CONFIG_SPI is not set
+CONFIG_SHA1=y
+CONFIG_SHA224=y
+CONFIG_SHA256=y
Signature · 7 lines
1.7.10


_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
#5 lore raw
In reply to Antony Pavlov
Quoted 8 lines · Antony Pavlov

This patch series introduce XBurst processor family support to barebox.

XBurst is an CPU family developed by Ingenic Semiconductor to address the requirements of mobile devices. XBurst processors are used in mobile gaming consoles (e.g. notable Dingoo A320), e-books, mp3-players and so on.

The patches have preliminary status. Please, review it!

I read the patches, applied them and then I saw this sentence ;) However, the patches look good and are not touching unrelated stuff, so it should be fine.

Sascha

Signature · 9 lines
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox