From patchwork Mon Jan 29 18:46:51 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Florian Fainelli X-Patchwork-Id: 193692 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a05:7301:2087:b0:106:209c:c626 with SMTP id gs7csp801507dyb; Mon, 29 Jan 2024 12:02:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IFV2E3LBvKsI7mVI3QYzNZcuFWCx9h2zR5Wf5pagZzuStwMeL+tJpclb77Q6d+dNJgXQ6w3 X-Received: by 2002:a17:902:eb06:b0:1d8:e047:122a with SMTP id l6-20020a170902eb0600b001d8e047122amr3187842plb.45.1706558562845; Mon, 29 Jan 2024 12:02:42 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706558562; cv=pass; d=google.com; s=arc-20160816; b=AU0DtodQCwXHs3jKzbz6OW5OIEQJxCHzZzhz/F7NIb/R9gv59AYKqphEIXifjTKBFb sBQ3Vm5ynN/WXUgqJHf8R8t9ZSwtAXclKA05IQRYwd69CNXc87WyIKa/8tZKUVighy4z C7ej/3n50aaMIf5A10fiMqaKXr6v/H3QYuPs0zwqyBsp28Z2w3dm1OPshpp+TYT4SwdB /D8nvzCENasFlcBp4nyU7v3QE3gUgmkFfss/xv6Zs/bFGXP6eZBG0qiak/Ibdi34rg0y th44K7kk28I1Zv4Ui3ICgygrDx20cYuOXwKOPGvldee4MK/XfRAklnekpLtU0OvacRxG hhYQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature:dkim-filter; bh=iMPqlRnUPUqQumruP06Ofrkl9cqLXFa9Ly6+Q25XQqM=; fh=my2Ddujqrk7CHT0Jk7DAD3SwSxV0g2YBvTc0sAZITqU=; b=vNFTT9hbynCvd3UXEqoW0hHq8x8y0mcrj2fzgQAK0GVzP+VPkx2C37SoRKJDiufFZl Cb6vWovDRctJLhcJKVZy6GaWGyemf+8QhUzddJBj75hK38N5Dm9TK0pfRcbhzZSs+XnH Df7itYuWs7wmdO3jLEiGj2I3wKrNO3QLz6BDjfHSYqsU0ksmuHE5VypmdL3nr5Z+3KoL wLWxmWXEqUA/d7UoLGsaBkhCmeQwPSSVqbUSq65nu5LVUIrJvUBrFHix5zz3ZvrY/Y56 79BCnAs+QdA1sskjJBNYXE7/TJywq5hgMhN0dBAXhMUpWRyqgp9ODDE5CS54wSdLmxjB ImKA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=vZSXZ+d7; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-43369-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43369-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id q20-20020a170902b11400b001d8ff334318si482927plr.176.2024.01.29.12.02.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 29 Jan 2024 12:02:42 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-43369-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@broadcom.com header.s=dkimrelay header.b=vZSXZ+d7; arc=pass (i=1 dkim=pass dkdomain=broadcom.com dmarc=pass fromdomain=broadcom.com); spf=pass (google.com: domain of linux-kernel+bounces-43369-ouuuleilei=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-43369-ouuuleilei=gmail.com@vger.kernel.org"; dmarc=pass (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=broadcom.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 2B31BB227EB for ; Mon, 29 Jan 2024 18:54:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 163A64C626; Mon, 29 Jan 2024 18:54:08 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b="vZSXZ+d7" Received: from relay.smtp-ext.broadcom.com (unknown [192.19.166.228]) (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 C6BBF76C63 for ; Mon, 29 Jan 2024 18:54:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.19.166.228 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706554445; cv=none; b=FWwZ/pU8K71De6Mkwmeb/YJV/kUbXpEzB/2AdFaYQDsHy5yA+/Ozz4xFXqfZ/fiyvkDVW2ze90Eehd+etCwJyZ0ApsDK9tohW1VEJ19pOD96FagSYJbjLTDfOOZsSo/LPZ1LnAz/jY3L6hbnQZmn43udgwjbgJNB96cLGGEZvCk= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706554445; c=relaxed/simple; bh=JeZJfxUbhOcjTviijQYRAn1s2uITCFQ+zhFFFu5Xo1U=; h=From:To:Cc:Subject:Date:Message-Id:MIME-Version; b=sgjOw2Sy4EQK4LrvMsIy3p7ZoZULM1En/NffO2AEEjOZas8vsAgRGyvfLXl8SOYUtNioQLUk2V8GOGhMQRFMqwOSe3GWmHFM2Pj4nu1QHPqdQsZnvA82xml9lp3y693jZFrFgDUogGU9zYDocIoNFcPYo1PoQ/upJlv14UDDor0= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com; spf=fail smtp.mailfrom=broadcom.com; dkim=pass (1024-bit key) header.d=broadcom.com header.i=@broadcom.com header.b=vZSXZ+d7; arc=none smtp.client-ip=192.19.166.228 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=broadcom.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=broadcom.com Received: from mail-lvn-it-01.lvn.broadcom.net (mail-lvn-it-01.lvn.broadcom.net [10.36.132.253]) by relay.smtp-ext.broadcom.com (Postfix) with ESMTP id D7744C0094DB; Mon, 29 Jan 2024 10:46:52 -0800 (PST) DKIM-Filter: OpenDKIM Filter v2.11.0 relay.smtp-ext.broadcom.com D7744C0094DB DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=broadcom.com; s=dkimrelay; t=1706554012; bh=JeZJfxUbhOcjTviijQYRAn1s2uITCFQ+zhFFFu5Xo1U=; h=From:To:Cc:Subject:Date:From; b=vZSXZ+d71mX13XNrk1YfEAW2wXaYC2no3D516QFYiJK1xWKFBmSYM2C9X8DJLMOYA ZFaTVoDPKnK9n3NVv7XdRmuHFwPaVwiHl02774xzLToiF9bH7gxDWJhimXn/97y2b8 2GJn16eKac6r9qNWLpbExNnpCVeWGS98b9h5JmYI= Received: from fainelli-desktop.igp.broadcom.net (fainelli-desktop.dhcp.broadcom.net [10.67.48.245]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail-lvn-it-01.lvn.broadcom.net (Postfix) with ESMTPSA id 4DA6518041CAC4; Mon, 29 Jan 2024 10:46:51 -0800 (PST) From: Florian Fainelli To: linux-arm-kernel@lists.infradead.org Cc: Florian Fainelli , Russell King , Broadcom internal kernel review list , linux-kernel@vger.kernel.org (open list) Subject: [PATCH] ARM: brcmstb: Add debug UART entry for 74165 Date: Mon, 29 Jan 2024 10:46:51 -0800 Message-Id: <20240129184651.2405485-1-florian.fainelli@broadcom.com> X-Mailer: git-send-email 2.34.1 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1789456352089055386 X-GMAIL-MSGID: 1789456352089055386 BCM74165 uses the same address map as the 7278 family (v7 memory map) therefore re-use that constant and shit down the other labels to keep numerical ordering. Signed-off-by: Florian Fainelli --- arch/arm/include/debug/brcmstb.S | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/arch/arm/include/debug/brcmstb.S b/arch/arm/include/debug/brcmstb.S index f6175e6e28cd..3f7d68740ed4 100644 --- a/arch/arm/include/debug/brcmstb.S +++ b/arch/arm/include/debug/brcmstb.S @@ -27,6 +27,7 @@ #define UARTA_72165 UARTA_7278 #define UARTA_7364 REG_PHYS_ADDR(0x40b000) #define UARTA_7366 UARTA_7364 +#define UARTA_74165 UARTA_7278 #define UARTA_74371 REG_PHYS_ADDR(0x406b00) #define UARTA_7439 REG_PHYS_ADDR(0x40a900) #define UARTA_7445 REG_PHYS_ADDR(0x40ab00) @@ -88,9 +89,10 @@ ARM_BE8( rev \rv, \rv ) 30: checkuart(\rp, \rv, 0x72780000, 7278) 31: checkuart(\rp, \rv, 0x73640000, 7364) 32: checkuart(\rp, \rv, 0x73660000, 7366) -33: checkuart(\rp, \rv, 0x07437100, 74371) -34: checkuart(\rp, \rv, 0x74390000, 7439) -35: checkuart(\rp, \rv, 0x74450000, 7445) +33: checkuart(\rp, \rv, 0x07416500, 74165) +34: checkuart(\rp, \rv, 0x07437100, 74371) +35: checkuart(\rp, \rv, 0x74390000, 7439) +36: checkuart(\rp, \rv, 0x74450000, 7445) /* No valid UART found */ 90: mov \rp, #0