arm: dcc: Add uart dcc support for armv8
PATCH 1/1 arm: dcc: Add uart dcc support for armv8
From: Siva Durga Prasad Paladugu <[email protected]>
Added UART DCC support for armv8
Signed-off-by Siva Durga Prasad Paladugu <[email protected]>
Signed-off-by Michal Simek <[email protected]>
---
Not sure if CONFIG_CPU_ARMV8 is the right symbol but we are following pattern above. Maybe CONFIG_ARM64?
--- drivers/serial/arm_dcc.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)
drivers/serial/arm_dcc.c +16 -0
@@ -61,6 +61,22 @@#define status_dcc (x) \ __asm__ volatile ("mrc p14, 0, %0, c14, c0, 0\n" : "=r" (x)) +#elif defined(CONFIG_CPU_ARMV8 ) +/* +* ARMV8 +*/ +#define DCC_RBIT (1 << 30) +#define DCC_WBIT (1 << 29) + +#define write_dcc (x) \ + __asm__ volatile ("msr dbgdtrtx_el0, %0\n" : : "r" (x)) + +#define read_dcc (x) \ + __asm__ volatile ("mrs %0, dbgdtrrx_el0\n" : "=r" (x)) + +#define status_dcc (x) \ + __asm__ volatile ("mrs %0, mdccsr_el0\n" : "=r" (x)) +#else #define DCC_RBIT (1 << 0)#define DCC_WBIT (1 << 1)
Signature · 1 line
2.3.5
PATCH 1/1 arm: dcc: Add uart dcc support for armv8
Quoted 6 lines · Michal Simek
From: Siva Durga Prasad Paladugu <[email protected]>
Added UART DCC support for armv8
Signed-off-by Siva Durga Prasad Paladugu <[email protected]>Signed-off-by Michal Simek <[email protected]>
Reviewed-by Tom Rini <[email protected]>
Signature · 1 line
Tom
PATCH 1/1 arm: dcc: Add uart dcc support for armv8
In reply to Michal SimekHello Michal,
Quoted 49 lines · Michal Simek
From: Siva Durga Prasad Paladugu <[email protected]>
Added UART DCC support for armv8
Signed-off-by Siva Durga Prasad Paladugu <[email protected]>Signed-off-by Michal Simek <[email protected]>---
Not sure if
CONFIG_CPU_ARMV8is the right symbol but we are following pattern above. MaybeCONFIG_ARM64?--- drivers/serial/arm_dcc.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+)drivers/serial/arm_dcc.c +16
-0@@ -61,6 +61,22 @@#define status_dcc (x) \ __asm__ volatile ("mrc p14, 0, %0, c14, c0, 0\n" : "=r" (x)) +#elif defined(CONFIG_CPU_ARMV8 ) +/* +* ARMV8 +*/ +#define DCC_RBIT (1 << 30) +#define DCC_WBIT (1 << 29) + +#define write_dcc (x) \ + __asm__ volatile ("msr dbgdtrtx_el0, %0\n" : : "r" (x)) + +#define read_dcc (x) \ + __asm__ volatile ("mrs %0, dbgdtrrx_el0\n" : "=r" (x)) + +#define status_dcc (x) \ + __asm__ volatile ("mrs %0, mdccsr_el0\n" : "=r" (x)) +#else #define DCC_RBIT (1 << 0)#define DCC_WBIT (1 << 1)Signature · 6 lines
2.3.5 _______________________________________________ U-Boot mailing list U-Boot at lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Applied to u-boot-arm/master, thanks!
Amicalement,
Signature · 1 line
Albert.