From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id BBF5C3BBFD6 for ; Wed, 29 Jul 2026 22:38:46 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.180 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785364729; cv=none; b=tjtE62Zj7vH8VIrYSVQTa33ZIdNFcsx/q/8iGGei7UCaJKWRvHomRgg6OlK1NmmMDZcaEH9apBRg3/EKg63vxvFpFNlwE/tkn270/wmB156LC6+iXiB1QFc1zGshIstcLY34MWXGbDFetExRdX62gMWjH0KEWpdQd6sylOp835s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785364729; c=relaxed/simple; bh=yEp9DXwWsx6XbhkgNa55MZpXRtIkJbazQ9uYM9P6PRE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=B30VHL+UC9t3qq6kfnitMwEXb+vzkyY2qiPTozv3jo6z1Mqy/77xH6O0mkAFJaj7sXRlxkLGjrDyULezce0U+kA/W3ag9nw+ZPQxIs+ik9sJ3IiAxTEWViIOa9dIXS0ok+DkywYsGBKfeqGiKaMoq7pUdke03c4oul2DddrJwGo= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=peOsMKIu; arc=none smtp.client-ip=95.215.58.180 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="peOsMKIu" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1785364724; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=0+gYS+CTFvyzTxy/Yk/uLl3yISZGl64atp8aoxFoxvM=; b=peOsMKIuIqxhDfHP/lsnCVVWYmkP6TubB0Td8WqjtoTHciZrnwYGg/+Vj5vG/NhjNwGG+T dh24HhEPHM6vUemx5CAUTFNmkpSg4gHoSP+D/xqyEqsQjSdt+WpKy+5QhCswszkNnRH/ro Lvdn3xJSszF/Hqao4UKNmIJQFLM4cPI= From: Thorsten Blum To: Madhavan Srinivasan , Michael Ellerman , Nicholas Piggin , "Christophe Leroy (CS GROUP)" Cc: Thorsten Blum , linuxppc-dev@lists.ozlabs.org, linux-kernel@vger.kernel.org Subject: [PATCH] powerpc/serial: Use generic BASE_BAUD in asm/serial.h Date: Thu, 30 Jul 2026 00:38:07 +0200 Message-ID: <20260729223807.570178-3-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=800; i=thorsten.blum@linux.dev; h=from:subject; bh=yEp9DXwWsx6XbhkgNa55MZpXRtIkJbazQ9uYM9P6PRE=; b=owGbwMvMwCUWt7pQ4caZUj3G02pJDFlZDeddfMRmeEmsDD2vdO/hZc93afxCS/2WClsyJZ85m lD3wKi2o5SFQYyLQVZMkeXBrB8zfEtrKjeZROyEmcPKBDKEgYtTACbyspKRYYtpi2x5cMJWrSPe v4JTOpZvii/zMGJwi3475YODzec5GYwMB/PO1/zzmHI3Ju+Y8lU5B4n7J2LK19pP4/tcu+yKm9d uDgA= X-Developer-Key: i=thorsten.blum@linux.dev; a=openpgp; fpr=1D60735E8AEF3BE473B69D84733678FD8DFEEAD4 Content-Transfer-Encoding: 8bit X-Migadu-Flow: FLOW_OUT Include asm-generic/serial.h and use the generic BASE_BAUD definition instead of redefining it. Signed-off-by: Thorsten Blum --- arch/powerpc/include/asm/serial.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/powerpc/include/asm/serial.h b/arch/powerpc/include/asm/serial.h index cd6c18d0e66e..eca0ef56f874 100644 --- a/arch/powerpc/include/asm/serial.h +++ b/arch/powerpc/include/asm/serial.h @@ -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 #ifdef CONFIG_PPC_UDBG_16550 extern void find_legacy_serial_ports(void);