From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bin Meng Date: Wed, 2 Oct 2019 22:07:50 +0800 Subject: [U-Boot] [PATCH v2 34/38] x86: Change condition for using CAR In-Reply-To: <20190925141147.191166-35-sjg@chromium.org> References: <20190925141147.191166-1-sjg@chromium.org> <20190925141147.191166-35-sjg@chromium.org> Message-ID: List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Wed, Sep 25, 2019 at 10:13 PM Simon Glass wrote: > > At present we assume that CAR (Cache-as-RAM) is used if HOBs (Hand-off > bLocks) are not, since HOBs typically indicate that an FSP is in use, and nits: blocks > FSPs handle the CAR init. > > However this is a bit indirect, and for FSP2 machines which use their own > CAR implementation (such as apollolake) but use the FSP for other > functions, the logic is wrong. > > To fix this, add a dedicated Kconfig option to indicate when CAR is used. > > Signed-off-by: Simon Glass > --- > > Changes in v2: None > > arch/x86/Kconfig | 8 ++++++++ > arch/x86/cpu/start.S | 4 ++-- > configs/slimbootloader_defconfig | 1 + > 3 files changed, 11 insertions(+), 2 deletions(-) > Reviewed-by: Bin Meng