From nobody Fri Dec 19 17:10:31 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) client-ip=66.175.222.108; envelope-from=bounce+27952+113562+1787277+3901457@groups.io; helo=mail02.groups.io; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+113562+1787277+3901457@groups.io; dmarc=fail(p=none dis=none) header.from=arm.com ARC-Seal: i=1; a=rsa-sha256; t=1704931471; cv=none; d=zohomail.com; s=zohoarc; b=kdicD/CPfopA1i5bAJUPd1RI2CF0jHjHS/TeBXIibA0m2TYNtz+7Tb1EYabJ2sIgPfCfnGOW1uaYBTWh/UMjOplds1j/wHbF17AWi7w0Q9ulIFZ2JBtU0GADxBDrANgN37PbZOvx4gQWD6ifNmWNB3lAxxnBvQkq+ggLjhRZcBk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1704931471; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Sender:Subject:Subject:To:To:Message-Id; bh=8nXxhPBqZmR0/lfMH8bybF2QMIDGtwxNoWwgHY9tH6k=; b=hb2Que0Af5q1PR63f77F57neWaR2wZkxxEVUSDBSIh801y+ITKSsiMgLe8GJgpY6f7+7EPGiumqCrMaFWllmFs3xaJIxk0PhVJmo24WLGTcQ4iNh6z6nTER2Ox/wnca3Fh88noCaWcewvuFAKiMei/zsVVSGt0LCXCPc+zJ+/1U= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce+27952+113562+1787277+3901457@groups.io; dmarc=fail header.from= (p=none dis=none) Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by mx.zohomail.com with SMTPS id 1704931471544978.6198351482758; Wed, 10 Jan 2024 16:04:31 -0800 (PST) Return-Path: DKIM-Signature: a=rsa-sha256; bh=G7tAYXgVg1skl8FNBW8ygLDwcqxgeY90NgDNv/JL2sc=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:MIME-Version:Precedence:List-Subscribe:List-Help:Sender:List-Id:Mailing-List:Delivered-To:Reply-To:List-Unsubscribe-Post:List-Unsubscribe:Content-Transfer-Encoding; s=20140610; t=1704931471; v=1; b=ILtRIA8Ua7Ugm7YnRJuilfWzjJXUK1VfYdrF9+P0mMIz9nbcLXEkTlG1Uc4hylRtTrUTp2wJ U/eMGU7LahyTcUVcLa9w1flzVezrGCsP7xleU4WN1zF4FtH9jI0whNB50SazmkX2qMOhmCCE6rB n4rKQ/OGKYgiKit8rj2PVZAY= X-Received: by 127.0.0.2 with SMTP id Z6vSYY1788612x6BzjGjCkIB; Wed, 10 Jan 2024 16:04:31 -0800 X-Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by mx.groups.io with SMTP id smtpd.web11.9368.1704931469364233539 for ; Wed, 10 Jan 2024 16:04:29 -0800 X-Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 759EE1570; Wed, 10 Jan 2024 16:05:15 -0800 (PST) X-Received: from u200865.usa.arm.com (unknown [172.31.20.19]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 608EB3F5A1; Wed, 10 Jan 2024 16:04:29 -0800 (PST) From: "Jeremy Linton" To: devel@edk2.groups.io Cc: ardb+tianocore@kernel.org, quic_llindhol@quicinc.com, Jeremy Linton Subject: [edk2-devel] [RFC 5/6] Platform/RasberryPi: Add I2C1 to uefi runtime memory map Date: Wed, 10 Jan 2024 18:04:25 -0600 Message-ID: <20240111000426.2735007-6-jeremy.linton@arm.com> In-Reply-To: <20240111000426.2735007-1-jeremy.linton@arm.com> References: <20240111000426.2735007-1-jeremy.linton@arm.com> MIME-Version: 1.0 Precedence: Bulk List-Subscribe: List-Help: Sender: devel@edk2.groups.io List-Id: Mailing-List: list devel@edk2.groups.io; contact devel+owner@edk2.groups.io Reply-To: devel@edk2.groups.io,jeremy.linton@arm.com List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: Jxqk4w0ZwVpmcSELQIhfW3VLx1787277AA= Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @groups.io) X-ZM-MESSAGEID: 1704931473334100021 Content-Type: text/plain; charset="utf-8" We intend to allow the OS to update the RTC after exit boot services. THis means we need to assure that the I2C IO map is marked correctly. Signed-off-by: Jeremy Linton --- Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c b/Platform/= RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c index 377ef438ff..fec8f63ea8 100644 --- a/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c +++ b/Platform/RaspberryPi/Drivers/ConfigDxe/ConfigDxe.c @@ -505,6 +505,7 @@ ApplyVariables ( } =20 if (mModelFamily =3D=3D 4) { + // add memoryspaces for the runtime flash/variable store Status =3D gDS->AddMemorySpace (EfiGcdMemoryTypeMemoryMappedIo, BCM283= 6_SPI0_BASE_ADDRESS, SIZE_4KB, EFI_MEMORY_UC | EFI_MEMORY_RUN= TIME); ASSERT_EFI_ERROR (Status); @@ -517,6 +518,13 @@ ApplyVariables ( Status =3D gDS->SetMemorySpaceAttributes (GPIO_BASE_ADDRESS, SIZE_4KB, EFI_MEMORY_UC|EFI_ME= MORY_RUNTIME); =20 + // add memoryspace for the runtime rtc/i2c + Status =3D gDS->AddMemorySpace (EfiGcdMemoryTypeMemoryMappedIo, BCM283= 6_I2C1_BASE_ADDRESS, + SIZE_4KB, EFI_MEMORY_UC | EFI_MEMORY_RUN= TIME); + ASSERT_EFI_ERROR (Status); + Status =3D gDS->SetMemorySpaceAttributes (BCM2836_I2C1_BASE_ADDRESS, + SIZE_4KB, EFI_MEMORY_UC|EFI_ME= MORY_RUNTIME); + ASSERT_EFI_ERROR (Status); } =20 --=20 2.43.0 -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#113562): https://edk2.groups.io/g/devel/message/113562 Mute This Topic: https://groups.io/mt/103653101/1787277 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [importer@patchew.org] -=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-=3D-