···451451 config DEBUG_PICOXCELL_UART452452 depends on ARCH_PICOXCELL453453 bool "Use PicoXcell UART for low-level debug"454454+ select DEBUG_UART_8250454455 help455456 Say Y here if you want kernel low-level debugging support456457 on PicoXcell based platforms.···594593 config DEBUG_SOCFPGA_UART595594 depends on ARCH_SOCFPGA596595 bool "Use SOCFPGA UART for low-level debug"596596+ select DEBUG_UART_8250597597 help598598 Say Y here if you want kernel low-level debugging support599599 on SOCFPGA based platforms.···853851 default "debug/nomadik.S" if DEBUG_NOMADIK_UART854852 default "debug/nspire.S" if DEBUG_NSPIRE_CX_UART855853 default "debug/omap2plus.S" if DEBUG_OMAP2PLUS_UART856856- default "debug/picoxcell.S" if DEBUG_PICOXCELL_UART857854 default "debug/sirf.S" if DEBUG_SIRFPRIMA2_UART1 || DEBUG_SIRFMARCO_UART1858858- default "debug/socfpga.S" if DEBUG_SOCFPGA_UART859855 default "debug/sti.S" if DEBUG_STI_UART860856 default "debug/tegra.S" if DEBUG_TEGRA_UART861857 default "debug/u300.S" if DEBUG_U300_UART···886886 default 0x40100000 if DEBUG_PXA_UART1887887 default 0x42000000 if ARCH_GEMINI888888 default 0x7c0003f8 if FOOTBRIDGE889889+ default 0x80230000 if DEBUG_PICOXCELL_UART889890 default 0x90020000 if DEBUG_NSPIRE_CLASSIC_UART890891 default 0xc8000000 if ARCH_IXP4XX && !CPU_BIG_ENDIAN891892 default 0xc8000003 if ARCH_IXP4XX && CPU_BIG_ENDIAN···898897 default 0xf1012000 if ARCH_DOVE || ARCH_KIRKWOOD || ARCH_MV78XX0 || \899898 ARCH_ORION5X900899 default 0xfe800000 if ARCH_IOP32X900900+ default 0xffc02000 if DEBUG_SOCFPGA_UART901901 default 0xffd82340 if ARCH_IOP13XX902902 default 0xfffff700 if ARCH_IOP33X903903 depends on DEBUG_UART_8250···917915 default 0xfe012000 if ARCH_ORION5X918916 default 0xfe017000 if DEBUG_MMP_UART2919917 default 0xfe018000 if DEBUG_MMP_UART3918918+ default 0xfe230000 if DEBUG_PICOXCELL_UART920919 default 0xfe800000 if ARCH_IOP32X921920 default 0xfeb24000 if DEBUG_RK3X_UART0922921 default 0xfeb26000 if DEBUG_RK3X_UART1···925922 default 0xfed60000 if DEBUG_RK29_UART0926923 default 0xfed64000 if DEBUG_RK29_UART1 || DEBUG_RK3X_UART2927924 default 0xfed68000 if DEBUG_RK29_UART2 || DEBUG_RK3X_UART3925925+ default 0xfec02000 if DEBUG_SOCFPGA_UART928926 default 0xfed12000 if ARCH_KIRKWOOD929927 default 0xfee003f8 if FOOTBRIDGE930928 default 0xfee20000 if DEBUG_NSPIRE_CLASSIC_UART···940936 depends on DEBUG_UART_8250941937 default 0 if FOOTBRIDGE || ARCH_IOP32X942938 default 2939939+940940+config DEBUG_UART_8250_WORD941941+ bool "Use 32-bit accesses for 8250 UART"942942+ depends on DEBUG_UART_8250943943+ depends on DEBUG_UART_8250_SHIFT >= 2944944+ default y if DEBUG_PICOXCELL_UART || DEBUG_SOCFPGA_UART943945944946config DEBUG_UART_8250_FLOW_CONTROL945947 bool "Enable flow control for 8250 UART"
···11-/*22- * Copyright (c) 2011 Picochip Ltd., Jamie Iles33- *44- * This program is free software; you can redistribute it and/or modify55- * it under the terms of the GNU General Public License version 2 as66- * published by the Free Software Foundation.77- *88- * Derived from arch/arm/mach-davinci/include/mach/debug-macro.S to use 32-bit99- * accesses to the 8250.1010- */1111-1212-#include <linux/serial_reg.h>1313-1414- .macro senduart,rd,rx1515- str \rd, [\rx, #UART_TX << UART_SHIFT]1616- .endm1717-1818- .macro busyuart,rd,rx1919-1002: ldr \rd, [\rx, #UART_LSR << UART_SHIFT]2020- and \rd, \rd, #UART_LSR_TEMT | UART_LSR_THRE2121- teq \rd, #UART_LSR_TEMT | UART_LSR_THRE2222- bne 1002b2323- .endm2424-2525- /* The UART's don't have any flow control IO's wired up. */2626- .macro waituart,rd,rx2727- .endm
-19
arch/arm/include/debug/picoxcell.S
···11-/*22- * Copyright (c) 2011 Picochip Ltd., Jamie Iles33- *44- * This program is free software; you can redistribute it and/or modify55- * it under the terms of the GNU General Public License version 2 as66- * published by the Free Software Foundation.77- *88- */99-1010-#define UART_SHIFT 21111-#define PICOXCELL_UART1_BASE 0x802300001212-#define PHYS_TO_IO(x) (((x) & 0x00ffffff) | 0xfe000000)1313-1414- .macro addruart, rp, rv, tmp1515- ldr \rv, =PHYS_TO_IO(PICOXCELL_UART1_BASE)1616- ldr \rp, =PICOXCELL_UART1_BASE1717- .endm1818-1919-#include "8250_32.S"
-21
arch/arm/include/debug/socfpga.S
···11-/*22- * Copyright (C) 1994-1999 Russell King33- * Moved from linux/arch/arm/kernel/debug.S by Ben Dooks44- *55- * This program is free software; you can redistribute it and/or modify66- * it under the terms of the GNU General Public License version 2 as77- * published by the Free Software Foundation.88- */99-1010-#define UART_SHIFT 21111-#define DEBUG_LL_UART_OFFSET 0x000020001212-1313- .macro addruart, rp, rv, tmp1414- mov \rp, #DEBUG_LL_UART_OFFSET1515- orr \rp, \rp, #0x00c000001616- orr \rv, \rp, #0xfe000000 @ virtual base1717- orr \rp, \rp, #0xff000000 @ physical base1818- .endm1919-2020-#include "8250_32.S"2121-