Add MIPS arch support to barebox
Subsystems (3)
PATCH 2/4 MIPS: add Malta machine support to barebox
In reply to Antony PavlovThe machines use big-endian mode.
Only supported peripheral is serial port.
--- arch/mips/Kconfig | 13 ++++++++ arch/mips/Makefile | 2 + arch/mips/mach-mti-malta/Kconfig | 20 ++++++++++++ arch/mips/mach-mti-malta/Makefile | 1 + arch/mips/mach-mti-malta/include/mach/hardware.h | 32 +++++++++++++++++++ arch/mips/mach-mti-malta/reset.c | 36 ++++++++++++++++++++++ 6 files changed, 104 insertions(+), 0 deletions(-) create mode 100644 arch/mips/mach-mti-malta/Kconfig create mode 100644 arch/mips/mach-mti-malta/Makefile create mode 100644 arch/mips/mach-mti-malta/include/mach/hardware.h create mode 100644 arch/mips/mach-mti-malta/reset.c
arch/mips/Kconfig +13 -0
@@ -21,6 +21,17 @@ config GENERIC_LINKER_SCRIPT bool default y +choice + prompt "MIPS system type" + +config MACH_MIPS_MALTA + bool "Malta" + select CSRC_R4K_LIB + select DRIVER_SERIAL_NS16550 + select SYS_SUPPORTS_BIG_ENDIAN + +endchoice + # # Endianess selection. Sufficiently obscure so many users don't know what to # answer,so we try hard to limit the available choices. Also the use of a
@@ -46,6 +57,8 @@ config CPU_LITTLE_ENDIAN endchoice +source arch/mips/mach-mti-malta/Kconfig + source common/Kconfig source commands/Kconfig source net/Kconfig
arch/mips/Makefile +2 -0
@@ -27,6 +27,8 @@ CPPFLAGS += -fdata-sections -ffunction-sections LDFLAGS_uboot += -static --gc-sections endif +machine-$(CONFIG_MACH_MIPS_MALTA) := mti-malta + machdirs := $(patsubst %,arch/mips/mach-%/,$(machine-y)) ifeq ($(KBUILD_SRC),)
arch/mips/mach-mti-malta/Kconfig new file +20 -0
@@ -0,0 +1,20 @@ +if MACH_MIPS_MALTA + +config ARCH_TEXT_BASE + hex + default 0xa0800000 + +menu "Mach specific settings " + +config DEBUG_LL + bool "DEBUG_LL" + default n + +endmenu + +choice + prompt "Select your board" + +endchoice + +endif
arch/mips/mach-mti-malta/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-y += reset.o
arch/mips/mach-mti-malta/include/mach/hardware.h new file +32 -0
@@ -0,0 +1,32 @@ +/* +* Copyright (c) 2011 Antony Pavlov <[email protected]> +* See file CREDITS for list of people who contributed to this project. +* +* This file is part of barebox. +* +* barebox 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 3 of the License, or +* (at your option) any later version. +* +* barebox 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 barebox. If not, see <http://www.gnu.org/licenses/>. +*/ + +#ifndef __INCLUDE_ARCH_HARDWARE_H__ +#define __INCLUDE_ARCH_HARDWARE_H__ + +#define DEBUG_LL_UART_ADDR 0xb00003f8 + +/* +* Reset register. +*/ +#define SOFTRES_REG 0xbf000500 +#define GORESET 0x42 + +#endif /* __INCLUDE_ARCH_HARDWARE_H__ */
arch/mips/mach-mti-malta/reset.c new file +36 -0
@@ -0,0 +1,36 @@ +/* +* Copyright (C) 2011 Antony Pavlov <[email protected]> +* +* 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 +* +*/ + +/** +* @file +* @brief Resetting an CPU +*/ + +#include <common.h> +#include <asm/io.h> +#include <mach/hardware.h> + +void __noreturn mips_machine_restart () +{ +__raw_writel (GORESET , (char *)SOFTRES_REG ); +while (1 ); +/*NOTREACHED*/ +} +EXPORT_SYMBOL (mips_machine_restart);
Signature · 7 lines
1.7.5.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 4/4 MISP: add documentation template.
In reply to Antony Pavlov--- arch/architecture.dox | 1 + arch/mips/mach-mips.dox | 9 +++++++++ 2 files changed, 10 insertions(+), 0 deletions(-) create mode 100644 arch/mips/mach-mips.dox
arch/architecture.dox +1 -0
@@ -86,6 +86,7 @@ TODO @li @subpage dev_arm_mach @li @subpage dev_bf_mach +@li @subpage dev_mips_mach @li @subpage dev_ppc_mach @li @subpage dev_x86_mach
arch/mips/mach-mips.dox new file +9 -0
@@ -0,0 +1,9 @@ +/* This document is intended to provide the developer with information + * how to integrate a new CPU (MACH) into this part of the barebox tree + */ + +/** @page dev_arm_mach MIPS based CPU (MACH) into the tree + +FIXME + +*/
Signature · 7 lines
1.7.5.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/4 Add MIPS arch support to barebox
Barebox can use only uncached memory.
--- arch/mips/Kconfig | 54 ++ arch/mips/Makefile | 63 +++ arch/mips/boot/Makefile | 5 + arch/mips/boot/entry.c | 79 +++ arch/mips/boot/head.S | 233 ++++++++ arch/mips/boot/reset.c | 32 ++ arch/mips/include/asm/barebox.h | 24 + arch/mips/include/asm/bitops.h | 32 ++ arch/mips/include/asm/byteorder.h | 30 + arch/mips/include/asm/common.h | 29 + arch/mips/include/asm/elf.h | 30 + arch/mips/include/asm/io.h | 73 +++ arch/mips/include/asm/mipsregs.h | 988 +++++++++++++++++++++++++++++++++++ arch/mips/include/asm/module.h | 36 ++ arch/mips/include/asm/posix_types.h | 48 ++ arch/mips/include/asm/regdef.h | 100 ++++ arch/mips/include/asm/sections.h | 1 + arch/mips/include/asm/sgidefs.h | 44 ++ arch/mips/include/asm/string.h | 31 ++ arch/mips/include/asm/swab.h | 59 ++ arch/mips/include/asm/types.h | 44 ++ arch/mips/include/mach/debug_ll.h | 35 ++ arch/mips/lib/Makefile | 6 + arch/mips/lib/ashldi3.c | 27 + arch/mips/lib/ashrdi3.c | 29 + arch/mips/lib/barebox.lds.S | 76 +++ arch/mips/lib/csrc-r4k.c | 50 ++ arch/mips/lib/libgcc.h | 25 + arch/mips/lib/lshrdi3.c | 27 + arch/mips/lib/memory.c | 34 ++ 30 files changed, 2344 insertions(+), 0 deletions(-) create mode 100644 arch/mips/Kconfig create mode 100644 arch/mips/Makefile create mode 100644 arch/mips/boot/Makefile create mode 100644 arch/mips/boot/entry.c create mode 100644 arch/mips/boot/head.S create mode 100644 arch/mips/boot/reset.c create mode 100644 arch/mips/include/asm/barebox.h create mode 100644 arch/mips/include/asm/bitops.h create mode 100644 arch/mips/include/asm/byteorder.h create mode 100644 arch/mips/include/asm/common.h create mode 100644 arch/mips/include/asm/elf.h create mode 100644 arch/mips/include/asm/io.h create mode 100644 arch/mips/include/asm/mipsregs.h create mode 100644 arch/mips/include/asm/module.h create mode 100644 arch/mips/include/asm/posix_types.h create mode 100644 arch/mips/include/asm/regdef.h create mode 100644 arch/mips/include/asm/sections.h create mode 100644 arch/mips/include/asm/sgidefs.h create mode 100644 arch/mips/include/asm/string.h create mode 100644 arch/mips/include/asm/swab.h create mode 100644 arch/mips/include/asm/types.h create mode 100644 arch/mips/include/mach/debug_ll.h create mode 100644 arch/mips/lib/Makefile create mode 100644 arch/mips/lib/ashldi3.c create mode 100644 arch/mips/lib/ashrdi3.c create mode 100644 arch/mips/lib/barebox.lds.S create mode 100644 arch/mips/lib/csrc-r4k.c create mode 100644 arch/mips/lib/libgcc.h create mode 100644 arch/mips/lib/lshrdi3.c create mode 100644 arch/mips/lib/memory.c
arch/mips/Kconfig new file +54 -0
@@ -0,0 +1,54 @@ +# +# +# +config MIPS + bool + select HAS_KALLSYMS + select HAVE_CONFIGURABLE_MEMORY_LAYOUT + select HAVE_CONFIGURABLE_TEXT_BASE + default y + +config SYS_SUPPORTS_BIG_ENDIAN + bool + +config SYS_SUPPORTS_LITTLE_ENDIAN + bool + +config CSRC_R4K_LIB + bool + +config GENERIC_LINKER_SCRIPT + bool + default y + +# +# Endianess selection. Sufficiently obscure so many users don't know what to +# answer,so we try hard to limit the available choices. Also the use of a +# choice statement should be more obvious to the user. +# +choice + prompt "Endianess selection" + help + Some MIPS machines can be configured for either little or big endian + byte order. These modes require different kernels and a different + Linux distribution. In general there is one preferred byteorder for a + particular system but some systems are just as commonly used in the + one or the other endianness. + +config CPU_BIG_ENDIAN + bool "Big endian" + depends on SYS_SUPPORTS_BIG_ENDIAN + +config CPU_LITTLE_ENDIAN + bool "Little endian" + depends on SYS_SUPPORTS_LITTLE_ENDIAN + help + +endchoice + +source common/Kconfig +source commands/Kconfig +source net/Kconfig +source drivers/Kconfig +source fs/Kconfig +source lib/Kconfig
arch/mips/Makefile new file +63 -0
63 lines not on this page · raw message
arch/mips/boot/Makefile new file +5 -0
@@ -0,0 +1,5 @@ +CPPFLAGS += -D__MIPS__ -fno-strict-aliasing -g -O2 -march=mips64 + +obj-y += head.o +obj-y += entry.o +obj-y += reset.o
arch/mips/boot/entry.c new file +79 -0
79 lines not on this page · raw message
arch/mips/boot/head.S new file +233 -0
233 lines not on this page · raw message
arch/mips/boot/reset.c new file +32 -0
@@ -0,0 +1,32 @@ +/* +* Copyright (C) 2011 Antony Pavlov <[email protected]> +* +* 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 +* +*/ + +/** +* @file +* @brief Resetting an CPU +*/ + +#include <common.h> + +void __noreturn reset_cpu (ulong addr) +{ +mips_machine_restart (); +} +EXPORT_SYMBOL (reset_cpu);
arch/mips/include/asm/barebox.h new file +24 -0
@@ -0,0 +1,24 @@ +/* +* 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 +* +*/ + +#ifndef _ASM_MIPS_BAREBOX_H_ +#define _ASM_MIPS_BAREBOX_H_ + +/* nothing special yet */ + +#endif /* _ASM_MIPS_BAREBOX_H_ */
arch/mips/include/asm/bitops.h new file +32 -0
@@ -0,0 +1,32 @@ +/* +* 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 +* +*/ + +/** +* @file +* @brief mips bit operations +* +* This file is required only to make all sources happy including +* 'linux/bitops.h' +*/ + +#ifndef _ASM_MIPS_BITOPS_H_ +#define _ASM_MIPS_BITOPS_H_ + +/* nothing special yet */ + +#endif /* _ASM_MIPS_BITOPS_H_ */
arch/mips/include/asm/byteorder.h new file +30 -0
@@ -0,0 +1,30 @@ +/* +* 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 +* +*/ + +/** +* @file +* @brief mips endianess declaration +*/ + +#ifndef __ASM_MIPS_BYTEORDER_H +#define __ASM_MIPS_BYTEORDER_H + +#include <asm/types.h> +#include <linux/byteorder/big_endian.h> + +#endif
arch/mips/include/asm/common.h new file +29 -0
@@ -0,0 +1,29 @@ +/* +* 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 +* +*/ + +/** +* @file +* @brief mips common declarations +*/ + +#ifndef _ASM_MIPS_COMMON_H_ +#define _ASM_MIPS_COMMON_H_ + +void mips_machine_restart (void ); + +#endif /* _ASM_MIPS_COMMON_H_ */
arch/mips/include/asm/elf.h new file +30 -0
@@ -0,0 +1,30 @@ +/* +* 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 +* +*/ + +/** +* @file +* @brief mips specific elf information +* +*/ + +#ifndef _ASM_MIPS_ELF_H +#define _ASM_MIPS_ELF_H + +#define ELF_CLASS ELFCLASS32 + +#endif /* _ASM_MIPS_ELF_H */
arch/mips/include/asm/io.h new file +73 -0
73 lines not on this page · raw message
arch/mips/include/asm/mipsregs.h new file +988 -0
988 lines not on this page · raw message
arch/mips/include/asm/module.h new file +36 -0
@@ -0,0 +1,36 @@ +/* +* 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 +* +*/ + +/** +* @file +* @brief mips module support +* +*/ + +#ifndef _ASM_MIPS_MODULE_H_ +#define _ASM_MIPS_MODULE_H_ + +struct mod_arch_specific +{ +int foo; +}; + +#define Elf_Shdr Elf32_Shdr +#define Elf_Ehdr Elf32_Ehdr + +#endif /* _ASM_MIPS_MODULE_H_ */
arch/mips/include/asm/posix_types.h new file +48 -0
48 lines not on this page · raw message
arch/mips/include/asm/regdef.h new file +100 -0
100 lines not on this page · raw message
arch/mips/include/asm/sections.h new file +1 -0
@@ -0,0 +1 @@ +#include <asm-generic/sections.h>
arch/mips/include/asm/sgidefs.h new file +44 -0
44 lines not on this page · raw message
arch/mips/include/asm/string.h new file +31 -0
@@ -0,0 +1,31 @@ +/* +* 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 +* +*/ + +/** +* @file +* @brief mips specific string optimizations +* +* Thanks to the Linux kernel here we can add many micro optimized string +* functions. But currently it makes no sense, to do so. +*/ +#ifndef __ASM_MIPS_STRING_H +#define __ASM_MIPS_STRING_H + +/* nothing special yet */ + +#endif
arch/mips/include/asm/swab.h new file +59 -0
59 lines not on this page · raw message
arch/mips/include/asm/types.h new file +44 -0
44 lines not on this page · raw message
arch/mips/include/mach/debug_ll.h new file +35 -0
@@ -0,0 +1,35 @@ +/* +* Copyright (c) 2008 Carsten Schlote <[email protected]> +* See file CREDITS for list of people who contributed to this project. +* +* This file is part of barebox. +* +* barebox 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 3 of the License, or +* (at your option) any later version. +* +* barebox 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 barebox. If not, see <http://www.gnu.org/licenses/>. +*/ + +/** @file +* This File contains declaration for early output support +*/ +#ifndef __INCLUDE_ARCH_DEBUG_LL_H__ +#define __INCLUDE_ARCH_DEBUG_LL_H__ + +#include <asm/io.h> +#include <mach/hardware.h> + +extern __inline__void putc (char ch ) +{ +writeb (ch,DEBUG_LL_UART_ADDR ); +} + +#endif /* __INCLUDE_ARCH_DEBUG_LL_H__ */
arch/mips/lib/Makefile new file +6 -0
@@ -0,0 +1,6 @@ +extra-$(CONFIG_GENERIC_LINKER_SCRIPT) += barebox.lds +obj-$(CONFIG_CSRC_R4K_LIB) += csrc-r4k.o +obj-y += lshrdi3.o +obj-y += ashldi3.o +obj-y += ashrdi3.o +obj-y += memory.o
arch/mips/lib/ashldi3.c new file +27 -0
@@ -0,0 +1,27 @@ +#include "libgcc.h" + +long long __ashldi3 (long long u,word_type b) +{ +DWunion uu, w; +word_type bm; + +if (b ==0 ) +return u; + + uu.ll = u; + bm =32 - b; + +if (bm <=0 ) { + w.s.low =0 ; + w.s.high = (unsigned int ) uu.s.low << -bm; + }else { +const unsigned int carries = (unsigned int ) uu.s.low >> bm; + + w.s.low = (unsigned int ) uu.s.low << b; + w.s.high = ((unsigned int ) uu.s.high << b) | carries; + } + +return w.ll; +} + +EXPORT_SYMBOL (__ashldi3);
arch/mips/lib/ashrdi3.c new file +29 -0
@@ -0,0 +1,29 @@ +#include "libgcc.h" + +long long __ashrdi3 (long long u,word_type b) +{ +DWunion uu, w; +word_type bm; + +if (b ==0 ) +return u; + + uu.ll = u; + bm =32 - b; + +if (bm <=0 ) { +/* w.s.high = 1..1 or 0..0 */ + w.s.high = + uu.s.high >>31 ; + w.s.low = uu.s.high >> -bm; + }else { +const unsigned int carries = (unsigned int ) uu.s.high << bm; + + w.s.high = uu.s.high >> b; + w.s.low = ((unsigned int ) uu.s.low >> b) | carries; + } + +return w.ll; +} + +EXPORT_SYMBOL (__ashrdi3);
arch/mips/lib/barebox.lds.S new file +76 -0
76 lines not on this page · raw message
arch/mips/lib/csrc-r4k.c new file +50 -0
50 lines not on this page · raw message
arch/mips/lib/libgcc.h new file +25 -0
@@ -0,0 +1,25 @@ +#ifndef __ASM_LIBGCC_H +#define __ASM_LIBGCC_H + +#include <asm/byteorder.h> + +typedef int word_type __attribute__ ((mode (__word__))); + +#ifdef __BIG_ENDIAN +struct DWstruct { +int high, low; +}; +#elif defined(__LITTLE_ENDIAN) +struct DWstruct { +int low, high; +}; +#else +#error I feel sick. +#endif + +typedef union { +struct DWstruct s; +long long ll; +}DWunion ; + +#endif /* __ASM_LIBGCC_H */
arch/mips/lib/lshrdi3.c new file +27 -0
@@ -0,0 +1,27 @@ +#include "libgcc.h" + +long long __lshrdi3 (long long u,word_type b) +{ +DWunion uu, w; +word_type bm; + +if (b ==0 ) +return u; + + uu.ll = u; + bm =32 - b; + +if (bm <=0 ) { + w.s.high =0 ; + w.s.low = (unsigned int ) uu.s.high >> -bm; + }else { +const unsigned int carries = (unsigned int ) uu.s.high << bm; + + w.s.high = (unsigned int ) uu.s.high >> b; + w.s.low = ((unsigned int ) uu.s.low >> b) | carries; + } + +return w.ll; +} + +EXPORT_SYMBOL (__lshrdi3);
arch/mips/lib/memory.c new file +34 -0
@@ -0,0 +1,34 @@ +/* +* Copyright (c) 2011 Antony Pavlov <[email protected]> +* See file CREDITS for list of people who contributed to this project. +* +* This file is part of barebox. +* +* 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 +*/ + +#include <common.h> +#include <init.h> +#include <mem_malloc.h> +#include <asm-generic/memory_layout.h> + +static int mips_mem_malloc_init (void ) +{ +mem_malloc_init ((void *)MALLOC_BASE , + (void *)(MALLOC_BASE +MALLOC_SIZE )); +return 0 ; +} +core_initcall (mips_mem_malloc_init);
Signature · 7 lines
1.7.5.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/4 MIPS: add qemu malta board support to barebox
Only supported peripheral is serial port.
--- arch/mips/Makefile | 1 + arch/mips/boards/qemu-malta/Kconfig | 2 + arch/mips/boards/qemu-malta/Makefile | 1 + arch/mips/boards/qemu-malta/config.h | 19 ++++++++++ arch/mips/boards/qemu-malta/serial.c | 61 ++++++++++++++++++++++++++++++++ arch/mips/configs/qemu-malta_defconfig | 46 ++++++++++++++++++++++++ arch/mips/mach-mti-malta/Kconfig | 5 +++ 7 files changed, 135 insertions(+), 0 deletions(-) create mode 100644 arch/mips/boards/qemu-malta/Kconfig create mode 100644 arch/mips/boards/qemu-malta/Makefile create mode 100644 arch/mips/boards/qemu-malta/config.h create mode 100644 arch/mips/boards/qemu-malta/serial.c create mode 100644 arch/mips/configs/qemu-malta_defconfig
arch/mips/Makefile +1 -0
@@ -28,6 +28,7 @@ LDFLAGS_uboot += -static --gc-sections endif machine-$(CONFIG_MACH_MIPS_MALTA) := mti-malta +board-$(CONFIG_BOARD_QEMU_MALTA) := qemu-malta machdirs := $(patsubst %,arch/mips/mach-%/,$(machine-y))
arch/mips/boards/qemu-malta/Kconfig new file +2 -0
@@ -0,0 +1,2 @@ +config BOARDINFO + default "qemu malta"
arch/mips/boards/qemu-malta/Makefile new file +1 -0
@@ -0,0 +1 @@ +obj-$(CONFIG_DRIVER_SERIAL_NS16550) += serial.o
arch/mips/boards/qemu-malta/config.h new file +19 -0
@@ -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/qemu-malta/serial.c new file +61 -0
61 lines not on this page · raw message
arch/mips/configs/qemu-malta_defconfig new file +46 -0
46 lines not on this page · raw message
arch/mips/mach-mti-malta/Kconfig +5 -0
@@ -15,6 +15,11 @@ endmenu choice prompt "Select your board" +config BOARD_QEMU_MALTA + bool "qemu malta" + endchoice +source arch/mips/boards/qemu-malta/Kconfig + endif
Signature · 7 lines
1.7.5.4 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
arch/mips/boot/head.S
Quoted 5 lines
arch/mips/boot/head.S new file +0
-0
I really do not like this startup code
can we found away to use Shinya-san
init code
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 9 lines · Jean-Christophe PLAGNIOL-VILLARD
arch/mips/boot/head.S
Quoted 5 lines
arch/mips/boot/head.S new file +0
-0I really do not like this startup code
can we found away to use Shinya-san
init code
I need one or two days to carry works.
Have you other criticism?
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 23 lines
arch/mips/boot/reset.c new file +22
-0@@ -0,0 +1,32 @@ +/* +* Copyright (C) 2011 Antony Pavlov <[email protected]> +* +* 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 +* +*/ + +/** +* @file
arch/mips/boot/reset.c line 32
Quoted 10 lines
arch/mips/boot/reset.c new file +10
-0+* @brief Resetting an CPU +*/ + +#include <common.h> + +void __noreturn reset_cpu (ulong addr) +{ +mips_machine_restart (); +} +EXPORT_SYMBOL (reset_cpu);
no need of this manage it at machine level
Quoted 33 lines
arch/mips/include/asm/types.h new file +27
-0@@ -0,0 +1,44 @@ +/* +* 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 +* +*/ + +#ifndef __ASM_MIPS_TYPES_H +#define __ASM_MIPS_TYPES_H + +#ifndef __ASSEMBLY__ + +typedef __signed__ char __s8; +typedef unsigned char __u8 ; + +typedef __signed__ short __s16 ;
arch/mips/include/asm/types.h line 37
Quoted 10 lines
arch/mips/include/asm/types.h new file +10
-0+typedef unsigned short __u16 ; + +typedef __signed__ int __s32; +typedef unsigned int __u32 ; + +typedef __signed__ long long __s64 ; +typedef unsigned long long __u64 ; + +typedef unsigned char u8 ; +
can we factorize
it's copy across arch
Quoted 37 lines
arch/mips/include/asm/types.h new file +7
-0+typedef unsigned short u16 ; + +typedef unsigned int u32 ; + +#endif /* __ASSEMBLY__ */ + +#endif /* __ASM_MIPS_TYPES_H */ arch/mips/lib/memory.c new file +24
-0@@ -0,0 +1,34 @@ +/* +* Copyright (c) 2011 Antony Pavlov <[email protected]> +* See file CREDITS for list of people who contributed to this project. +* +* This file is part of barebox. +* +* 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 +*/ + +#include <common.h> +#include <init.h>
arch/mips/lib/memory.c line 34
Quoted 10 lines
arch/mips/lib/memory.c new file +10
-0+#include <mem_malloc.h> +#include <asm-generic/memory_layout.h> + +static int mips_mem_malloc_init (void ) +{ +mem_malloc_init ((void *)MALLOC_BASE , + (void *)(MALLOC_BASE +MALLOC_SIZE )); +return 0 ; +} +core_initcall (mips_mem_malloc_init);
can we factorise this code this is the same on arm, m68k, blackfin too
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 3/4] MIPS: add qemu malta board support to barebox
In reply to Antony PavlovQuoted 5 lines
arch/mips/boards/qemu-malta/serial.c new file +5
-0+ +/** to work with the 8250 UART driver implementation we need this function */ +static unsigned int malta_uart_read (unsigned long base,unsigned char reg_idx) +{ +return readb ((char *)base + reg_idx);
arch/mips/boards/qemu-malta/serial.c line 42
Quoted 10 lines
arch/mips/boards/qemu-malta/serial.c new file +10
-0+} + +/** to work with the 8250 UART driver implementation we need this function */ +static void malta_uart_write (unsigned int val,unsigned long base,unsigned char reg_idx) +{ +writeb (val, (char *)base + reg_idx); +} + +static struct NS16550_plat serial_plat = { + .clock =1843200 ,/* no matter */
why no matter?
arch/mips/boards/qemu-malta/serial.c line 45
Quoted 3 lines
arch/mips/boards/qemu-malta/serial.c new file +3
-0+ .f_caps = CONSOLE_STDIN | CONSOLE_STDOUT | CONSOLE_STDERR, + .reg_read = malta_uart_read, + .reg_write = malta_uart_write,
plewase tab for indent
Quoted 22 lines
arch/mips/boards/qemu-malta/serial.c new file +16
-0+}; + +/* we are expecting always one serial interface */ +static struct device_d generic_malta_serial_device = { + .name ="serial_ns16550" , + .map_base =DEBUG_LL_UART_ADDR , + .size =8 , + .platform_data = (void *)&serial_plat, +}; + +static int malta_console_init (void ) +{ +/* Register the serial port */ +return register_device (&generic_malta_serial_device); +} +console_initcall (malta_console_init);arch/mips/configs/qemu-malta_defconfig new file +0
-0
arch/mips/configs/qemu-malta_defconfig line 4
Quoted 4 lines
arch/mips/configs/qemu-malta_defconfig new file +4
-0@@ -0,0 +1,46 @@ +CONFIG_STACK_SIZE=0x7000 +CONFIG_BROKEN=y +CONFIG_EXPERIMENTAL=y +CONFIG_PROMPT="uboot:"
barebox
arch/mips/configs/qemu-malta_defconfig line 13
Quoted 9 lines
arch/mips/configs/qemu-malta_defconfig new file +9
-0+CONFIG_LONGHELP=y +CONFIG_HUSH_FANCY_PROMPT=y +CONFIG_HUSH_GETOPT=y +CONFIG_CMDLINE_EDITING=y +CONFIG_AUTO_COMPLETE=y +CONFIG_MENU=y +CONFIG_PASSWORD=y +CONFIG_PARTITION=y +# CONFIG_DEFAULT_ENVIRONMENT is not set
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 2/4] MIPS: add Malta machine support to barebox
In reply to Antony PavlovQuoted 68 lines · Antony Pavlov
The machines use big-endian mode.
Only supported peripheral is serial port.Signed-off-by Antony Pavlov <[email protected]>--- arch/mips/Kconfig | 13 ++++++++ arch/mips/Makefile | 2 + arch/mips/mach-mti-malta/Kconfig | 20 ++++++++++++ arch/mips/mach-mti-malta/Makefile | 1 + arch/mips/mach-mti-malta/include/mach/hardware.h | 32 +++++++++++++++++++ arch/mips/mach-mti-malta/reset.c | 36 ++++++++++++++++++++++ 6 files changed, 104 insertions(+), 0 deletions(-) create mode 100644 arch/mips/mach-mti-malta/Kconfig create mode 100644 arch/mips/mach-mti-malta/Makefile create mode 100644 arch/mips/mach-mti-malta/include/mach/hardware.h create mode 100644 arch/mips/mach-mti-malta/reset.carch/mips/Kconfig +13
-0@@ -21,6 +21,17 @@ config GENERIC_LINKER_SCRIPT bool default y +choice + prompt "MIPS system type" + +config MACH_MIPS_MALTA + bool "Malta" + select CSRC_R4K_LIB + select DRIVER_SERIAL_NS16550 + select SYS_SUPPORTS_BIG_ENDIAN + +endchoice + # # Endianess selection. Sufficiently obscure so many users don't know what to # answer,so we try hard to limit the available choices. Also the use of a@@ -46,6 +57,8 @@ config CPU_LITTLE_ENDIAN endchoice +source arch/mips/mach-mti-malta/Kconfig + source common/Kconfig source commands/Kconfig source net/Kconfigarch/mips/Makefile +2
-0@@ -27,6 +27,8 @@ CPPFLAGS += -fdata-sections -ffunction-sections LDFLAGS_uboot += -static --gc-sections endif +machine-$(CONFIG_MACH_MIPS_MALTA) := mti-malta + machdirs := $(patsubst %,arch/mips/mach-%/,$(machine-y)) ifeq ($(KBUILD_SRC),)arch/mips/mach-mti-malta/Kconfig new file +1
-0@@ -0,0 +1,20 @@ +if MACH_MIPS_MALTA
arch/mips/mach-mti-malta/Kconfig line 11
Quoted 10 lines
arch/mips/mach-mti-malta/Kconfig new file +10
-0+ +config ARCH_TEXT_BASE + hex + default 0xa0800000 + +menu "Mach specific settings " + +config DEBUG_LL + bool "DEBUG_LL" + default n
no need it's n by default
Quoted 42 lines
arch/mips/mach-mti-malta/Kconfig new file +9
-0+ +endmenu + +choice + prompt "Select your board" + +endchoice + +endifarch/mips/mach-mti-malta/Makefile new file +1
-0@@ -0,0 +1 @@ +obj-y += reset.oarch/mips/mach-mti-malta/include/mach/hardware.h new file +20
-0@@ -0,0 +1,32 @@ +/* +* Copyright (c) 2011 Antony Pavlov <[email protected]> +* See file CREDITS for list of people who contributed to this project. +* +* This file is part of barebox. +* +* barebox 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 3 of the License, or +* (at your option) any later version. +* +* barebox 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 barebox. If not, see <http://www.gnu.org/licenses/>. +*/ +
arch/mips/mach-mti-malta/include/mach/hardware.h line 30
Quoted 10 lines
arch/mips/mach-mti-malta/include/mach/hardware.h new file +10
-0+#ifndef __INCLUDE_ARCH_HARDWARE_H__ +#define __INCLUDE_ARCH_HARDWARE_H__ + +#define DEBUG_LL_UART_ADDR 0xb00003f8 + +/* +* Reset register. +*/ +#define SOFTRES_REG 0xbf000500 +#define GORESET 0x42
whitespace please check
Quoted 34 lines
arch/mips/mach-mti-malta/include/mach/hardware.h new file +2
-0+ +#endif /* __INCLUDE_ARCH_HARDWARE_H__ */ arch/mips/mach-mti-malta/reset.c new file +26
-0@@ -0,0 +1,36 @@ +/* +* Copyright (C) 2011 Antony Pavlov <[email protected]> +* +* 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 +* +*/ + +/** +* @file +* @brief Resetting an CPU +*/ + +#include <common.h>
arch/mips/mach-mti-malta/reset.c line 36
Quoted 10 lines
arch/mips/mach-mti-malta/reset.c new file +10
-0+#include <asm/io.h> +#include <mach/hardware.h> + +void __noreturn mips_machine_restart () +{ +__raw_writel (GORESET , (char *)SOFTRES_REG ); +while (1 ); +/*NOTREACHED*/ +} +EXPORT_SYMBOL (mips_machine_restart);
declare the reset here directly
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
2011/6/30 Jean-Christophe PLAGNIOL-VILLARD <[email protected]>
Quoted 121 lines
Quoted 23 lines
arch/mips/boot/reset.c new file +22
-0@@ -0,0 +1,32 @@ +/* +* Copyright (C) 2011 Antony Pavlov <[email protected]> +* +* 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 +* +*/ + +/** +* @file arch/mips/boot/reset.c line 32
Quoted 10 lines
arch/mips/boot/reset.c new file +10
-0+* @brief Resetting an CPU +*/ + +#include <common.h> + +void __noreturn reset_cpu (ulong addr) +{ +mips_machine_restart (); +} +EXPORT_SYMBOL (reset_cpu);no need of this manage it at machine level
Review
Quoted 1 line
(quoted diff) +0
-0
b/arch/mips/include/asm/types.hQuoted 32 lines
new file mode 100644
index 0000000..5c1e2dearch/mips/include/asm/types.h new file +27
-0@@ -0,0 +1,44 @@ +/* +* 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 +* +*/ + +#ifndef __ASM_MIPS_TYPES_H +#define __ASM_MIPS_TYPES_H + +#ifndef __ASSEMBLY__ + +typedef __signed__ char __s8; +typedef unsigned char __u8 ; + +typedef __signed__ short __s16 ;arch/mips/include/asm/types.h line 37
Quoted 10 lines
arch/mips/include/asm/types.h new file +10
-0+typedef unsigned short __u16 ; + +typedef __signed__ int __s32; +typedef unsigned int __u32 ; + +typedef __signed__ long long __s64 ; +typedef unsigned long long __u64 ; + +typedef unsigned char u8 ; +can we factorize
it's copy across archReview
Quoted 8 lines
arch/mips/include/asm/types.h new file +7
-0+typedef unsigned short u16 ; + +typedef unsigned int u32 ; + +#endif /* __ASSEMBLY__ */ + +#endif /* __ASM_MIPS_TYPES_H */ (quoted diff) +0
-0
b/arch/mips/include/mach/debug_ll.hQuoted 32 lines
new file mode 100644
index 0000000..9fff7bearch/mips/lib/memory.c new file +27
-0@@ -0,0 +1,34 @@ +/* +* Copyright (c) 2011 Antony Pavlov <[email protected]> +* See file CREDITS for list of people who contributed to this project. +* +* This file is part of barebox. +* +* 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 +*/ + +#include <common.h> +#include <init.h> +#include <mem_malloc.h> +#include <asm-generic/memory_layout.h> +
Quoted 9 lines
arch/mips/lib/memory.c line 34
Quoted 7 lines
arch/mips/lib/memory.c new file +7
-0+static int mips_mem_malloc_init (void ) +{ +mem_malloc_init ((void *)MALLOC_BASE , + (void *)(MALLOC_BASE +MALLOC_SIZE )); +return 0 ; +} +core_initcall (mips_mem_malloc_init);can we factorise this code this is the same on arm, m68k, blackfin too
...and nios2 :)
Quoted 9 lines
Best Regards,
J._______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 3/4] MIPS: add qemu malta board support to barebox
In reply to Jean-Christophe PLAGNIOL-VILLARDQuoted 3 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 2 lines
+static struct
NS16550_platserial_plat= {
+ .clock = 1843200, /* no matter */why no matter?
This is the part of the file arch/mips/boards/qemu-malta/serial.c.
It is support for the emulated rs232 port.
The emulated rs232 port print characters to stdio of qemu. Emulated port has no need for correct speed setup.
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 6 lines · Jean-Christophe PLAGNIOL-VILLARD
arch/mips/boot/reset.c line 32
Quoted 5 lines
arch/mips/boot/reset.c new file +5
-0+void __noreturn reset_cpu (ulong addr) +{ + mips_machine_restart(); +} +EXPORT_SYMBOL (reset_cpu);no need of this manage it at machine level
I have made reset_cpu() per-machine function.
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
HI,
Could you stop to post in HTML please
this ML is plain/TEXT only
Best Regards,
J.
Quoted 136 lines · Franck JULLIEN
2011/6/30 Jean-Christophe PLAGNIOL-VILLARD <[email protected]> > @@ -0,0 +1,32 @@ > +/* > + * Copyright (C) 2011 Antony Pavlov <[email protected]> > + * > + * 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 > + * > + */ > + > +/** > + * @file > + * @brief Resetting an CPU > + */ > + > +#include <common.h> > + > +void __noreturn reset_cpu(ulong addr) > +{ > + mips_machine_restart(); > +} > +EXPORT_SYMBOL(reset_cpu); no need of this manage it at machine level > diff --git a/arch/mips/include/asm/types.h b/arch/mips/include/asm/types.h > new file mode 100644 > index 0000000..5c1e2de > --- /dev/null > +++ b/arch/mips/include/asm/types.h > @@ -0,0 +1,44 @@ > +/* > + * 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 > + * > + */ > + > +#ifndef __ASM_MIPS_TYPES_H > +#define __ASM_MIPS_TYPES_H > + > +#ifndef __ASSEMBLY__ > + > +typedef __signed__ char __s8; > +typedef unsigned char __u8; > + > +typedef __signed__ short __s16; > +typedef unsigned short __u16; > + > +typedef __signed__ int __s32; > +typedef unsigned int __u32; > + > +typedef __signed__ long long __s64; > +typedef unsigned long long __u64; > + > +typedef unsigned char u8; > + can we factorize it's copy across arch > +typedef unsigned short u16; > + > +typedef unsigned int u32; > + > +#endif /* __ASSEMBLY__ */ > + > +#endif /* __ASM_MIPS_TYPES_H */ > diff --git a/arch/mips/include/mach/debug_ll.h b/arch/mips/include/mach/debug_ll.h > new file mode 100644 > index 0000000..9fff7be > --- /dev/null > +++ b/arch/mips/lib/memory.c > @@ -0,0 +1,34 @@ > +/* > + * Copyright (c) 2011 Antony Pavlov <[email protected]> > + * See file CREDITS for list of people who contributed to this project. > + * > + * This file is part of barebox. > + * > + * 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 > + */ > + > +#include <common.h> > +#include <init.h> > +#include <mem_malloc.h> > +#include <asm-generic/memory_layout.h> > + > +static int mips_mem_malloc_init(void) > +{ > + mem_malloc_init((void *)MALLOC_BASE, > + (void *)(MALLOC_BASE + MALLOC_SIZE)); > + return 0; > +} > +core_initcall(mips_mem_malloc_init); can we factorise this code this is the same on arm, m68k, blackfin too ...and nios2 :)
Quoted 7 lines
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 3/4] MIPS: add qemu malta board support to barebox
In reply to Antony PavlovQuoted 21 lines
+ * 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
+ *
+ */arch/mips/boards/qemu-malta/serial.c new file +13
-0+ +#include <common.h> +#include <types.h> +#include <driver.h> +#include <init.h> +#include <ns16550.h> +#include <mach/hardware.h> +#include <asm/io.h> + +/** to work with the 8250 UART driver implementation we need this function */ +static unsigned int malta_uart_read (unsigned long base,unsigned char reg_idx) +{ +return readb ((char *)base + reg_idx);
arch/mips/boards/qemu-malta/serial.c line 42
Quoted 10 lines
arch/mips/boards/qemu-malta/serial.c new file +10
-0+} + +/** to work with the 8250 UART driver implementation we need this function */ +static void malta_uart_write (unsigned int val,unsigned long base,unsigned char reg_idx) +{ +writeb (val, (char *)base + reg_idx); +} + +static struct NS16550_plat serial_plat = { + .clock =1843200 ,/* no matter */
I check the kernel and they use 3686400
furture more there is no qemu-malta as the malta is a real hw emulation even on qemu
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 3/4] MIPS: add qemu malta board support to barebox
Quoted 37 lines · Jean-Christophe PLAGNIOL-VILLARD
Quoted 29 lines
+ * 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
+ *
+ */arch/mips/boards/qemu-malta/serial.c new file +10
-0+ +#include <common.h> +#include <types.h> +#include <driver.h> +#include <init.h> +#include <ns16550.h> +#include <mach/hardware.h> +#include <asm/io.h> + +/** to work with the 8250 UART driver implementation we need this function */
+static unsigned intmalta_uart_read(unsigned long base, unsigned char reg_idx)arch/mips/boards/qemu-malta/serial.c new file +5
-0+{ +return readb ((char *)base + reg_idx); +} + +/** to work with the 8250 UART driver implementation we need this function */
+static voidmalta_uart_write(unsigned int val, unsigned long base, unsigned char reg_idx)arch/mips/boards/qemu-malta/serial.c line 42
Quoted 6 lines
arch/mips/boards/qemu-malta/serial.c new file +6
-0+{ +writeb (val, (char *)base + reg_idx); +} + +static struct NS16550_plat serial_plat = { + .clock =1843200 ,/* no matter */ I check the kernel and they use 3686400
Quoted 2 lines
furture more there is no qemu-malta as the malta is a real hw emulation even on qemu
Honesty is the best policy.
I have no real malta board, but I have qemu-malta pseudo-board. I can test barebox on the emulator, but I can't give a warranty that barebox will work on real malta board.
The MIPS Malta is a reconfigurable device
(http://www.linux-mips.org/wiki/Mips_Malta).
It can be used with very different core cards.
So, I have separated qemu-malta barebox board directory, and nobody can imagine to run it on real malta board.
But if I have malta barebox board directory, anybody can be misled.
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Quoted 1 line · Antony Pavlov
Barebox can use only uncached memory.
In addition to super-summarized one-liner commit log, I'd like to see the reason why it is.
Quoted 8 lines
Signed-off-by Antony Pavlov<[email protected]>--- arch/mips/Kconfig | 54 ++ arch/mips/Makefile | 63 +++ arch/mips/boot/Makefile | 5 + arch/mips/boot/entry.c | 79 +++ arch/mips/boot/head.S | 233 ++++++++ arch/mips/boot/reset.c | 32 ++
Is there any reason why head.S, not start.S? Other archs in the tree name it start*.[cS].
Quoted 8 lines
arch/mips/include/asm/barebox.h | 24 + arch/mips/include/asm/bitops.h | 32 ++ arch/mips/include/asm/byteorder.h | 30 + arch/mips/include/asm/common.h | 29 + arch/mips/include/asm/elf.h | 30 + arch/mips/include/asm/io.h | 73 +++ arch/mips/include/asm/mipsregs.h | 988 +++++++++++++++++++++++++++++++++++ arch/mips/include/asm/module.h | 36 ++
Quoted 8 lines
arch/mips/include/asm/posix_types.h | 48 ++ arch/mips/include/asm/regdef.h | 100 ++++ arch/mips/include/asm/sections.h | 1 + arch/mips/include/asm/sgidefs.h | 44 ++ arch/mips/include/asm/string.h | 31 ++ arch/mips/include/asm/swab.h | 59 ++ arch/mips/include/asm/types.h | 44 ++ arch/mips/include/mach/debug_ll.h | 35 ++
And I would like to know where these kernel headers from. If it's the Linux kernel, which version they're based on, and what modifications are made for barebox. Such information is useful when we add/remove bits in the future. This is why I did for my patches in this regard in a careful manner.
If it's from U-Boot tree,it's bad idea and let's redo from the scratch. Starting small is good, starting based on U-Boot is not good in any area.
Quoted 9 lines
arch/mips/lib/Makefile | 6 + arch/mips/lib/ashldi3.c | 27 + arch/mips/lib/ashrdi3.c | 29 + arch/mips/lib/barebox.lds.S | 76 +++ arch/mips/lib/csrc-r4k.c | 50 ++ arch/mips/lib/libgcc.h | 25 + arch/mips/lib/lshrdi3.c | 27 + arch/mips/lib/memory.c | 34 ++ 30 files changed, 2344 insertions(+), 0 deletions(-)
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 2/4] MIPS: add Malta machine support to barebox
In reply to Antony PavlovQuoted 12 lines · Antony Pavlov
The machines use big-endian mode.
Only supported peripheral is serial port.Signed-off-by Antony Pavlov<[email protected]>--- arch/mips/Kconfig | 13 ++++++++ arch/mips/Makefile | 2 + arch/mips/mach-mti-malta/Kconfig | 20 ++++++++++++ arch/mips/mach-mti-malta/Makefile | 1 + arch/mips/mach-mti-malta/include/mach/hardware.h | 32 +++++++++++++++++++ arch/mips/mach-mti-malta/reset.c | 36 ++++++++++++++++++++++ 6 files changed, 104 insertions(+), 0 deletions(-)
Quoted 4 lines
create mode 100644
arch/mips/mach-mti-malta/Kconfigcreate mode 100644arch/mips/mach-mti-malta/Makefilecreate mode 100644arch/mips/mach-mti-malta/include/mach/hardware.hcreate mode 100644arch/mips/mach-mti-malta/reset.c
Just mach-malta would be good? I don't want to see two '-' hyphens.
I'm working on the ARM kernel these days, and find mach/plat-based categorizing technique useful/promising, and this is a good opportunity to try in this MIPS support (even if the Linux/MIPS kernel doesn't).
Quoted 6 lines
arch/mips/mach-mti-malta/include/mach/hardware.h new file +0
-0
arch/mips/mach-mti-malta/include/mach/hardware.h line 10
Quoted 10 lines
arch/mips/mach-mti-malta/include/mach/hardware.h new file +10
-0@@ -0,0 +1,32 @@ +/* +* Copyright (c) 2011 Antony Pavlov<[email protected]> +* See file CREDITS for list of people who contributed to this project. +* +* This file is part of barebox. +* +* barebox 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 3 of the License, or +* (at your option) any later version.
GPLv3? I'm not sure which GPL version should be applied to barebox, but as it's highly based on the Linux kernel technology, GPLv2 (or later) would be the case.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 2/4] MIPS: add Malta machine support to barebox
Quoted 36 lines · Shinya Kuribayashi
Quoted 4 lines · Antony Pavlov
The machines use big-endian mode.
Only supported peripheral is serial port.Signed-off-by Antony Pavlov<[email protected]>Quoted 12 lines
--- arch/mips/Kconfig | 13 ++++++++ arch/mips/Makefile | 2 + arch/mips/mach-mti-malta/Kconfig | 20 ++++++++++++ arch/mips/mach-mti-malta/Makefile | 1 + arch/mips/mach-mti-malta/include/mach/hardware.h | 32 +++++++++++++++++++ arch/mips/mach-mti-malta/reset.c | 36 ++++++++++++++++++++++ 6 files changed, 104 insertions(+), 0 deletions(-) create mode 100644 arch/mips/mach-mti-malta/Kconfig create mode 100644 arch/mips/mach-mti-malta/Makefile create mode 100644 arch/mips/mach-mti-malta/include/mach/hardware.h create mode 100644 arch/mips/mach-mti-malta/reset.cJust mach-malta would be good? I don't want to see two '-' hyphens.
I'm working on the ARM kernel these days, and find mach/plat-based categorizing technique useful/promising, and this is a good opportunity to try in this MIPS support (even if the Linux/MIPS kernel doesn't).
Quoted 12 lines
arch/mips/mach-mti-malta/include/mach/hardware.h new file +6
-0@@ -0,0 +1,32 @@ +/* +* Copyright (c) 2011 Antony Pavlov<[email protected]> +* See file CREDITS for list of people who contributed to this project. +* +* This file is part of barebox. +*
Quoted 8 lines
arch/mips/mach-mti-malta/include/mach/hardware.h line 10
Quoted 4 lines
arch/mips/mach-mti-malta/include/mach/hardware.h new file +4
-0+* barebox 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 3 of the License, or +* (at your option) any later version. GPLv3? I'm not sure which GPL version should be applied to barebox, but as it's highly based on the Linux kernel technology, GPLv2 (or later) would be the case.
Barebox is GPLv2 Only project
So Nack GPLv3
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 35 lines · Shinya Kuribayashi
Quoted 1 line · Antony Pavlov
Barebox can use only uncached memory.
In addition to super-summarized one-liner commit log, I'd like to see the reason why it is.
Quoted 8 lines
Signed-off-by Antony Pavlov<[email protected]>--- arch/mips/Kconfig | 54 ++ arch/mips/Makefile | 63 +++ arch/mips/boot/Makefile | 5 + arch/mips/boot/entry.c | 79 +++ arch/mips/boot/head.S | 233 ++++++++ arch/mips/boot/reset.c | 32 ++Is there any reason why
head.S, notstart.S? Other archs in the tree name it start*.[cS].Quoted 8 lines
arch/mips/include/asm/barebox.h | 24 + arch/mips/include/asm/bitops.h | 32 ++ arch/mips/include/asm/byteorder.h | 30 + arch/mips/include/asm/common.h | 29 + arch/mips/include/asm/elf.h | 30 + arch/mips/include/asm/io.h | 73 +++ arch/mips/include/asm/mipsregs.h | 988 +++++++++++++++++++++++++++++++++++ arch/mips/include/asm/module.h | 36 ++Quoted 8 lines
arch/mips/include/asm/posix_types.h | 48 ++ arch/mips/include/asm/regdef.h | 100 ++++ arch/mips/include/asm/sections.h | 1 + arch/mips/include/asm/sgidefs.h | 44 ++ arch/mips/include/asm/string.h | 31 ++ arch/mips/include/asm/swab.h | 59 ++ arch/mips/include/asm/types.h | 44 ++ arch/mips/include/mach/debug_ll.h | 35 ++
Quoted 8 lines
And I would like to know where these kernel headers from. If it's the Linux kernel, which version they're based on, and what modifications are made for barebox. Such information is useful when we add/remove bits in the future. This is why I did for my patches in this regard in a careful manner.
If it's from U-Boot tree,it's bad idea and let's redo from the scratch. Starting small is good, starting based on U-Boot is not good in any area.
100% agreed
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Quoted 6 lines · Shinya Kuribayashi
Quoted 2 lines · Antony Pavlov
Barebox can use only uncached memory.
In addition to super-summarized one-liner commit log, I'd like to see the reason why it is.
Because the using of KSEG1 is most elementary way to make barebox work on MIPS.
If you use KSEG1 you have no code for cache setup and no cache exceptions.
Quoted 2 lines
Is there any reason why
head.S, notstart.S? Other archs in the tree name it start*.[cS].
x86 and sandbox use other names.
In mips linux this file have name head.S.
But I don't insist on this name.
Quoted 2 lines
Quoted 2 lines
arch/mips/include/asm/barebox.h | 24 +
arch/mips/include/asm/bitops.h | 32 ++
...
Quoted 9 lines
Quoted 3 lines
arch/mips/include/asm/swab.h | 59 ++
arch/mips/include/asm/types.h | 44 ++
arch/mips/include/mach/debug_ll.h | 35 ++And I would like to know where these kernel headers from. If it's the Linux kernel, which version they're based on, and what modifications are made for barebox. Such information is useful when we add/remove bits in the future. This is why I did for my patches in this regard in a careful manner.
Good idea! I will use it.
Quoted 2 lines
If it's from U-Boot tree,it's bad idea and let's redo from the scratch. Starting small is good, starting based on U-Boot is not good in any area.
:))))
is U-Boot so terrible?
But I agree, now there is no reason starting based on U-Boot.
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 2/4] MIPS: add Malta machine support to barebox
In reply to Jean-Christophe PLAGNIOL-VILLARDQuoted 3 lines · Jean-Christophe PLAGNIOL-VILLARD
Barebox is GPLv2 Only project
So Nack GPLv3
Hmmm.
There are some GPLv3 licensed files.
$ cd barebox.git $ grep -RHn "either version 3" . Software Foundation, either version of the License, or ./arch/arm/mach-versatile/include/mach/debug_ll.h:7: * the Free Software Foundation, either version 3 of the License, or ./scripts/kconfig/zconf.tab.c:11: the Free Software Foundation, either version 3 of the License, or ./scripts/kconfig/zconf.tab.c_shipped:11: the Free Software Foundation, either version 3 of the License, or
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 2/4] MIPS: add Malta machine support to barebox
In reply to Shinya KuribayashiQuoted 1 line · Shinya Kuribayashi
On 6/29/11 12:24 PM, Antony Pavlov wrote:
...
Quoted 11 lines
Quoted 10 lines
arch/mips/mach-mti-malta/Makefile | 1 +
arch/mips/mach-mti-malta/include/mach/hardware.h| 32
+++++++++++++++++++
arch/mips/mach-mti-malta/reset.c | 36
++++++++++++++++++++++6 files changed, 104 insertions(+), 0 deletions(-)create mode 100644
arch/mips/mach-mti-malta/Kconfigcreate mode 100644arch/mips/mach-mti-malta/Makefilecreate mode 100644arch/mips/mach-mti-malta/include/mach/hardware.hcreate mode 100644arch/mips/mach-mti-malta/reset.c
Quoted 6 lines
Just mach-malta would be good? I don't want to see two '-' hyphens.
I'm working on the ARM kernel these days, and find mach/plat-based categorizing technique useful/promising, and this is a good opportunity to try in this MIPS support (even if the Linux/MIPS kernel doesn't).
I don't like very much 'mti-malta' name. linux kernel use this name, but I can change it :))
Quoted 8 lines
Quoted 4 lines
+ * barebox 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 3 of the License, or
+ * (at your option) any later version.GPLv3? I'm not sure which GPL version should be applied to barebox, but as it's highly based on the Linux kernel technology, GPLv2 (or later) would be the case.
Correct remark.
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 2/4] MIPS: add Malta machine support to barebox
In reply to Antony PavlovQuoted 10 lines · Antony Pavlov
Quoted 3 lines · Jean-Christophe PLAGNIOL-VILLARD
Barebox is GPLv2 Only project
So Nack GPLv3
Hmmm.
There are some GPLv3 licensed files.
so this was a mistake
Quoted 6 lines
$ cd barebox.git $ grep -RHn "either version 3" . Software Foundation, either version of the License, or ./arch/arm/mach-versatile/include/mach/debug_ll.h:7: * the Free Software Foundation, either version 3 of the License, or
we will drop them or relicence it
Quoted 4 lines
./scripts/kconfig/zconf.tab.c:11: the Free Software Foundation,
either version 3 of the License, or./scripts/kconfig/zconf.tab.c_shipped:11: the Free Software
Foundation, either version 3 of the License, or
it's host tool from the kernel
it does not impact Barebox it self
Quoted 4 lines
Signature · 3 lines
-- Best regards, Antony Pavlov
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 2/4] MIPS: add Malta machine support to barebox
In reply to Jean-Christophe PLAGNIOL-VILLARDQuoted 3 lines · Jean-Christophe PLAGNIOL-VILLARD
Barebox is GPLv2 Only project
So Nack GPLv3
See file barebox.git/arch/x86/mach-i386/reset.c:
--- begin ---
* 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. --- end ---
I think that this text does not conform with the proposition "Barebox is GPLv2 Only project" (there are the words "or any later version").
The more suitable version can be found inlinux-2.6.39/arch/mips/mti-malta/malta-reset.c:
--- begin ---
* This program is free software; you can distribute it and/or modify it * under the terms of the GNU General Public License (Version 2) as * published by the Free Software Foundation.
--- end ---
But let's check:
$ cd barebox.git $ grep -RHn "or (at your option) any later version" . | wc -l 431 $ make clean $ find -type f | grep -v "\(^./.git\|^./Documentation\|^./scripts\)" | wc -l 1640
At least 431 of 1640 files (approx. 26 %) are GPLv3-compatible.
Signature · 7 lines
Best regards, Antony Pavlov _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Re: [PATCH 2/4] MIPS: add Malta machine support to barebox
Quoted 15 lines · Antony Pavlov
Quoted 3 lines · Jean-Christophe PLAGNIOL-VILLARD
Barebox is GPLv2 Only project
So Nack GPLv3
See file
barebox.git/arch/x86/mach-i386/reset.c:
--- begin ---
* 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. --- end ---
Quoted 2 lines
I think that this text does not conform with the proposition "Barebox is GPLv2 Only project" (there are the words "or any later version").
the project is GPLv2 Only does not means you can not have GPLv2 or later code but does mean you can NOT have GPLv3 inside
Same as in the kernel
as we have GPLv2 Only licence inside
and a switch to the GPLv3 MUST be discuss before and not FORCED anyway
Best Regards,
J.
_______________________________________________
barebox mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/barebox