From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from EUR04-VI1-obe.outbound.protection.outlook.com (EUR04-VI1-obe.outbound.protection.outlook.com [40.107.8.84]) by mx.groups.io with SMTP id smtpd.web12.361.1601388112448485502 for ; Tue, 29 Sep 2020 07:01:53 -0700 Authentication-Results: mx.groups.io; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=QSkC0zTF; spf=pass (domain: arm.com, ip: 40.107.8.84, mailfrom: samer.el-haj-mahmoud@arm.com) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tGOrU2k//WFE1NHBhBtDbejcbqTS4UTFaJip5QHTzjo=; b=QSkC0zTFsWBy4mcYU/vmndGImzwi10VpHTIG/ACWrAK+VWf183vsOXuj2TNpekQJY+qSFSVuVxhmzDTza/P7ZwdWvaLQN0YsQAIWgzxLI51wZszxgN3srxkX0+mSq4ZHZpuszdfjKrlX0BhITi67SMunnzBAyMgvJ98iTnIr7Ng= Received: from AM7PR03CA0028.eurprd03.prod.outlook.com (2603:10a6:20b:130::38) by DB8PR08MB4123.eurprd08.prod.outlook.com (2603:10a6:10:b2::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.20; Tue, 29 Sep 2020 14:01:49 +0000 Received: from VE1EUR03FT051.eop-EUR03.prod.protection.outlook.com (2603:10a6:20b:130:cafe::c6) by AM7PR03CA0028.outlook.office365.com (2603:10a6:20b:130::38) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.22 via Frontend Transport; Tue, 29 Sep 2020 14:01:48 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; edk2.groups.io; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;edk2.groups.io; dmarc=bestguesspass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by VE1EUR03FT051.mail.protection.outlook.com (10.152.19.75) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.21 via Frontend Transport; Tue, 29 Sep 2020 14:01:48 +0000 Received: ("Tessian outbound 34b830c8a0ef:v64"); Tue, 29 Sep 2020 14:01:48 +0000 X-CheckRecipientChecked: true X-CR-MTA-CID: b3e81da90bff3c3f X-CR-MTA-TID: 64aa7808 Received: from 42b28028f618.3 by 64aa7808-outbound-1.mta.getcheckrecipient.com id 03900FD5-2AD8-4ADB-A1DC-71FB489C8396.1; Tue, 29 Sep 2020 14:01:34 +0000 Received: from EUR05-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id 42b28028f618.3 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Tue, 29 Sep 2020 14:01:34 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=YlOzdHfB6rgysUY1xXr1xEcJ0nHnFgwzYayH3zyd1LlRM7sC23+g4z9/DF0fZcvv4swQSornH/Oxn8qMtqDdatzgxH/zO4KI7RnY4xXgWPLt7ND4YaFikX4DcNM3dyaZgBgd9BhR0wlPT9aoIbB8SF9AUH5vlHlTTK98hIYjaFltmEP37xVy2KXaIdyLnwLjJC+wkEb1CJXItFKs/VyZh/4dlHERz6YQOeM1jxMhzdH2H7OVnYF8oAjsOeJKhCZM9tr8EfqGICAKfI0xujmcUeRlkxK00MnjysGMw2ynq18eJ5k2siG6C9zM6LXbVI2u1uxIBh7ZXDBtEGacsPeIlQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tGOrU2k//WFE1NHBhBtDbejcbqTS4UTFaJip5QHTzjo=; b=Pm5uEnlzqJlsQ3uGsK4xcDGLONeXYAkqJAdZ+7itGrqAcX+nC0Q3SS5w9+ZSsXYUPzQ4ad32fuxImtZaqHui36rY45l85PRngc/7h4EvKrtoy3quMHyKu4v/yGeVZ3SXPLIE9k2KRwHf8X1A4tTP2S4j3UC9plxRI/ZIpwufD6lrfAFc3s3Gb0fvx87NeUDBCWRiCe6a9b/ZmaKOMCf3gG3T8DiruTkno6bdatpk7NAfhv+Cv+MbT/7SDol30PS5yg6IupwrFtVYj3j6ier3V+dudP9PXXLz6NtSrA/RVaL9WATF6FE+DmQ5AYdbpwEs9ReAKK1+wEpkEBtMrgl18w== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=tGOrU2k//WFE1NHBhBtDbejcbqTS4UTFaJip5QHTzjo=; b=QSkC0zTFsWBy4mcYU/vmndGImzwi10VpHTIG/ACWrAK+VWf183vsOXuj2TNpekQJY+qSFSVuVxhmzDTza/P7ZwdWvaLQN0YsQAIWgzxLI51wZszxgN3srxkX0+mSq4ZHZpuszdfjKrlX0BhITi67SMunnzBAyMgvJ98iTnIr7Ng= Received: from DB7PR08MB3260.eurprd08.prod.outlook.com (2603:10a6:5:21::23) by DB6PR0801MB2005.eurprd08.prod.outlook.com (2603:10a6:4:76::10) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.3412.26; Tue, 29 Sep 2020 14:01:32 +0000 Received: from DB7PR08MB3260.eurprd08.prod.outlook.com ([fe80::41d6:2494:e616:78a6]) by DB7PR08MB3260.eurprd08.prod.outlook.com ([fe80::41d6:2494:e616:78a6%7]) with mapi id 15.20.3412.029; Tue, 29 Sep 2020 14:01:32 +0000 From: "Samer El-Haj-Mahmoud" To: "devel@edk2.groups.io" , "Andrei Warkentin (awarkentin@vmware.com)" , Pete Batard , Jeff Booher-Kaeding CC: Ard Biesheuvel , Leif Lindholm , Samer El-Haj-Mahmoud Subject: Re: [edk2-devel] [PATCH v1 1/1] Platform/RaspberryPi/ConfigDxe: Fix JTAG Pinout for Pi3/4 Thread-Topic: [edk2-devel] [PATCH v1 1/1] Platform/RaspberryPi/ConfigDxe: Fix JTAG Pinout for Pi3/4 Thread-Index: AQHWiunqfdesyzvXjEWtJZttWQtJi6lpoPaAgAntEYCADC3Y0A== Date: Tue, 29 Sep 2020 14:01:31 +0000 Message-ID: References: <20200914213230.78282-1-jeff.booher-kaeding@arm.com>, In-Reply-To: Accept-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: Authentication-Results-Original: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; x-originating-ip: [99.132.126.10] x-ms-publictraffictype: Email X-MS-Office365-Filtering-HT: Tenant X-MS-Office365-Filtering-Correlation-Id: 73851ffc-bedd-4aee-466f-08d864803542 x-ms-traffictypediagnostic: DB6PR0801MB2005:|DB8PR08MB4123: x-ld-processed: f34e5979-57d9-4aaa-ad4d-b122a662184d,ExtAddr x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:9508;OLM:10000; X-MS-Exchange-SenderADCheck: 1 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: EQdIhe0W+n+Lca7tl9llcr9LHY1R7VtmRKtjctf66s2pkbjl8YNxnF7SVOsuLJbsXR7ehDjf8guR9vUEL+rRW8pXyuhQMeG4yI16ABx4t0bk91uhqYpR/4iASZxQ3Dh7bgYlshifjuDoRUDzsWvDRXTYrclMcIi279rClMfXlerbG30lM7e6ZjF6QKDiPkoHJmXDJEVdpCpnvydM45sbaq0K/2jedZynL4xwaXC2hhoGZVotGqSbVvLjnFj9aJjhUxromQvcMBycRREbBuBWWSwLoWMNzoOCqlcCX56M/tx831ZvYhJ78d42hT7XwUvicZeim7UyDT9Ffqa076aWF600s4C7YbZjlAejoL6W8wDcpAjynNlbNUd7xXjDyLEnZP7Jp1qoiMTMTSfUcKxXqvn2B/rcVz1pPJIYjI1VOb/4NX3CquG1jUdF6O0ifBxqZjwlnhi1dIHTSUVYmLoclw== X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:DB7PR08MB3260.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(366004)(396003)(376002)(136003)(346002)(39850400004)(66556008)(166002)(966005)(110136005)(4326008)(7696005)(45080400002)(5660300002)(316002)(55016002)(54906003)(76236003)(186003)(53546011)(2906002)(6506007)(26005)(83380400001)(9686003)(66476007)(66446008)(64756008)(33656002)(8676002)(86362001)(66946007)(76116006)(52536014)(6636002)(478600001)(8936002)(71200400001);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata: Vi8680aeJFF2cqaTSjf4HbRUijd747xCuNiACImiLbxbTVp+24V65yzGgy0RY93sXOzf3y8DkDmg7p5YhJTZh7pezbODIq2EE9vFgJduer3A8TqQOMblNoxp2o9hH9r+cx/GfKjqHF5w0my0bN+PzNfSzkwpR8VYiXd7emb+DyKOhJkj+pxPHYy9aP8/XEL4Ozo3gYfq5ab7j9k/mHtihmzS0tJhTBovP1twTsWPxuAYuoM3yqmlBJfZKPBFGiOSEYJpIPwPnpsGLycufryCJB4bGlJfHA7OKSyM+ovBDgA4zgYKHl6eunWHRq3zU8XC5MF5KkyR/D4ySM/rqh07WWhpdN5KkPtdiBA58cEf+NKruzmZ0mi1lK2lyjqQUhm3rXCzGgcIPrHWhSho8FMKOd3B9V6AiryYTW+YRka8YvpgTgJCeSb3egzDxOcmsv61PIqgCVFdVsk4Ba3iugG5Y129eg7i9YErY4KhwpxVGSKkzwjSmq4F6/phOfMZxuv+J8uFF1sKKJgFaZkjEoMjgwe/qrcQlVT8fc5Cn0AympotSsiJSaTAv5TccnTKXbqGBEaEJuBnogNvTkmwEBC6pW2jtKwufYHDIR71Uj+3ZUpqywPM1SvRWW8W16XYECKmonJOG2LFiuHl8xPjhzqCRQ== MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB6PR0801MB2005 Original-Authentication-Results: edk2.groups.io; dkim=none (message not signed) header.d=none;edk2.groups.io; dmarc=none action=none header.from=arm.com; Return-Path: Samer.El-Haj-Mahmoud@arm.com X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: VE1EUR03FT051.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: 6173ac79-7814-433f-0b75-08d864802bab X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: rf2uQ7Rwu/SJVse9OzGltjwWFrInCzO/30SjyMeNsfUXDO1bS8+MfYjHPE/EKaHc1Tyf5/U60NwG5mG3ihrc2cib7Yan4EJgq/dfvD9phCUS1gzVScrl00y5ycFs6tCqb1CnO4NvP4YN+I4B7i5qbgFBUzZYkFwMyg0hVrwNRIWDTHcerRtOVQGtD+7SeVIsDyzsQWfU05Ud5wBjH4E+Gz3Rq99Vez0qyMIJ9Mj6z8+IzVDq05GGSD5xYV3j2iLSa+GtURDOEjtkWS8+D6l4U6a+X2kih6I7VTB3ZicfFHLMeywfP49zIn2qjp42sJTHTRuG5+19yTpn3dqW+Nfhn3BJZIIzRKG3hvkBSlTlXSEU9CTrC7dqdaU3jPwdBODTGQisUajuzm1aAnysi3uHOW16f2aVK+fvf+EvBGuIWpiB/aT8M4XXXZ/F+yYxnFefV/9bj2O2u08xv0rFz6OM0Vlq5dv9OWS0oj5zDb5et5fYW75suFrZnnT8OWUlHgPmIj/mACiVsTl2njjbEsUaBA== X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(396003)(136003)(39850400004)(346002)(376002)(46966005)(186003)(82740400003)(86362001)(45080400002)(8676002)(55016002)(52536014)(7696005)(33656002)(110136005)(76236003)(47076004)(316002)(8936002)(4326008)(36906005)(83380400001)(966005)(54906003)(356005)(5660300002)(81166007)(53546011)(478600001)(6506007)(2906002)(70586007)(26005)(6636002)(70206006)(336012)(9686003)(166002)(82310400003);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 29 Sep 2020 14:01:48.2092 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 73851ffc-bedd-4aee-466f-08d864803542 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: VE1EUR03FT051.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB8PR08MB4123 Content-Language: en-US Content-Type: multipart/alternative; boundary="_000_DB7PR08MB3260BBD4BA44710B42DA052890320DB7PR08MB3260eurp_" --_000_DB7PR08MB3260BBD4BA44710B42DA052890320DB7PR08MB3260eurp_ Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Thanks Pete and Andrei. Should we count these as RB or AB for the patch? Reviewed-by: Samer El-Haj-Mahmoud From: devel@edk2.groups.io On Behalf Of Andrei Wark= entin via groups.io Sent: Monday, September 21, 2020 4:01 PM To: Pete Batard ; Jeff Booher-Kaeding ; devel@edk2.groups.io Cc: Ard Biesheuvel ; Leif Lindholm Subject: Re: [edk2-devel] [PATCH v1 1/1] Platform/RaspberryPi/ConfigDxe: F= ix JTAG Pinout for Pi3/4 Hi folks, No objection at all. IIRC the original pin selection was driven by an arti= cle I read about using OpenOCD with Pi 3. A ________________________________ From: Pete Batard > Sent: Tuesday, September 15, 2020 7:26 AM To: Jeff Booher-Kaeding >; devel@edk2.groups.io > Cc: Ard Biesheuvel >= ; Leif Lindholm >; Andrei Warke= ntin > Subject: Re: [PATCH v1 1/1] Platform/RaspberryPi/ConfigDxe: Fix JTAG Pinou= t for Pi3/4 Copying Andrei on this, as the existing JTAG pinout is not technically incorrect, since GPIO pin 4 can be used for TDI in ALT5 mode, and we are using the relevant ALT mode in the existing code. See https://nam04.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2Fsyspro= gs.com%2FVisualKernel%2Ftutorials%2Fraspberry%2Fjtagsetup%2F&data=3D02%= 7C01%7Cawarkentin%40vmware.com%7C1c1badf5e6f1433b44b508d859728a32%7Cb39138c= a3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637357695767996220&sdata=3DrGIzM4Io= 36gFJrAK%2F4xZs0fm0DpXVvamhOYYXfc09ek%3D&reserved=3D0 As far as I'm concerned, I think it makes sense to use the same ALT mode and have all the JTAG pins grouped, but I'd like to confirm whether we deliberately chose not to use GPIO 26 in order to leave it available for some other purpose, before I approve this patch. If Andrei says he's okay with it, then I see no objection to this change. Regards, /Pete On 2020.09.14 22:32, Jeff Booher-Kaeding wrote: > Updated the pinout to match the Pi4 datasheet, tested with the RPi4, Pi3= Datasheet has same pinout. > > Signed-off-by: Jeff Booher-Kaeding > > > Cc: Ard Biesheuvel > > Cc: Leif Lindholm > > Cc: Pete Batard > > --- > Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c b/Platfo= rm/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c > index ac1004fe1836..6e793efb8227 100644 > --- a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c > +++ b/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c > @@ -502,7 +502,7 @@ ApplyVariables ( > * 1 VREF N/A 1 > > * 3 nTRST GPIO22 ALT4 15 > > * 4 GND N/A 9 > > - * 5 TDI GPIO4 ALT5 7 > > + * 5 TDI GPIO26 ALT4 37 > > * 7 TMS GPIO27 ALT4 13 > > * 9 TCK GPIO25 ALT4 22 > > * 11 RTCK GPIO23 ALT4 16 > > @@ -510,14 +510,14 @@ ApplyVariables ( > */ > > if (PcdGet32 (PcdDebugEnableJTAG)) { > > GpioPinFuncSet (22, GPIO_FSEL_ALT4); > > - GpioPinFuncSet (4, GPIO_FSEL_ALT5); > > + GpioPinFuncSet (26, GPIO_FSEL_ALT4); > > GpioPinFuncSet (27, GPIO_FSEL_ALT4); > > GpioPinFuncSet (25, GPIO_FSEL_ALT4); > > GpioPinFuncSet (23, GPIO_FSEL_ALT4); > > GpioPinFuncSet (24, GPIO_FSEL_ALT4); > > } else { > > GpioPinFuncSet (22, GPIO_FSEL_INPUT); > > - GpioPinFuncSet (4, GPIO_FSEL_INPUT); > > + GpioPinFuncSet (26, GPIO_FSEL_INPUT); > > GpioPinFuncSet (27, GPIO_FSEL_INPUT); > > GpioPinFuncSet (25, GPIO_FSEL_INPUT); > > GpioPinFuncSet (23, GPIO_FSEL_INPUT); > IMPORTANT NOTICE: The contents of this email and any attachments are confi= dential and may also be privileged. If you are not the intended recipient, = please notify the sender immediately and do not disclose the contents to an= y other person, use it for any purpose, or store or copy the information in= any medium. Thank you. --_000_DB7PR08MB3260BBD4BA44710B42DA052890320DB7PR08MB3260eurp_ Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable

Thanks Pete and Andrei. Should we count these as RB= or AB for the patch?

 

Reviewed-by: Samer El-Haj-Mahmoud <Samer.El-Haj-= Mahmoud@arm.com>

 

From: devel@edk2.groups.io <devel@edk2.gr= oups.io> On Behalf Of Andrei Warkentin via groups.io
Sent: Monday, September 21, 2020 4:01 PM
To: Pete Batard <pete@akeo.ie>; Jeff Booher-Kaeding <Jeff.= Booher-Kaeding@arm.com>; devel@edk2.groups.io
Cc: Ard Biesheuvel <Ard.Biesheuvel@arm.com>; Leif Lindholm &l= t;leif@nuviainc.com>
Subject: Re: [edk2-devel] [PATCH v1 1/1] Platform/RaspberryPi/Confi= gDxe: Fix JTAG Pinout for Pi3/4

 

Hi folks,

 

No objection at all. IIRC the original pin selection was dri= ven by an article I read about using OpenOCD with Pi 3.

 

A


From: Pete Batard <pe= te@akeo.ie>
Sent: Tuesday, September 15, 2020 7:26 AM
To: Jeff Booher-Kaeding <jeff.booher-kaeding@arm.com>; devel@edk2.groups.io <devel@edk2.groups.io>
Cc: Ard Biesheuvel <ar= d.biesheuvel@arm.com>; Leif Lindholm <leif@nuviainc.com>; Andrei Warkentin <awarkentin@vmware.com>
Subject: Re: [PATCH v1 1/1] Platform/RaspberryPi/ConfigDxe: Fix JTA= G Pinout for Pi3/4

 

Copying Andrei on th= is, as the existing JTAG pinout is not technically
incorrect, since GPIO pin 4 can be used for TDI in ALT5 mode, and we are <= br> using the relevant ALT mode in the existing code. See
https://nam04.safelinks.protection.outlook.com/?url=3Dhttps%3A%2F%2F= sysprogs.com%2FVisualKernel%2Ftutorials%2Fraspberry%2Fjtagsetup%2F&amp;= data=3D02%7C01%7Cawarkentin%40vmware.com%7C1c1badf5e6f1433b44b508d859728a32= %7Cb39138ca3cee4b4aa4d6cd83d9dd62f0%7C0%7C0%7C637357695767996220&amp;sd= ata=3DrGIzM4Io36gFJrAK%2F4xZs0fm0DpXVvamhOYYXfc09ek%3D&amp;reserved=3D0=

As far as I'm concerned, I think it makes sense to use the same ALT mode <= br> and have all the JTAG pins grouped, but I'd like to confirm whether we deliberately chose not to use GPIO 26 in order to leave it available for <= br> some other purpose, before I approve this patch.

If Andrei says he's okay with it, then I see no objection to this change.<= br>
Regards,

/Pete

On 2020.09.14 22:32, Jeff Booher-Kaeding wrote:
> Updated the pinout to match the Pi4 datasheet, tested with the RPi4, = Pi3 Datasheet has same pinout.
>
> Signed-off-by: Jeff Booher-Kaeding <Jeff.booher-kaeding@arm.com>
>
> Cc: Ard Biesheuvel <ard.= biesheuvel@arm.com>
> Cc: Leif Lindholm <leif@nuvia= inc.com>
> Cc: Pete Batard <pete@akeo.ie&= gt;
> ---
>   Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c | 6 ++= +---
>   1 file changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c b/Pla= tform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c
> index ac1004fe1836..6e793efb8227 100644
> --- a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c
> +++ b/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c
> @@ -502,7 +502,7 @@ ApplyVariables (
>      * 1      =      VREF        N/A=             &nb= sp;  1
>
>      * 3      =      nTRST       GPIO22&n= bsp;   ALT4    15
>
>      * 4      =      GND        = ; N/A           &nbs= p;   9
>
> -   * 5        &nbs= p;  TDI         GPIO4 &nb= sp;   ALT5    7
>
> +   * 5        &nbs= p;  TDI         GPIO26 &n= bsp;  ALT4    37
>
>      * 7      =      TMS        = ; GPIO27    ALT4    13
>
>      * 9      =      TCK        = ; GPIO25    ALT4    22
>
>      * 11      = ;    RTCK        GPIO23&n= bsp;   ALT4    16
>
> @@ -510,14 +510,14 @@ ApplyVariables (
>      */
>
>     if (PcdGet32 (PcdDebugEnableJTAG)) {
>
>       GpioPinFuncSet (22, GPIO_FSEL_ALT= 4);
>
> -    GpioPinFuncSet (4, GPIO_FSEL_ALT5);
>
> +    GpioPinFuncSet (26, GPIO_FSEL_ALT4);
>
>       GpioPinFuncSet (27, GPIO_FSEL_ALT= 4);
>
>       GpioPinFuncSet (25, GPIO_FSEL_ALT= 4);
>
>       GpioPinFuncSet (23, GPIO_FSEL_ALT= 4);
>
>       GpioPinFuncSet (24, GPIO_FSEL_ALT= 4);
>
>     } else {
>
>       GpioPinFuncSet (22, GPIO_FSEL_INP= UT);
>
> -    GpioPinFuncSet (4, GPIO_FSEL_INPUT);
>
> +    GpioPinFuncSet (26, GPIO_FSEL_INPUT);
>
>       GpioPinFuncSet (27, GPIO_FSEL_INP= UT);
>
>       GpioPinFuncSet (25, GPIO_FSEL_INP= UT);
>
>       GpioPinFuncSet (23, GPIO_FSEL_INP= UT);
>

IMPORTANT NOTICE: The contents of this email and any attachments are confi= dential and may also be privileged. If you are not the intended recipient, = please notify the sender immediately and do not disclose the contents to an= y other person, use it for any purpose, or store or copy the information in any medium. Thank you. --_000_DB7PR08MB3260BBD4BA44710B42DA052890320DB7PR08MB3260eurp_--