All of lore.kernel.org
 help / color / mirror / Atom feed
From: Michal Simek <michal.simek@xilinx.com>
To: u-boot@lists.denx.de
Subject: [PATCH v2 5/6] microblaze: Unify of setting for SPL_NOR/XIP support
Date: Mon, 16 Nov 2020 16:02:18 +0100	[thread overview]
Message-ID: <7bbf59a0274d75ccc0d0815ca286a4670a4d8a1e.1605538936.git.michal.simek@xilinx.com> (raw)
In-Reply-To: <cover.1605538936.git.michal.simek@xilinx.com>

XIP is not enabled in SPL. SPL_NOR is enabled but any macro setting with
using SYS_FLASH_BASE are wrong because it is not aligned with DM.
That's why change these macro and align them with TEXT_BASE macro.
Information should be find at run time based on DT but implementation is
not done yet.

Signed-off-by: Michal Simek <michal.simek@xilinx.com>
---

Changes in v2:
- Rework the whole patch because SPL_NOR is enabled by default.

 include/configs/microblaze-generic.h | 8 +++-----
 1 file changed, 3 insertions(+), 5 deletions(-)

diff --git a/include/configs/microblaze-generic.h b/include/configs/microblaze-generic.h
index 72550113cefa..c31a7880743f 100644
--- a/include/configs/microblaze-generic.h
+++ b/include/configs/microblaze-generic.h
@@ -163,14 +163,12 @@
 
 /* SPL part */
 
-#ifdef CONFIG_SYS_FLASH_BASE
-# define CONFIG_SYS_UBOOT_BASE		CONFIG_SYS_FLASH_BASE
-#endif
+#define CONFIG_SYS_UBOOT_BASE		CONFIG_SYS_TEXT_BASE
 
 /* for booting directly linux */
+#define CONFIG_SYS_FDT_BASE		(CONFIG_SYS_TEXT_BASE + \
+					0x40000)
 
-#define CONFIG_SYS_FDT_BASE		(CONFIG_SYS_FLASH_BASE + \
-					 0x40000)
 #define CONFIG_SYS_SPL_ARGS_ADDR	(CONFIG_SYS_TEXT_BASE + \
 					 0x1000000)
 
-- 
2.29.2

  parent reply	other threads:[~2020-11-16 15:02 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-16 15:02 [PATCH v2 0/6] microblaze: Cleanup series Michal Simek
2020-11-16 15:02 ` [PATCH v2 1/6] microblaze: Clean config file from ifdef mess Michal Simek
2020-11-16 15:02 ` [PATCH v2 2/6] microblaze: Simplify cache handling Michal Simek
2020-11-16 15:02 ` [PATCH v2 3/6] microblaze: Get rid of xparameters.h Michal Simek
2020-11-16 15:02 ` [PATCH v2 4/6] microblaze: Remove CONFIG_SYS_FDT_SIZE Michal Simek
2020-11-16 15:02 ` Michal Simek [this message]
2020-11-16 15:02 ` [PATCH v2 6/6] microblaze: Detect NOR flash based on DT Michal Simek
2020-11-20  9:47 ` [PATCH v2 0/6] microblaze: Cleanup series Michal Simek

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7bbf59a0274d75ccc0d0815ca286a4670a4d8a1e.1605538936.git.michal.simek@xilinx.com \
    --to=michal.simek@xilinx.com \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.