Skip to content

Commit d2c215a

Browse files
Hartley SweetenRussell King
authored andcommitted
ARM: 7793/1: debug: use generic option for ep93xx PL10x debug port
The generic option DEBUG_LL_UART_PL01X is now used to select the UART type for the kernel low-level debugging on the ep93xx platform. This enables two config options to provide the physical and virtual base address of the debug UART. Use the generic options instead of providing platform specific options to select the debug UART. UART1 is selected with: DEBUG_UART_PHYS = 0x808c0000 DEBUG_UART_VIRT = 0xfedc0000 UART2 is selected with: DEBUG_UART_PHYS = 0x808d0000 DEBUG_UART_VIRT = 0xfedd0000 UART3 is selected with: DEBUG_UART_PHYS = 0x808e0000 DEBUG_UART_VIRT = 0xfede0000 The selected UART must already be initialized by the bootloader. If it isn't setup nothing will appear (which might be desired). Signed-off-by: H Hartley Sweeten <hsweeten@visionengravers.com> Cc: Ryan Mallon <rmallon@gmail.com> Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
1 parent 0dc0e47 commit d2c215a

2 files changed

Lines changed: 2 additions & 26 deletions

File tree

‎arch/arm/mach-ep93xx/Kconfig‎

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -194,20 +194,6 @@ config MACH_VISION_EP9307
194194
Say 'Y' here if you want your kernel to support the
195195
Vision Engraving Systems EP9307 SoM.
196196

197-
choice
198-
prompt "Select a UART for early kernel messages"
199-
200-
config EP93XX_EARLY_UART1
201-
bool "UART1"
202-
203-
config EP93XX_EARLY_UART2
204-
bool "UART2"
205-
206-
config EP93XX_EARLY_UART3
207-
bool "UART3"
208-
209-
endchoice
210-
211197
endmenu
212198

213199
endif

‎arch/arm/mach-ep93xx/include/mach/uncompress.h‎

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31,18 +31,8 @@ static void __raw_writel(unsigned int value, unsigned int ptr)
3131
*((volatile unsigned int *)ptr) = value;
3232
}
3333

34-
#if defined(CONFIG_EP93XX_EARLY_UART1)
35-
#define UART_BASE EP93XX_UART1_PHYS_BASE
36-
#elif defined(CONFIG_EP93XX_EARLY_UART2)
37-
#define UART_BASE EP93XX_UART2_PHYS_BASE
38-
#elif defined(CONFIG_EP93XX_EARLY_UART3)
39-
#define UART_BASE EP93XX_UART3_PHYS_BASE
40-
#else
41-
#define UART_BASE EP93XX_UART1_PHYS_BASE
42-
#endif
43-
44-
#define PHYS_UART_DATA (UART_BASE + 0x00)
45-
#define PHYS_UART_FLAG (UART_BASE + 0x18)
34+
#define PHYS_UART_DATA (CONFIG_DEBUG_UART_PHYS + 0x00)
35+
#define PHYS_UART_FLAG (CONFIG_DEBUG_UART_PHYS + 0x18)
4636
#define UART_FLAG_TXFF 0x20
4737

4838
static inline void putc(int c)

0 commit comments

Comments
 (0)