History

ARM: debug: Use generic 8250 debug_ll for omap3/4/5

We want to use generic 8250 debug_ll code to get DEBUG_UNCOMPRESS working and to simplify the code. The old debug_ll code is no longer needed and the machine ID based detection is no longer used. Note that for most part there's no need to keep DEBUG_LL enabled. We now have CONFIG_SERIAL_EARLYCON working very early as long as the kernel cmdline has "earlycon" in it and the board specific dts file has chosen configured with with the port using stdout-path.

Tony Lindgren committed 9 years ago

Commit fc23beb1 parent d2b310b2 files · +12 −38Browse files

Showing the changes to arch/arm/include/debug (1 of 2 files). Show all

Unified · Split

arch/arm/include/debug/omap2plus.S+0−32
@@ -13,14 +13,8 @@ · 12 unmodified lines
1313 #include <linux/serial_reg.h>
1414
1515 /* OMAP3 serial ports */
16−#define OMAP3_UART3_BASE 0x49020000
17−#define OMAP3_UART4_BASE 0x49042000 /* Only on 36xx */
1816 #define OMAP3_UART4_AM35XX_BASE 0x4809E000 /* Only on AM35xx */
1917
20−/* OMAP4 serial ports */
21−#define OMAP4_UART3_BASE 0x48020000
22−#define OMAP4_UART4_BASE 0x4806e000
23−
2418 /* TI81XX serial ports */
2519 #define TI81XX_UART1_BASE 0x48020000
2620 #define TI81XX_UART2_BASE 0x48022000
@@ -32,12 +26,6 @@ · 5 unmodified lines
3226 /* AM33XX serial port */
3327 #define AM33XX_UART1_BASE 0x44E09000
3428
35−/* OMAP5 serial ports */
36−#define OMAP5_UART3_BASE OMAP4_UART3_BASE
37−#define OMAP5_UART4_BASE OMAP4_UART4_BASE
38−#define OMAP5_UART5_BASE 0x48066000
39−#define OMAP5_UART6_BASE 0x48068000
40−
4129 /* External port on Zoom2/3 */
4230 #define ZOOM_UART_BASE 0x10000000
4331 #define ZOOM_UART_VIRT 0xfa400000
@@ -68,26 +56,6 @@ omap_uart_lsr: .word 0 · 24 unmodified lines
6856 bne 100f @ already configured
6957
7058 /* Configure the UART offset from the phys/virt base */
71−#ifdef CONFIG_DEBUG_OMAP3UART3
72− mov \rp, #UART_OFFSET(OMAP3_UART1_BASE)
73− add \rp, \rp, #0x00fb0000
74− add \rp, \rp, #0x00006000 @ OMAP3_UART3_BASE
75− b 98f
76−#endif
77−#ifdef CONFIG_DEBUG_OMAP4UART3
78− mov \rp, #UART_OFFSET(OMAP4_UART3_BASE)
79− b 98f
80−#endif
81−#ifdef CONFIG_DEBUG_OMAP3UART4
82− mov \rp, #UART_OFFSET(OMAP3_UART1_BASE)
83− add \rp, \rp, #0x00fb0000
84− add \rp, \rp, #0x00028000 @ OMAP3_UART4_BASE
85− b 98f
86−#endif
87−#ifdef CONFIG_DEBUG_OMAP4UART4
88− mov \rp, #UART_OFFSET(OMAP4_UART4_BASE)
89− b 98f
90−#endif
9159 #ifdef CONFIG_DEBUG_TI81XXUART1
9260 mov \rp, #UART_OFFSET(TI81XX_UART1_BASE)
9361 b 98f

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t