public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
From: Derald D. Woods <woods.technical@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC PATCH 1/3] ARM: omap3: beagle: Set 'mtdids' and 'mtdparts' in board file
Date: Sun, 11 Feb 2018 23:13:27 -0600	[thread overview]
Message-ID: <20180212051329.29761-2-woods.technical@gmail.com> (raw)
In-Reply-To: <20180212051329.29761-1-woods.technical@gmail.com>

BeagleBoard 'xM' does not really have NAND. CONFIG_MTDIDS_DEFAULT and
CONFIG_MTDPARTS_DEFAULT can/should be empty for 'xM'. This commit sets
the defined values if they exist.

Signed-off-by: Derald D. Woods <woods.technical@gmail.com>
---
 board/ti/beagle/beagle.c | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c
index d8402f2675..1d55264733 100644
--- a/board/ti/beagle/beagle.c
+++ b/board/ti/beagle/beagle.c
@@ -521,6 +521,14 @@ int misc_init_r(void)
 	if (generate_fake_mac)
 		omap_die_id_usbethaddr();
 
+#if defined(CONFIG_MTDIDS_DEFAULT) && defined(CONFIG_MTDPARTS_DEFAULT)
+	if (strlen(CONFIG_MTDIDS_DEFAULT))
+		env_set("mtdids", CONFIG_MTDIDS_DEFAULT);
+
+	if (strlen(CONFIG_MTDPARTS_DEFAULT))
+		env_set("mtdparts", CONFIG_MTDPARTS_DEFAULT);
+#endif
+
 	return 0;
 }
 
-- 
2.16.1

  reply	other threads:[~2018-02-12  5:13 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-02-12  5:13 [U-Boot] [RFC PATCH 0/3] ARM: omap3: beagle, evm: synchronize common setup Derald D. Woods
2018-02-12  5:13 ` Derald D. Woods [this message]
2018-02-12  5:13 ` [U-Boot] [RFC PATCH 2/3] ARM: omap3: beagle: Enable DM_SERIAL, update distro usage and NAND layout Derald D. Woods
2018-02-12  5:13 ` [U-Boot] [RFC PATCH 3/3] ARM: omap3: evm: Sync with omap3_beagle configuration Derald D. Woods
2018-02-24 14:09 ` [U-Boot] [PATCH v2 0/3] ARM: omap3: beagle, evm: synchronize common setup Derald D. Woods
2018-02-24 14:09   ` [U-Boot] [PATCH v2 1/3] ARM: omap3: beagle: Set 'mtdids' and 'mtdparts' in board file Derald D. Woods
2018-02-24 14:09   ` [U-Boot] [PATCH v2 2/3] ARM: omap3: beagle: Enable DM_SERIAL, update distro usage and NAND layout Derald D. Woods
2018-02-24 14:09   ` [U-Boot] [PATCH v2 3/3] ARM: omap3: evm: Sync with omap3_beagle configuration Derald D. Woods
2018-02-24 14:35   ` [U-Boot] [PATCH v2 0/3] ARM: omap3: beagle, evm: synchronize common setup Tom Rini
2018-02-24 15:29     ` Derald D. Woods
2018-02-24 19:12       ` Tom Rini
2018-02-24 19:39         ` Derald Woods
2018-02-24 20:02           ` Tom Rini
2018-02-25 18:54           ` Derald D. Woods
2018-02-26 23:52             ` [U-Boot] [PATCH v3 " Derald D. Woods
2018-02-26 23:52               ` [U-Boot] [PATCH v3 1/3] ARM: omap3: beagle: Set 'mtdids' and 'mtdparts' in board file Derald D. Woods
2018-03-14 14:09                 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-02-26 23:52               ` [U-Boot] [PATCH v3 2/3] ARM: omap3: beagle: Enable DM_SERIAL, update distro usage and NAND layout Derald D. Woods
2018-03-14 14:09                 ` [U-Boot] [U-Boot, v3, " Tom Rini
2018-02-26 23:52               ` [U-Boot] [PATCH v3 3/3] ARM: omap3: evm: Sync with omap3_beagle configuration Derald D. Woods
2018-03-14 14:10                 ` [U-Boot] [U-Boot, v3, " 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=20180212051329.29761-2-woods.technical@gmail.com \
    --to=woods.technical@gmail.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox