Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ARM: at91: debug: add default DEBUG_LL addresses

Add configuration options for the most commonly used UART physical and
virtual addresses to ease the use of DEBUG_LL and earlyprintk.

Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>

+44 -14
+44 -14
arch/arm/Kconfig.debug
··· 109 109 0x80020000 | 0xf0020000 | UART8 110 110 0x80024000 | 0xf0024000 | UART9 111 111 112 - config DEBUG_AT91_UART 113 - bool "Kernel low-level debugging on Atmel SoCs" 114 - depends on ARCH_AT91 112 + config DEBUG_AT91_RM9200_DBGU 113 + bool "Kernel low-level debugging on AT91RM9200, AT91SAM9 DBGU" 114 + select DEBUG_AT91_UART 115 + depends on SOC_AT91RM9200 || SOC_AT91SAM9 115 116 help 116 - Say Y here if you want the debug print routines to direct 117 - their output to the serial port on atmel devices. 117 + Say Y here if you want kernel low-level debugging support 118 + on the DBGU port of: 119 + at91rm9200, at91sam9260, at91sam9g20, at91sam9261, 120 + at91sam9g10, at91sam9n12, at91sam9rl64, at91sam9x5 118 121 119 - SOC DEBUG_UART_PHYS DEBUG_UART_VIRT PORT 120 - rm9200, 9260/9g20, 0xfffff200 0xf8fff200 DBGU 121 - 9261/9g10, 9rl 122 - 9263, 9g45, sama5d3 0xffffee00 0xf8ffee00 DBGU 123 - sama5d4 0xfc00c000 0xfb00c000 USART3 124 - sama5d4 0xfc069000 0xfb069000 DBGU 125 - sama5d2 0xf8020000 0xf7020000 UART1 122 + config DEBUG_AT91_SAM9263_DBGU 123 + bool "Kernel low-level debugging on AT91SAM{9263,9G45,A5D3} DBGU" 124 + select DEBUG_AT91_UART 125 + depends on SOC_AT91SAM9 || SOC_SAMA5D3 126 + help 127 + Say Y here if you want kernel low-level debugging support 128 + on the DBGU port of: 129 + at91sam9263, at91sam9g45, at91sam9m10, 130 + sama5d3 126 131 127 - Please adjust DEBUG_UART_PHYS and DEBUG_UART_VIRT 128 - configuration options based on your needs. 132 + config DEBUG_AT91_SAMA5D2_UART1 133 + bool "Kernel low-level debugging on SAMA5D2 UART1" 134 + select DEBUG_AT91_UART 135 + depends on SOC_SAMA5D2 136 + help 137 + Say Y here if you want kernel low-level debugging support 138 + on the UART1 port of sama5d2. 139 + 140 + config DEBUG_AT91_SAMA5D4_USART3 141 + bool "Kernel low-level debugging on SAMA5D4 USART3" 142 + select DEBUG_AT91_UART 143 + depends on SOC_SAMA5D4 144 + help 145 + Say Y here if you want kernel low-level debugging support 146 + on the USART3 port of sama5d4. 129 147 130 148 config DEBUG_BCM2835 131 149 bool "Kernel low-level debugging on BCM2835 PL011 UART" ··· 1314 1296 1315 1297 endchoice 1316 1298 1299 + config DEBUG_AT91_UART 1300 + bool 1301 + depends on ARCH_AT91 1302 + 1317 1303 config DEBUG_EXYNOS_UART 1318 1304 bool 1319 1305 ··· 1524 1502 default 0xf1012000 if DEBUG_MVEBU_UART0_ALTERNATE 1525 1503 default 0xf1012100 if DEBUG_MVEBU_UART1_ALTERNATE 1526 1504 default 0xf7fc9000 if DEBUG_BERLIN_UART 1505 + default 0xf8020000 if DEBUG_AT91_SAMA5D2_UART1 1527 1506 default 0xf8b00000 if DEBUG_HIX5HD2_UART 1528 1507 default 0xf991e000 if DEBUG_QCOM_UARTDM 1508 + default 0xfc00c000 if DEBUG_AT91_SAMA5D4_USART3 1529 1509 default 0xfcb00000 if DEBUG_HI3620_UART 1530 1510 default 0xfd883000 if DEBUG_ALPINE_UART0 1531 1511 default 0xfe800000 if ARCH_IOP32X ··· 1542 1518 default 0xfffb0800 if DEBUG_OMAP1UART2 || DEBUG_OMAP7XXUART2 1543 1519 default 0xfffb9800 if DEBUG_OMAP1UART3 || DEBUG_OMAP7XXUART3 1544 1520 default 0xfffe8600 if DEBUG_BCM63XX_UART 1521 + default 0xffffee00 if DEBUG_AT91_SAM9263_DBGU 1522 + default 0xfffff200 if DEBUG_AT91_RM9200_DBGU 1545 1523 default 0xfffff700 if ARCH_IOP33X 1546 1524 depends on ARCH_EP93XX || \ 1547 1525 DEBUG_LL_UART_8250 || DEBUG_LL_UART_PL01X || \ ··· 1592 1566 DEBUG_S3C2410_UART1) 1593 1567 default 0xf7008000 if DEBUG_S3C24XX_UART && (DEBUG_S3C_UART2 || \ 1594 1568 DEBUG_S3C2410_UART2) 1569 + default 0xf7020000 if DEBUG_AT91_SAMA5D2_UART1 1595 1570 default 0xf7fc9000 if DEBUG_BERLIN_UART 1596 1571 default 0xf8007000 if DEBUG_HIP04_UART 1597 1572 default 0xf8009000 if DEBUG_VEXPRESS_UART0_CA9 1598 1573 default 0xf8090000 if DEBUG_VEXPRESS_UART0_RS1 1574 + default 0xf8ffee00 if DEBUG_AT91_SAM9263_DBGU 1575 + default 0xf8fff200 if DEBUG_AT91_RM9200_DBGU 1599 1576 default 0xfa71e000 if DEBUG_QCOM_UARTDM 1600 1577 default 0xfb002000 if DEBUG_CNS3XXX 1601 1578 default 0xfb009000 if DEBUG_REALVIEW_STD_PORT 1579 + default 0xfb00c000 if DEBUG_AT91_SAMA5D4_USART3 1602 1580 default 0xfb10c000 if DEBUG_REALVIEW_PB1176_PORT 1603 1581 default 0xfc40ab00 if DEBUG_BRCMSTB_UART 1604 1582 default 0xfc705000 if DEBUG_ZTE_ZX