Skip to contentSkip to conversation

powerpc/serial: Use generic BASE_BAUD in asm/serial.h

PATCH Applied Thorsten Blum 4 participants 4 messages Jul 29 – Aug 3 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/serial: Use generic BASE_BAUD in asm/serial.h

Include asm-generic/serial.h and use the generic BASE_BAUD definition instead of redefining it.

---
 arch/powerpc/include/asm/serial.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/include/asm/serial.h +2 -2
index cd6c18d0e66e..eca0ef56f874 100644
@@ -9,8 +9,8 @@
  * through the device tree.
  */
 
-/* Default baud base if not found in device-tree */
-#define BASE_BAUD ( 1843200 / 16 )
+/* Provides BASE_BAUD, used as fallback if not found in device tree. */
+#include <asm-generic/serial.h>
 
 #ifdef CONFIG_PPC_UDBG_16550
 extern void find_legacy_serial_ports(void);
reviewer Reviewed-by on v1 1/1
#1 lore raw

Le 30/07/2026 à 00:38, Thorsten Blum a écrit :

Quoted 4 lines

Include asm-generic/serial.h and use the generic BASE_BAUD definition instead of redefining it.

Quoted 19 lines
---
  arch/powerpc/include/asm/serial.h | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)
arch/powerpc/include/asm/serial.h +2 -2
index cd6c18d0e66e..eca0ef56f874 100644
@@ -9,8 +9,8 @@
   * through the device tree.
   */
 
-/* Default baud base if not found in device-tree */
-#define BASE_BAUD ( 1843200 / 16 )
+/* Provides BASE_BAUD, used as fallback if not found in device tree. */
+#include <asm-generic/serial.h>
 
  #ifdef CONFIG_PPC_UDBG_16550
  extern void find_legacy_serial_ports(void);
Reviewed-by on v1 1/1
#2 lore raw
In reply to Thorsten Blum
Quoted 7 lines · Thorsten Blum

Include asm-generic/serial.h and use the generic BASE_BAUD definition instead of redefining it.

---
 arch/powerpc/include/asm/serial.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Quoted 16 lines
arch/powerpc/include/asm/serial.h +2 -2
index cd6c18d0e66e..eca0ef56f874 100644
@@ -9,8 +9,8 @@
  * through the device tree.
  */
 
-/* Default baud base if not found in device-tree */
-#define BASE_BAUD ( 1843200 / 16 )
+/* Provides BASE_BAUD, used as fallback if not found in device tree. */
+#include <asm-generic/serial.h>
 
 #ifdef CONFIG_PPC_UDBG_16550
 extern void find_legacy_serial_ports(void);