All of lore.kernel.org
 help / color / mirror / Atom feed
From: Russell King - ARM Linux <linux@arm.linux.org.uk>
To: Tony Lindgren <tony@atomide.com>
Cc: linux-arm-kernel@lists.arm.linux.org.uk,
	linux-omap@vger.kernel.org, "Syed Mohammed,
	Khasim" <khasim@ti.com>
Subject: Re: [PATCH 02/05] ARM: OMAP3: Add minimal Beagle board support
Date: Thu, 9 Oct 2008 15:51:25 +0100	[thread overview]
Message-ID: <20081009145125.GH435@flint.arm.linux.org.uk> (raw)
In-Reply-To: <1223035779-26306-3-git-send-email-tony@atomide.com>

On Fri, Oct 03, 2008 at 03:09:36PM +0300, Tony Lindgren wrote:
> diff --git a/arch/arm/plat-omap/include/mach/board-omap3beagle.h b/arch/arm/plat-omap/include/mach/board-omap3beagle.h
> new file mode 100644
> index 0000000..3080d52
> --- /dev/null
> +++ b/arch/arm/plat-omap/include/mach/board-omap3beagle.h
> @@ -0,0 +1,33 @@
> +/*
> + * arch/arm/plat-omap/include/mach/board-omap3beagle.h
> + *
> + * Hardware definitions for TI OMAP3 BEAGLE.
> + *
> + * Initial creation by Syed Mohammed Khasim <khasim@ti.com>
> + *
> + * 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 SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
> + * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
> + * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
> + * NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
> + * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
> + * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
> + * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
> + * ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
> + * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
> + * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
> + *
> + * 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.,
> + * 675 Mass Ave, Cambridge, MA 02139, USA.
> + */
> +
> +#ifndef __ASM_ARCH_OMAP3_BEAGLE_H
> +#define __ASM_ARCH_OMAP3_BEAGLE_H
> +
> +#endif /* __ASM_ARCH_OMAP3_BEAGLE_H */
> +
> diff --git a/arch/arm/plat-omap/include/mach/hardware.h b/arch/arm/plat-omap/include/mach/hardware.h
> index 29c849f..80f6d7e 100644
> --- a/arch/arm/plat-omap/include/mach/hardware.h
> +++ b/arch/arm/plat-omap/include/mach/hardware.h
> @@ -322,6 +322,10 @@
>  #include "board-2430sdp.h"
>  #endif
>  
> +#ifdef CONFIG_MACH_OMAP3_BEAGLE
> +#include "board-omap3beagle.h"
> +#endif
> +
>  #ifdef CONFIG_MACH_OMAP_APOLLON
>  #include "board-apollon.h"
>  #endif

I really think you need to reconsider whether including board specific
support files into mach/hardware.h is a good idea, or whether having
all the machine specifics in the relevent board.c file should be the
way to go.

That's certainly possible, and is done by others like PXA very
successfully, and avoids any chance of board specific definitions
ever clashing with each other.  It also cuts down on the dependencies,
and the number of files that need to be rebuilt when one of these
header files are touched.

  parent reply	other threads:[~2008-10-09 14:51 UTC|newest]

Thread overview: 36+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-10-03 12:09 [PATCH 0/0] Add minimal omap34xx support Tony Lindgren
2008-10-03 12:09 ` [PATCH 01/05] ARM: OMAP2: Add minimal omap3430 support Tony Lindgren
2008-10-03 12:09   ` [PATCH 02/05] ARM: OMAP3: Add minimal Beagle board support Tony Lindgren
2008-10-03 12:09     ` [PATCH 03/05] ARM: OMAP3: Add Beagle defconfig Tony Lindgren
2008-10-03 12:09       ` [PATCH 04/05] ARM: OMAP2: Add support for the Gumstix Overo board (rev 3) Tony Lindgren
2008-10-03 12:09         ` [PATCH 05/05] ARM: OMAP2: defconfig " Tony Lindgren
2008-10-03 12:50         ` [PATCH 04/05] ARM: OMAP2: Add support " Tony Lindgren
2008-10-06 14:38           ` Tony Lindgren
2008-10-08  8:21       ` [PATCH 03/05] ARM: OMAP3: Add Beagle defconfig, v2 Tony Lindgren
2008-10-09 14:51     ` Russell King - ARM Linux [this message]
2008-10-10  8:51       ` [PATCH 02/05] ARM: OMAP3: Add minimal Beagle board support Tony Lindgren
2008-10-05  8:01   ` [PATCH 01/05] ARM: OMAP2: Add minimal omap3430 support Tony Lindgren
2008-10-06 14:35     ` Tony Lindgren
2008-10-08  8:19   ` [PATCH 01/05] ARM: OMAP2: Add minimal omap3430 support, v2 Tony Lindgren
2008-10-09 14:47   ` [PATCH 01/05] ARM: OMAP2: Add minimal omap3430 support Russell King - ARM Linux
2008-10-09 15:09     ` Tony Lindgren
2008-10-03 15:52 ` [PATCH 0/0] Add minimal omap34xx support twebb
2008-10-04  7:05   ` Tony Lindgren
2008-10-04 12:42     ` twebb
2008-10-04 20:37       ` Felipe Balbi
2008-10-09 14:54     ` Russell King - ARM Linux
2008-10-09 15:17       ` Tony Lindgren
2008-10-10  7:32         ` Russell King - ARM Linux
2008-10-10  9:15           ` [PATCH] ARM: OMAP3: Add basic board support for OMAP LDP (Re: [PATCH 0/0] Add minimal omap34xx support) Tony Lindgren
2008-10-10  9:25             ` [PATCH] ARM: OMAP3: Add default kernel config " Tony Lindgren
2008-10-10 11:35               ` git pull request for minimal omap3 support one more time Tony Lindgren
2008-10-13 13:32                 ` Russell King - ARM Linux
2008-10-14 17:19                   ` Tony Lindgren
2008-10-14 18:51                     ` Russell King - ARM Linux
2008-10-14 20:35                       ` Tony Lindgren
2008-10-14 20:55                         ` Tony Lindgren
2008-10-15  6:02                     ` Jarkko Nikula
2008-10-15 18:34                       ` Tony Lindgren
2008-10-08  7:50 ` git pull request for minimal omap3 support (Re: [PATCH 0/0] Add minimal omap34xx support) Tony Lindgren
2008-10-08  8:12   ` Tony Lindgren
2008-10-08 14:58     ` Tony Lindgren

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=20081009145125.GH435@flint.arm.linux.org.uk \
    --to=linux@arm.linux.org.uk \
    --cc=khasim@ti.com \
    --cc=linux-arm-kernel@lists.arm.linux.org.uk \
    --cc=linux-omap@vger.kernel.org \
    --cc=tony@atomide.com \
    /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.