All of lore.kernel.org
 help / color / mirror / Atom feed
From: York Sun <york.sun@nxp.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 03/11] powerpc: mpc86xx: Convert CONFIG_SYS_CCSRBAR_DEFAULT to Kconfig option
Date: Fri, 2 Dec 2016 13:37:44 -0800	[thread overview]
Message-ID: <1480714672-21632-4-git-send-email-york.sun@nxp.com> (raw)
In-Reply-To: <1480714672-21632-1-git-send-email-york.sun@nxp.com>

Move default value definitions to Kconfig SYS_CCSRBAR_DEFAULT.

Signed-off-by: York Sun <york.sun@nxp.com>
---

 arch/powerpc/cpu/mpc86xx/Kconfig | 9 +++++++++
 include/configs/MPC8610HPCD.h    | 1 -
 include/configs/MPC8641HPCN.h    | 1 -
 include/configs/sbc8641d.h       | 1 -
 include/configs/xpedite517x.h    | 1 -
 5 files changed, 9 insertions(+), 4 deletions(-)

diff --git a/arch/powerpc/cpu/mpc86xx/Kconfig b/arch/powerpc/cpu/mpc86xx/Kconfig
index 98fb702..57e7476 100644
--- a/arch/powerpc/cpu/mpc86xx/Kconfig
+++ b/arch/powerpc/cpu/mpc86xx/Kconfig
@@ -32,6 +32,15 @@ config ARCH_MPC8610
 config ARCH_MPC8641
 	bool
 
+config SYS_CCSRBAR_DEFAULT
+	hex "Default CCSRBAR address"
+	default 0xff700000 if ARCH_MPC8610 || ARCH_MPC8641
+	help
+		Default value of CCSRBAR comes from power-on-reset. It
+		is fixed on each SoC. Some SoCs can have different value
+		if changed by pre-boot regime. The value here must match
+		the current value in SoC. If not sure, do not change.
+
 source "board/freescale/mpc8610hpcd/Kconfig"
 source "board/freescale/mpc8641hpcn/Kconfig"
 source "board/sbc8641d/Kconfig"
diff --git a/include/configs/MPC8610HPCD.h b/include/configs/MPC8610HPCD.h
index 75693a0..4cf9bd6 100644
--- a/include/configs/MPC8610HPCD.h
+++ b/include/configs/MPC8610HPCD.h
@@ -72,7 +72,6 @@
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000	/* CCSRBAR Default */
 #define CONFIG_SYS_CCSRBAR		0xe0000000	/* relocated CCSRBAR */
 #define CONFIG_SYS_IMMR		CONFIG_SYS_CCSRBAR	/* PQII uses CONFIG_SYS_IMMR */
 
diff --git a/include/configs/MPC8641HPCN.h b/include/configs/MPC8641HPCN.h
index c94b329..06ef0d9 100644
--- a/include/configs/MPC8641HPCN.h
+++ b/include/configs/MPC8641HPCN.h
@@ -87,7 +87,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000	/* CCSRBAR Default */
 #define CONFIG_SYS_CCSRBAR		0xffe00000	/* relocated CCSRBAR */
 #define CONFIG_SYS_IMMR		CONFIG_SYS_CCSRBAR	/* PQII uses CONFIG_SYS_IMMR */
 
diff --git a/include/configs/sbc8641d.h b/include/configs/sbc8641d.h
index 2bd89f4..7c8ceb3 100644
--- a/include/configs/sbc8641d.h
+++ b/include/configs/sbc8641d.h
@@ -87,7 +87,6 @@
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000	/* CCSRBAR Default */
 #define CONFIG_SYS_CCSRBAR		0xf8000000	/* relocated CCSRBAR */
 #define CONFIG_SYS_IMMR		CONFIG_SYS_CCSRBAR	/* PQII uses CONFIG_SYS_IMMR */
 
diff --git a/include/configs/xpedite517x.h b/include/configs/xpedite517x.h
index 6d95789..86bc1cf 100644
--- a/include/configs/xpedite517x.h
+++ b/include/configs/xpedite517x.h
@@ -76,7 +76,6 @@ extern unsigned long get_board_sys_clk(unsigned long dummy);
  * Base addresses -- Note these are effective addresses where the
  * actual resources get mapped (not physical addresses)
  */
-#define CONFIG_SYS_CCSRBAR_DEFAULT	0xff700000	/* CCSRBAR Default */
 #define CONFIG_SYS_CCSRBAR		0xef000000	/* relocated CCSRBAR */
 #define CONFIG_SYS_CCSRBAR_PHYS		CONFIG_SYS_CCSRBAR
 #define CONFIG_SYS_CCSRBAR_PHYS_LOW	CONFIG_SYS_CCSRBAR
-- 
2.7.4

  parent reply	other threads:[~2016-12-02 21:37 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-12-02 21:37 [U-Boot] [PATCH 00/11] Convert several macros to Kconfig York Sun
2016-12-02 21:37 ` [U-Boot] [PATCH 01/11] powerpc: cyrus: Separate P5020/P5040 config options York Sun
2016-12-02 21:37 ` [U-Boot] [PATCH 02/11] powerpc: mpc85xx: Convert CONFIG_SYS_CCSRBAR_DEFAULT to Kconfig option York Sun
2016-12-02 21:37 ` York Sun [this message]
2016-12-02 21:37 ` [U-Boot] [PATCH 04/11] script: remove CONFIG_SYS_CCSRBAR_DEFAULT from white list York Sun
2016-12-02 21:37 ` [U-Boot] [PATCH 05/11] armv7: ls1021a: Move SECURE_BOOT option to Kconfig York Sun
2016-12-02 21:37 ` [U-Boot] [PATCH 06/11] armv8: fsl-layerscape: Move SECURE_BOOT " York Sun
2016-12-02 21:37 ` [U-Boot] [PATCH 07/11] powerpc: mpc85xx: " York Sun
2016-12-02 21:37 ` [U-Boot] [PATCH 08/11] powerpc: mpc85xx: Move CONFIG_FSL_LAW " York Sun
2016-12-02 21:37 ` [U-Boot] [PATCH 09/11] powerpc: mpc86xx: " York Sun
2016-12-02 21:37 ` [U-Boot] [PATCH 10/11] powerpc: mpc85xx: Convert CONFIG_SYS_FSL_NUM_LAWS to Kconfig option York Sun
2016-12-02 21:37 ` [U-Boot] [PATCH 11/11] powerpc: mpc86xx: " York Sun
2016-12-04  1:38 ` [U-Boot] [PATCH 00/11] Convert several macros to Kconfig Tom Rini

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=1480714672-21632-4-git-send-email-york.sun@nxp.com \
    --to=york.sun@nxp.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.