All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jason Kridner <jkridner@gmail.com>
To: u-boot@lists.denx.de
Subject: [U-Boot] [RFC v0 01/11] omap3+: Introduce <configs/omap3_common.h>
Date: Thu, 22 Mar 2012 21:48:27 -0400	[thread overview]
Message-ID: <CB911486.82090%jkridner@gmail.com> (raw)
In-Reply-To: <1332443357-14062-2-git-send-email-trini@ti.com>

I'm reading/replying to these one-by-one for sanity/clarity with regards
to BeagleBoard...

-----Original Message-----
From: Tom Rini <trini@ti.com>
Date: Thu, 22 Mar 2012 12:09:07 -0700
To: <u-boot@lists.denx.de>
Subject: [U-Boot] [RFC v0 01/11] omap3+: Introduce <configs/omap3_common.h>

>This is a common file for OMAP3 (and OMAP3-alike) platforms to have
>default, configurable when needed values and choices placed.  All users
>of this file now have a section for providing their overrides (when the
>defaults are not wanted), this file, and then a place to opt-out of
>choices this file has made.
>
>Signed-off-by: Tom Rini <trini@ti.com>
>---
> include/configs/am3517_crane.h         |   19 +++++++++-----
> include/configs/am3517_evm.h           |   20 ++++++++++-----
> include/configs/cm_t35.h               |   22 +++++++++++------
> include/configs/devkit8000.h           |   24 ++++++++++++------
> include/configs/dig297.h               |   22 +++++++++++------
> include/configs/igep00x0.h             |   19 ++++++++------
> include/configs/mcx.h                  |   24 +++++++++++--------
> include/configs/mt_ventoux.h           |   13 ++++++++++
> include/configs/omap3_beagle.h         |   19 +++++++++-----
> include/configs/omap3_common.h         |   40
>++++++++++++++++++++++++++++++++
> include/configs/omap3_evm.h            |    3 --
> include/configs/omap3_evm_common.h     |   15 ++++++++---
> include/configs/omap3_evm_quick_mmc.h  |    7 +++--
> include/configs/omap3_evm_quick_nand.h |    7 +++--
> include/configs/omap3_logic.h          |   20 ++++++++++-----
> include/configs/omap3_mvblx.h          |   23 +++++++++++-------
> include/configs/omap3_overo.h          |   19 +++++++++-----
> include/configs/omap3_pandora.h        |   19 +++++++++-----
> include/configs/omap3_sdp3430.h        |   38
>++++++++++++++++--------------
> include/configs/omap3_zoom1.h          |   19 +++++++++-----
> include/configs/omap3_zoom2.h          |   19 +++++++++-----
> include/configs/tam3517-common.h       |   21 ++++++++++------
> include/configs/tricorder.h            |   23 ++++++++++++------
> include/configs/twister.h              |   14 +++++++++++
> 24 files changed, 315 insertions(+), 154 deletions(-)
> create mode 100644 include/configs/omap3_common.h
>
>

...remove non-beagle patches for brevity...

>
> 
>diff --git a/include/configs/omap3_beagle.h
>b/include/configs/omap3_beagle.h
>index 80b9a5a..21e4b01 100644
>--- a/include/configs/omap3_beagle.h
>+++ b/include/configs/omap3_beagle.h
>@@ -29,16 +29,21 @@
> #define __CONFIG_H
> 
> /*
>- * High Level Configuration Options
>+ * Values that differ from platform defaults or are unspecified.
>  */
>-#define CONFIG_OMAP		1	/* in a TI OMAP core */
>-#define CONFIG_OMAP34XX		1	/* which is a 34XX */
>-#define CONFIG_OMAP3_BEAGLE	1	/* working with BEAGLE */
>+#define CONFIG_SDRC			/* The chip has SDRC controller */
> 
>-#define CONFIG_SDRC	/* The chip has SDRC controller */

I can see it can make sense to have an OMAP/DM/AM3x target without SDRC
enabled.

>+/* Platform defaults */
>+#include <configs/omap3_common.h>
> 
>-#include <asm/arch/cpu.h>		/* get chip and board defs */
>-#include <asm/arch/omap3.h>
>+/*
>+ * Override the common platform file choices.
>+ */
>+
>+/*
>+ * Other configuration options
>+ */
>+#define CONFIG_OMAP3_BEAGLE		/* working with BEAGLE */
> 
> /*
>  * Display CPU and Board information
>diff --git a/include/configs/omap3_common.h
>b/include/configs/omap3_common.h
>new file mode 100644
>index 0000000..417dec0
>--- /dev/null
>+++ b/include/configs/omap3_common.h
>@@ -0,0 +1,40 @@
>+/*
>+ * (C) Copyright 2012
>+ * Texas Instruments Incorporated.
>+ * Tom Rini <trini@ti.com>
>+ *
>+ * TI OMAP3 (and AM/DM related parts) common configuration settings
>+ *
>+ * See file CREDITS for list of people who contributed to this
>+ * project.
>+ *
>+ * This program is free software; you can redistribute it and/or
>+ * modify it under the terms of the GNU General Public License as
>+ * published by the Free Software Foundation; either version 2 of
>+ * the License, or (at your option) any later version.
>+ *
>+ * This program is distributed in the hope that it will be useful,
>+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
>+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
>+ * GNU General Public License for more details.
>+ *
>+ * You should have received a copy of the GNU General Public License
>+ * along with this program; if not, write to the Free Software
>+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
>+ * MA 02111-1307 USA
>+ */
>+
>+#ifndef __CONFIG_OMAP3_COMMON_H
>+#define __CONFIG_OMAP3_COMMON_H
>+
>+/*
>+ * A TI OMAP3 (or similar) core
>+ */
>+#define CONFIG_OMAP
>+#define CONFIG_OMAP34XX
>+
>+/* Get CPU defs */
>+#include <asm/arch/cpu.h>
>+#include <asm/arch/omap3.h>
>+
>+#endif /* __CONFIG_OMAP3_COMMON_H */

... non-beagle stuff removed for brevity ...

I think this change looks rather useful and would have no negative impact.

  reply	other threads:[~2012-03-23  1:48 UTC|newest]

Thread overview: 21+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-03-22 19:09 [U-Boot] [RFC v0 0/11]: Add <configs/omap3_common.h> Tom Rini
2012-03-22 19:09 ` [U-Boot] [RFC v0 01/11] omap3+: Introduce <configs/omap3_common.h> Tom Rini
2012-03-23  1:48   ` Jason Kridner [this message]
2012-03-23 15:26     ` Tom Rini
2012-03-22 19:09 ` [U-Boot] [RFC v0 02/11] omap3: Move DISPLAY_CPUINFO / DISPLAY_BOARDINFO to common Tom Rini
2012-03-22 19:09 ` [U-Boot] [RFC v0 03/11] omap3: Move V_OSCK / V_SCLK to omap3_common.h Tom Rini
2012-03-22 19:09 ` [U-Boot] [RFC v0 04/11] omap3: Move '#undef CONFIG_USE_IRQ' " Tom Rini
2012-03-22 19:09 ` [U-Boot] [RFC v0 05/11] omap3: Move CONFIG_MISC_INIT_R " Tom Rini
2012-03-22 19:09 ` [U-Boot] [RFC v0 06/11] omap3: Move ATAGS and OF_LIBFDT " Tom Rini
2012-03-22 19:09 ` [U-Boot] [RFC v0 07/11] omap3: Move SYS_MALLOC_LEN and ENV_SIZE " Tom Rini
2012-03-22 19:09 ` [U-Boot] [RFC v0 08/11] omap3: Consolidate UART information in omap3_common.h Tom Rini
2012-04-03 21:35   ` Mike Frysinger
2012-04-03 23:45     ` Tom Rini
2012-04-04  2:42       ` Mike Frysinger
2012-04-04 18:19         ` Tom Rini
2012-03-22 19:09 ` [U-Boot] [RFC v0 09/11] omap3: Consolidate HSMMC support into omap3_common.h Tom Rini
2012-03-22 19:09 ` [U-Boot] [RFC v0 10/11] omap3: Consolidate NAND information in omap3_common.h Tom Rini
2012-03-22 19:09 ` [U-Boot] [RFC v0 11/11] omap3: Consolidate I2C information into omap3_common.h Tom Rini
2012-04-03 21:37 ` [U-Boot] [RFC v0 0/11]: Add <configs/omap3_common.h> Mike Frysinger
2012-04-03 23:35   ` Tom Rini
2012-04-04  2:46     ` Mike Frysinger

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=CB911486.82090%jkridner@gmail.com \
    --to=jkridner@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 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.