From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail02.groups.io (mail02.groups.io [66.175.222.108]) by spool.mail.gandi.net (Postfix) with ESMTPS id 4E2D9740034 for ; Mon, 19 Feb 2024 02:03:46 +0000 (UTC) DKIM-Signature: a=rsa-sha256; bh=eK9M5bMeE8KrFTpu7QA/vgkHagYVDgiheesttvNSDV0=; c=relaxed/simple; d=groups.io; h=From:To:Cc:Subject:Date:Message-Id: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=1708308225; v=1; b=VHMefM+rGTgJpxxykMCSHcXo3TQf+PdgjC8gBkLEk5xPyln0XotAvDq4iZbga7cY/LwzIDby qNxZAO6SZgmefiZ6G7bP3mykrGHEg1ZPp9zhlgx8qMFynSoXAmuO5p4veZjSqCgglwe3N9BaULr MXW+FV/F9NfVR66vLW2HKj+U= X-Received: by 127.0.0.2 with SMTP id hLLOYY7687511xI4Y9PZdZ7z; Sun, 18 Feb 2024 18:03:45 -0800 X-Received: from mail.loongson.cn (mail.loongson.cn [114.242.206.163]) by mx.groups.io with SMTP id smtpd.web10.32579.1708308223277363209 for ; Sun, 18 Feb 2024 18:03:43 -0800 X-Received: from loongson.cn (unknown [10.2.5.185]) by gateway (Coremail) with SMTP id _____8Cxruv7ttJlvi8OAA--.37922S3; Mon, 19 Feb 2024 10:03:39 +0800 (CST) X-Received: from localhost.localdomain (unknown [10.2.5.185]) by localhost.localdomain (Coremail) with SMTP id AQAAf8AxTs37ttJl+bY7AA--.19916S2; Mon, 19 Feb 2024 10:03:39 +0800 (CST) From: "xianglai" To: devel@edk2.groups.io Cc: Andrea Bolognani , Bibo Mao , Chao Li Subject: [edk2-devel] [edk2-platforms 0/1] loongarch supports parsing multi-chip flash Date: Mon, 19 Feb 2024 10:03:36 +0800 Message-Id: MIME-Version: 1.0 X-CM-TRANSID: AQAAf8AxTs37ttJl+bY7AA--.19916S2 X-CM-SenderInfo: 5ol0xt5qjotxo6or00hjvr0hdfq/ X-Coremail-Antispam: 1Uk129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7KY7 ZEXasCq-sGcSsGvfJ3UbIjqfuFe4nvWSU5nxnvy29KBjDU0xBIdaVrnUUvcSsGvfC2Kfnx nUUI43ZEXa7xR_UUUUUUUUU== 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,lixianglai@loongson.cn List-Unsubscribe-Post: List-Unsubscribe=One-Click List-Unsubscribe: X-Gm-Message-State: E1EEegecYO8dyp1yteXfQ3DBx7686176AA= Content-Transfer-Encoding: 8bit X-GND-Status: LEGIT Authentication-Results: spool.mail.gandi.net; dkim=pass header.d=groups.io header.s=20140610 header.b=VHMefM+r; dmarc=none; spf=pass (spool.mail.gandi.net: domain of bounce@groups.io designates 66.175.222.108 as permitted sender) smtp.mailfrom=bounce@groups.io The current implementation of loongarch NorFlashQemuLib is to parse fdt and think that the first flash address resolved to the NVRAM space, with the evolution of qemu code, loongarch uses the first flash to store UEFI code and the second flash as NVRAM space, so NorFlashQemuLib needs to be able to parse multiple flash base addresses. By default, the first piece of flash other than UEFI code is considered as NVRAM space. Cc: Andrea Bolognani Cc: Bibo Mao Cc: Chao Li Xianglai Li (1): Platform/Loongson: loongarch supports parsing multi-chip flash .../Library/NorFlashQemuLib/NorFlashQemuLib.c | 75 ++++++++++++------- .../NorFlashQemuLib/NorFlashQemuLib.inf | 2 + .../Loongson/LoongArchQemuPkg/Loongson.fdf | 4 +- 3 files changed, 51 insertions(+), 30 deletions(-) -- 2.39.1 -=-=-=-=-=-=-=-=-=-=-=- Groups.io Links: You receive all messages sent to this group. View/Reply Online (#115573): https://edk2.groups.io/g/devel/message/115573 Mute This Topic: https://groups.io/mt/104439665/7686176 Group Owner: devel+owner@edk2.groups.io Unsubscribe: https://edk2.groups.io/g/devel/unsub [rebecca@openfw.io] -=-=-=-=-=-=-=-=-=-=-=-