Message ID | 20240826115940.3233167-22-sughosh.ganu@linaro.org |
---|---|
State | Accepted |
Commit | d4ab7cde0cd89bafd0626cabbe9b2ed3d733337a |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:e044:0:b0:367:895a:4699 with SMTP id w4csp1478308wrh; Mon, 26 Aug 2024 05:03:43 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCXKeRRZ74qnK6E+DViPiWGzutVH02T1B8nrYOewfeSVCJXrTBI8EwXAsN0QBoEbA8c8a+mmhQ==@linaro.org X-Google-Smtp-Source: AGHT+IH5nx4vOXq/ucDOt012qU5CxKoif1/R0OZKVnFO3FoBZh69jdbebOcw2CWLf/K7vI9b5g8U X-Received: by 2002:a05:600c:1552:b0:426:5416:67de with SMTP id 5b1f17b1804b1-42acc8ff52bmr61259025e9.30.1724673823209; Mon, 26 Aug 2024 05:03:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1724673823; cv=none; d=google.com; s=arc-20160816; b=jk7jfBvQoaV4D2i6u4z3YJsvhEtQ5GUkM9IYR97HkFLcmThLJ2IozJQwIw9kauDffG a6iq2MH0HIKjkR/HiD4QU1+CNKpBEJZJjGjzdeLfZ88HLTdr1z5wlx6v7q0/eMF+p/Am oNXyxFHxHNQ9rJn52jzpaifw4+XlF07SWyILTFpYWz+E0hVnm6DZcJhzuQc4SZffCYJR C3x81JbM4ci36Or9+k8l1ofps8b4Dmxof7pp/DlVo4fg0WNB+7jixIRzXzQatbcMXHLr nxGA2sJ3j1i4kthsN1OhhPTP34l+6Aq4cqPvYapEFrWkUu/gNg1wMzaFaxjux+2qajPx Jahw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=wfdhuUiiLWYeFRfo+c1IJaIRflWgRN8NlY1POolwTEU=; fh=8IbOOFAUJYCfGYrzM0jWqtoOP7AaZuPOmdHZ5mvNk1Q=; b=HDNn0RPrhFj4RTjbVAOaO3J020MYNc4iU2R5gJ+jWVwczoive/7EdHUsaw/yeq6mUU FiRaslO9iWxXjWJVd+7/ChtZfOpFBG3x2H0cdVykRY9ppTLpi7B9A/fKgrxZ4WmO52z5 t5Q/2JQjV0MXVYb3bIrxSfj1cUKgSLgKcl5C82l7f25H5UDo3OIQD8zJqc6QqeDa2ypJ maWn1fMWbzumhWasMT1bcwbgIFz3M/u30rl3xuYG+z/fiAv67WVGtUI03jjJo3WkiVce ABtKP5pCe/OxvROoq6MtkTA1o67YLx2JkHFKjVSr700++y/KB2BE9MDgBSvH0BOsW3I3 FPZA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <u-boot-bounces@lists.denx.de> Received: from phobos.denx.de (phobos.denx.de. [85.214.62.61]) by mx.google.com with ESMTPS id ffacd0b85a97d-3730811706fsi3971861f8f.180.2024.08.26.05.03.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 26 Aug 2024 05:03:43 -0700 (PDT) Received-SPF: pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) client-ip=85.214.62.61; Authentication-Results: mx.google.com; spf=pass (google.com: domain of u-boot-bounces@lists.denx.de designates 85.214.62.61 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id D0B9B88BBE; Mon, 26 Aug 2024 14:01:39 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by phobos.denx.de (Postfix, from userid 109) id DDAEC88BBE; Mon, 26 Aug 2024 14:01:37 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, SPF_HELO_NONE,SPF_SOFTFAIL,T_FILL_THIS_FORM_SHORT,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by phobos.denx.de (Postfix) with ESMTP id E1D9F88A2E for <u-boot@lists.denx.de>; Mon, 26 Aug 2024 14:01:35 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=sughosh.ganu@linaro.org 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 8FCA811FB; Mon, 26 Aug 2024 05:02:01 -0700 (PDT) Received: from a079122.blr.arm.com (a079122.arm.com [10.162.17.48]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id ACAC53F762; Mon, 26 Aug 2024 05:01:31 -0700 (PDT) From: Sughosh Ganu <sughosh.ganu@linaro.org> To: u-boot@lists.denx.de Cc: Simon Glass <sjg@chromium.org>, Tom Rini <trini@konsulko.com>, Ilias Apalodimas <ilias.apalodimas@linaro.org>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Marek Vasut <marex@denx.de>, Mark Kettenis <mark.kettenis@xs4all.nl>, Michal Simek <michal.simek@amd.com>, Patrick DELAUNAY <patrick.delaunay@foss.st.com>, Patrice CHOTARD <patrice.chotard@foss.st.com>, =?utf-8?q?Marek_Beh=C3=BAn?= <kabel@kernel.org>, Sughosh Ganu <sughosh.ganu@linaro.org> Subject: [PATCH v4 21/27] spl: sandbox: initialise the ram banksize in spl Date: Mon, 26 Aug 2024 17:29:34 +0530 Message-Id: <20240826115940.3233167-22-sughosh.ganu@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240826115940.3233167-1-sughosh.ganu@linaro.org> References: <20240826115940.3233167-1-sughosh.ganu@linaro.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.8 at phobos.denx.de X-Virus-Status: Clean |
Series |
Make LMB memory map global and persistent
|
expand
|
diff --git a/arch/sandbox/cpu/spl.c b/arch/sandbox/cpu/spl.c index cc46965b73..1c33a520c6 100644 --- a/arch/sandbox/cpu/spl.c +++ b/arch/sandbox/cpu/spl.c @@ -127,6 +127,15 @@ static int load_from_image(struct spl_image_info *spl_image, } SPL_LOAD_IMAGE_METHOD("sandbox_image", 7, BOOT_DEVICE_BOARD, load_from_image); +int dram_init_banksize(void) +{ + /* These are necessary so TFTP can use LMBs to check its load address */ + gd->bd->bi_dram[0].start = gd->ram_base; + gd->bd->bi_dram[0].size = get_effective_memsize(); + + return 0; +} + void spl_board_init(void) { struct sandbox_state *state = state_get_current(); @@ -134,10 +143,6 @@ void spl_board_init(void) if (!CONFIG_IS_ENABLED(UNIT_TEST)) return; - /* These are necessary so TFTP can use LMBs to check its load address */ - gd->bd->bi_dram[0].start = gd->ram_base; - gd->bd->bi_dram[0].size = get_effective_memsize(); - if (state->run_unittests) { struct unit_test *tests = UNIT_TEST_ALL_START(); const int count = UNIT_TEST_ALL_COUNT();