ARM: introduce debug_ll_pl011.h
Subsystems (7)
cover ARM: introduce debug_ll_pl011.h
Antony Pavlov (6):
ARM: introduce debug_ll_pl011.h
ARM: vexpress: debug_ll.h: switch to debug_ll_pl011.h
ARM: highbank: debug_ll.h: switch to debug_ll_pl011.h
ARM: versatile: enable missed HAS_DEBUG_LL
ARM: versatile: debug_ll.h: switch to debug_ll_pl011.h
ARM: bcm2835: add DEBUG_LL support
arch/arm/Kconfig | 2 ++ arch/arm/include/asm/debug_ll_pl011.h | 25 +++++++++++++++++++++++ arch/arm/mach-bcm2835/include/mach/debug_ll.h | 27 +++++++++++++++++++++++++ arch/arm/mach-highbank/include/mach/debug_ll.h | 16 ++------------- arch/arm/mach-versatile/include/mach/debug_ll.h | 15 ++------------ arch/arm/mach-vexpress/include/mach/debug_ll.h | 15 +++----------- 6 files changed, 61 insertions(+), 39 deletions(-) create mode 100644 arch/arm/include/asm/debug_ll_pl011.h create mode 100644 arch/arm/mach-bcm2835/include/mach/debug_ll.h
Signature · 7 lines
2.1.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 1/6 ARM: introduce debug_ll_pl011.h
--- arch/arm/include/asm/debug_ll_pl011.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+)
arch/arm/include/asm/debug_ll_pl011.h new file +25 -0
@@ -0,0 +1,25 @@ +#ifndef __INCLUDE_ARM_ASM_DEBUG_LL_PL011_H__ +#define __INCLUDE_ARM_ASM_DEBUG_LL_PL011_H__ + +#ifndef DEBUG_LL_UART_ADDR +#error DEBUG_LL_UART_ADDR is undefined! +#endif + +#include <io.h> +#include <linux/amba/serial.h> + +static inline void PUTC_LL (char c) +{ +/* Wait until there is space in the FIFO */ +while (readl (DEBUG_LL_UART_ADDR + UART01x_FR) & UART01x_FR_TXFF) + ; + +/* Send the character */ +writel (c,DEBUG_LL_UART_ADDR + UART01x_DR); + +/* Wait to make sure it hits the line, in case we die too soon. */ +while (readl (DEBUG_LL_UART_ADDR + UART01x_FR) & UART01x_FR_TXFF) + ; +} + +#endif /* __INCLUDE_ARM_ASM_DEBUG_LL_PL011_H__ */
Signature · 7 lines
2.1.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 2/6 ARM: vexpress: debug_ll.h: switch to debug_ll_pl011.h
In reply to Antony Pavlov--- arch/arm/mach-vexpress/include/mach/debug_ll.h | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-)
arch/arm/mach-vexpress/include/mach/debug_ll.h +3 -12
@@ -14,20 +14,11 @@#define DEBUG_LL_PHYS_BASE_RS1 0x1c000000#ifdef MP -#define UART_BASE DEBUG_LL_PHYS_BASE +#define DEBUG_LL_UART_ADDR DEBUG_LL_PHYS_BASE#else -#define UART_BASE DEBUG_LL_PHYS_BASE_RS1 +#define DEBUG_LL_UART_ADDR DEBUG_LL_PHYS_BASE_RS1#endif -static inline void PUTC_LL (char c) -{ -/* Wait until there is space in the FIFO */ -while (readl (UART_BASE + UART01x_FR) & UART01x_FR_TXFF); +#include <asm/debug_ll_pl011.h> -/* Send the character */ -writel (c,UART_BASE + UART01x_DR); - -/* Wait to make sure it hits the line, in case we die too soon. */ -while (readl (UART_BASE + UART01x_FR) & UART01x_FR_TXFF); -}#endif
Signature · 7 lines
2.1.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 3/6 ARM: highbank: debug_ll.h: switch to debug_ll_pl011.h
In reply to Antony Pavlov--- arch/arm/mach-highbank/include/mach/debug_ll.h | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-)
arch/arm/mach-highbank/include/mach/debug_ll.h +2 -14
@@ -7,20 +7,8 @@#ifndef __MACH_DEBUG_LL_H__#define __MACH_DEBUG_LL_H__ -#include <linux/amba/serial.h> -#include <io.h> +#define DEBUG_LL_UART_ADDR 0xfff36000 -#define UART_BASE 0xfff36000 +#include <asm/debug_ll_pl011.h> -static inline void PUTC_LL (char c) -{ -/* Wait until there is space in the FIFO */ -while (readl (UART_BASE + UART01x_FR) & UART01x_FR_TXFF); - -/* Send the character */ -writel (c,UART_BASE + UART01x_DR); - -/* Wait to make sure it hits the line, in case we die too soon. */ -while (readl (UART_BASE + UART01x_FR) & UART01x_FR_TXFF); -}#endif
Signature · 7 lines
2.1.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 4/6 ARM: versatile: enable missed HAS_DEBUG_LL
In reply to Antony PavlovWe already have arch/arm/mach-versatile/include/mach/debug_ll.h but HAS_DEBUG_LL is missed.
--- arch/arm/Kconfig | 1 + 1 file changed, 1 insertion(+)
arch/arm/Kconfig +1 -0
@@ -191,6 +191,7 @@ config ARCH_VERSATILE select CPU_ARM926T select GPIOLIB select HAVE_CLK + select HAS_DEBUG_LL config ARCH_VEXPRESS bool "ARM Vexpres boards"
Signature · 7 lines
2.1.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 5/6 ARM: versatile: debug_ll.h: switch to debug_ll_pl011.h
In reply to Antony Pavlov--- arch/arm/mach-versatile/include/mach/debug_ll.h | 15 ++------------- 1 file changed, 2 insertions(+), 13 deletions(-)
arch/arm/mach-versatile/include/mach/debug_ll.h +2 -13
@@ -16,19 +16,8 @@#ifndef __MACH_DEBUG_LL_H__#define __MACH_DEBUG_LL_H__ -#include <linux/amba/serial.h> -#include <io.h> +#define DEBUG_LL_UART_ADDR 0x101F1000 -static inline void PUTC_LL (char c) -{ -/* Wait until there is space in the FIFO */ -while (readl (0x101F1000 + UART01x_FR) & UART01x_FR_TXFF); - -/* Send the character */ -writel (c,0x101F1000 + UART01x_DR); - -/* Wait to make sure it hits the line, in case we die too soon. */ -while (readl (0x101F1000 + UART01x_FR) & UART01x_FR_TXFF); -} +#include <asm/debug_ll_pl011.h> #endif
Signature · 7 lines
2.1.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
PATCH 6/6 ARM: bcm2835: add DEBUG_LL support
In reply to Antony Pavlov--- arch/arm/Kconfig | 1 + arch/arm/mach-bcm2835/include/mach/debug_ll.h | 27 +++++++++++++++++++++++++++ 2 files changed, 28 insertions(+)
arch/arm/Kconfig +1 -0
@@ -53,6 +53,7 @@ config ARCH_BCM2835 select COMMON_CLK select CLOCKSOURCE_BCM2835 select ARM_AMBA + select HAS_DEBUG_LL config ARCH_CLPS711X bool "Cirrus Logic EP711x/EP721x/EP731x"
arch/arm/mach-bcm2835/include/mach/debug_ll.h new file +27 -0
@@ -0,0 +1,27 @@ +/* +* Copyright (C) 2014 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 __MACH_BCM2835_DEBUG_LL_H__ +#define __MACH_BCM2835_DEBUG_LL_H__ + +#include <mach/platform.h> + +#define DEBUG_LL_UART_ADDR BCM2835_UART0_BASE + +#include <asm/debug_ll_pl011.h> + +#endif /* __MACH_BCM2835_DEBUG_LL_H__ */
Signature · 7 lines
2.1.3 _______________________________________________ barebox mailing list [email protected] http://lists.infradead.org/mailman/listinfo/barebox
Sascha Hauer
AppliedQuoted 7 lines · Antony Pavlov
Antony Pavlov (6):
ARM: introducedebug_ll_pl011.h
ARM: vexpress:debug_ll.h: switch todebug_ll_pl011.h
ARM: highbank:debug_ll.h: switch todebug_ll_pl011.h
ARM: versatile: enable missedHAS_DEBUG_LL
ARM: versatile:debug_ll.h: switch todebug_ll_pl011.h
ARM: bcm2835: addDEBUG_LLsupport
Applied, thanks
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