From: Kevin Hilman <khilman@deeprootsystems.com>
To: "Anders, David" <x0132446@ti.com>
Cc: "linux-omap@vger.kernel.org" <linux-omap@vger.kernel.org>,
"tony@atomide.com" <tony@atomide.com>
Subject: Re: [PATCH] Add OMAP4 Panda support
Date: Fri, 18 Jun 2010 07:32:14 -0700 [thread overview]
Message-ID: <87y6ecbedt.fsf@deeprootsystems.com> (raw)
In-Reply-To: <7B4574D56E4ADF438756313E9A172A8799C0D3C6@dlee01.ent.ti.com> (David Anders's message of "Mon\, 17 May 2010 15\:18\:22 -0500")
"Anders, David" <x0132446@ti.com> writes:
> Add initial support for the OMAP4430 based Panda board.
>
> Signed-off-by: David Anders <x0132446@ti.com>
> ---
> arch/arm/configs/omap4_panda_defconfig | 1094 ++++++++++++++++++++++++++++++++
> arch/arm/mach-omap2/Kconfig | 4 +
> arch/arm/mach-omap2/Makefile | 1 +
> arch/arm/mach-omap2/board-omap4panda.c | 80 +++
> 4 files changed, 1179 insertions(+), 0 deletions(-)
> create mode 100644 arch/arm/configs/omap4_panda_defconfig
> create mode 100644 arch/arm/mach-omap2/board-omap4panda.c
[...]
> diff --git a/arch/arm/mach-omap2/board-omap4panda.c b/arch/arm/mach-omap2/board-omap4panda.c
> new file mode 100644
> index 0000000..95faec0
> --- /dev/null
> +++ b/arch/arm/mach-omap2/board-omap4panda.c
> @@ -0,0 +1,80 @@
> +/*
> + * Board support file for OMAP4430 based Panda.
> + *
> + * Copyright (C) 2010 Texas Instruments
> + *
> + * Author: David Anders <x0132446@ti.com>
> + *
> + * Based on mach-omap2/board-4430sdp.c
> + *
> + * Author: Santosh Shilimkar <santosh.shilimkar@ti.com>
> + *
> + * Based on mach-omap2/board-3430sdp.c
> + *
> + * This program is free software; you can redistribute it and/or modify
> + * it under the terms of the GNU General Public License version 2 as
> + * published by the Free Software Foundation.
> + */
> +
> +#include <linux/kernel.h>
> +#include <linux/init.h>
> +#include <linux/platform_device.h>
> +#include <linux/io.h>
> +#include <linux/gpio.h>
> +#include <linux/usb/otg.h>
> +
> +#include <mach/hardware.h>
> +#include <mach/omap4-common.h>
> +#include <asm/mach-types.h>
> +#include <asm/mach/arch.h>
> +#include <asm/mach/map.h>
> +
> +#include <plat/board.h>
> +#include <plat/common.h>
> +#include <plat/control.h>
> +#include <plat/timer-gp.h>
> +#include <plat/usb.h>
> +
> +static void __init omap4_panda_init_irq(void)
> +{
> + omap2_init_common_hw(NULL, NULL);
> +#ifdef CONFIG_OMAP_32K_TIMER
> + omap2_gp_clockevent_set_gptimer(1);
> +#endif
> + gic_init_irq();
> + omap_gpio_init();
> +}
> +
> +static struct omap_musb_board_data musb_board_data = {
> + .interface_type = MUSB_INTERFACE_UTMI,
> + .mode = MUSB_PERIPHERAL,
> + .power = 100,
> +};
> +
> +static void __init omap4_panda_init(void)
> +{
> + omap_serial_init();
> + /* OMAP4 SDP uses internal transceiver so register nop transceiver */
SDP?
> + usb_nop_xceiv_register();
> + /* FIXME: allow multi-omap to boot until musb is updated for omap4 */
> + if (!cpu_is_omap44xx())
> + usb_musb_init(&musb_board_data);
> +
> +}
> +
> +static void __init omap4_panda_map_io(void)
> +{
> + omap2_set_globals_443x();
> + omap44xx_map_common_io();
> +}
> +
> +MACHINE_START(OMAP4_PANDA, "OMAP4 Panda board")
> + /* Maintainer: David Anders - Texas Instruments Inc */
> + .phys_io = 0x48000000,
> + .io_pg_offst = ((0xfa000000) >> 18) & 0xfffc,
> + .boot_params = 0x80000100,
> + .map_io = omap4_panda_map_io,
> + .init_irq = omap4_panda_init_irq,
> + .init_machine = omap4_panda_init,
> + .timer = &omap_timer,
> +MACHINE_END
IIUC, Panda was built to be compatible with the SDP/Blaze, right?
If so, is there any reason we can't support both boards from the same
board file?
Just add the above MACHINE_START.._END section to board-4430sdp.c to handle
the both machine IDs, but all the functions could be common.
Kevin
next prev parent reply other threads:[~2010-06-18 14:32 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-17 20:18 [PATCH] Add OMAP4 Panda support Anders, David
2010-05-18 3:36 ` Tony Lindgren
2010-06-18 6:58 ` Felipe Balbi
2010-06-18 8:17 ` Tony Lindgren
[not found] ` <64809C8C-FAB5-4540-A47A-B0967B5C3B7F@mac.com>
2010-06-18 10:01 ` Felipe Balbi
2010-06-18 14:32 ` Kevin Hilman [this message]
2010-06-18 14:57 ` Anders, David
2010-06-18 15:13 ` Kevin Hilman
2010-06-18 15:56 ` Anders, David
2010-06-18 16:06 ` Kevin Hilman
2010-06-18 15:26 ` Gadiyar, Anand
-- strict thread matches above, loose matches on Subject: below --
2010-06-24 19:33 [PATCH] Add OMAP4 Panda Support David Anders
2010-06-25 1:29 ` Gadiyar, Anand
2010-06-28 17:47 ` Anders, David
2010-07-05 11:51 ` Tony Lindgren
2010-07-06 16:05 ` Anders, David
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=87y6ecbedt.fsf@deeprootsystems.com \
--to=khilman@deeprootsystems.com \
--cc=linux-omap@vger.kernel.org \
--cc=tony@atomide.com \
--cc=x0132446@ti.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.