All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jacob Chen <jacob2.chen@rock-chips.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 2/3] rockchip: configs: make rk3036 env config same as rk3288
Date: Fri, 18 Nov 2016 15:52:21 +0800	[thread overview]
Message-ID: <1479455542-21075-2-git-send-email-jacob2.chen@rock-chips.com> (raw)
In-Reply-To: <1479455542-21075-1-git-send-email-jacob2.chen@rock-chips.com>

To make rockchip soc keep the same partition map


Signed-off-by: Jacob Chen <jacob2.chen@rock-chips.com>
---

Changes in v2:
- add a commit message

 include/configs/kylin_rk3036.h | 17 ++++++++++++++---
 1 file changed, 14 insertions(+), 3 deletions(-)

diff --git a/include/configs/kylin_rk3036.h b/include/configs/kylin_rk3036.h
index 4f0bd84..bc28525 100644
--- a/include/configs/kylin_rk3036.h
+++ b/include/configs/kylin_rk3036.h
@@ -19,9 +19,20 @@
 #define CONFIG_ENV_IS_IN_MMC
 #define CONFIG_SYS_MMC_ENV_DEV		0 /* emmc */
 #define CONFIG_SYS_MMC_ENV_PART		0 /* user area */
-#define CONFIG_ENV_OFFSET		(SZ_4M - SZ_64K) /* reserved area */
-#define CONFIG_ENV_OFFSET_REDUND	(CONFIG_ENV_OFFSET + CONFIG_ENV_SIZE)
-#define CONFIG_SYS_REDUNDAND_ENVIRONMENT
+
+#ifdef CONFIG_ROCKCHIP_SPL_BACK_TO_BROM
+/* SPL @ 32k for 34k
+ * u-boot directly after @ 68k for 400k or so
+ * ENV @ 992k
+ */
+#define CONFIG_ENV_OFFSET ((1024-32) * 1024)
+#else
+/* SPL @ 32k for ~36k
+ * ENV @ 96k
+ * u-boot @ 128K
+ */
+#define CONFIG_ENV_OFFSET (96 * 1024)
+#endif
 
 #endif
 
-- 
1.9.1

  reply	other threads:[~2016-11-18  7:52 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-11-18  7:52 [U-Boot] [PATCH v2 1/3] rockchip: configs: correct env offset when enable CONFIG_ROCKCHIP_SPL_BACK_TO_BROM Jacob Chen
2016-11-18  7:52 ` Jacob Chen [this message]
2016-11-19 13:48   ` [U-Boot] [PATCH v2 2/3] rockchip: configs: make rk3036 env config same as rk3288 Simon Glass
2016-12-03  4:50     ` Simon Glass
2016-11-18  7:52 ` [U-Boot] [PATCH v2 3/3] rockchip: configs: correct partitions 'boot' size Jacob Chen
2016-11-19 13:48 ` [U-Boot] [PATCH v2 1/3] rockchip: configs: correct env offset when enable CONFIG_ROCKCHIP_SPL_BACK_TO_BROM Simon Glass
2016-12-03  4:50   ` Simon Glass

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=1479455542-21075-2-git-send-email-jacob2.chen@rock-chips.com \
    --to=jacob2.chen@rock-chips.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.