From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Subject: Re: [PATCH 4/4] mcx: initial support for HTKW mcx board Date: Thu, 10 Nov 2011 15:08:15 +0200 Message-ID: <4EBBCCBF.9010705@compulab.co.il> References: <1320797568-11169-1-git-send-email-yanok@emcraft.com> <1320797568-11169-5-git-send-email-yanok@emcraft.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: Received: from 50.23.254.54-static.reverse.softlayer.com ([50.23.254.54]:51565 "EHLO softlayer.compulab.co.il" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934318Ab1KJNI2 (ORCPT ); Thu, 10 Nov 2011 08:08:28 -0500 In-Reply-To: <1320797568-11169-5-git-send-email-yanok@emcraft.com> Sender: linux-omap-owner@vger.kernel.org List-Id: linux-omap@vger.kernel.org To: Ilya Yanok Cc: linux-omap@vger.kernel.org, wd@denx.de, dzu@denx.de, sasha_d@emcraft.com Hi Ilya, On 11/09/11 02:12, Ilya Yanok wrote: > Support for the HTKW mcx board (TI AM3517 based) including serial, > Ethernet, I2C, USB host, HSMMC, DSS and RTC. > > Signed-off-by: Ilya Yanok > --- > arch/arm/boot/dts/mcx.dts | 29 ++ > arch/arm/mach-omap2/Kconfig | 5 + > arch/arm/mach-omap2/Makefile | 3 + > arch/arm/mach-omap2/board-mcx.c | 618 ++++++++++++++++++++++++++ > arch/arm/plat-omap/include/plat/uncompress.h | 1 + > 5 files changed, 656 insertions(+), 0 deletions(-) > create mode 100644 arch/arm/boot/dts/mcx.dts > create mode 100644 arch/arm/mach-omap2/board-mcx.c > > diff --git a/arch/arm/boot/dts/mcx.dts b/arch/arm/boot/dts/mcx.dts > new file mode 100644 > index 0000000..c87df59 > --- /dev/null > +++ b/arch/arm/boot/dts/mcx.dts > @@ -0,0 +1,29 @@ > +/* > + * Copyright (C) 2011 Ilya Yanok, EmCraft Systems > + * > + * 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. > + */ > +/dts-v1/; > + > +/include/ "am35xx.dtsi" > + > +/ { > + model = "HTKW mcx"; > + compatible = "htkw,mcx"; > + > + /* > + * Since the initial device tree board file does not create any > + * devices (MMC, network...), the only way to boot is to provide a > + * ramdisk. > + */ > + chosen { > + bootargs = "root=/dev/ram0 rw console=ttyO2,115200n8 initrd=0x81600000,20M ramdisk_size=20480 no_console_suspend debug earlyprintk"; > + }; > + > + memory { > + device_type = "memory"; > + reg = <0x80000000 0x10000000>; /* 256 MB */ > + }; > +}; > diff --git a/arch/arm/mach-omap2/Kconfig b/arch/arm/mach-omap2/Kconfig > index c3d530b..3be9cc0 100644 > --- a/arch/arm/mach-omap2/Kconfig > +++ b/arch/arm/mach-omap2/Kconfig > @@ -230,6 +230,11 @@ config MACH_OMAP_3430SDP > default y > select OMAP_PACKAGE_CBB > > +config MACH_MCX > + bool "htkw mcx board" I have no problem with that, but is this really how you want the config option to be displayed? > + depends on ARCH_OMAP3 > + select OMAP_PACKAGE_CBB > + > config MACH_NOKIA_N800 > bool > > diff --git a/arch/arm/mach-omap2/Makefile b/arch/arm/mach-omap2/Makefile > index 69ab1c0..913aa43 100644 > --- a/arch/arm/mach-omap2/Makefile > +++ b/arch/arm/mach-omap2/Makefile > @@ -232,6 +232,9 @@ obj-$(CONFIG_MACH_CRANEBOARD) += board-am3517crane.o > > obj-$(CONFIG_MACH_SBC3530) += board-omap3stalker.o > obj-$(CONFIG_MACH_TI8168EVM) += board-ti8168evm.o > +obj-$(CONFIG_MACH_MCX) += board-mcx.o \ > + omap_phy_internal.o \ This one is always compiled in, so you don't need to specify it (see a couple of lines below in the file) > + hsmmc.o This one is compiled in when CONFIG_MMC_OMAP_HS symbol enabled, so you don't need to specify this one either. > > # Platform specific device init code > > diff --git a/arch/arm/mach-omap2/board-mcx.c b/arch/arm/mach-omap2/board-mcx.c > new file mode 100644 > index 0000000..311e1fb > --- /dev/null > +++ b/arch/arm/mach-omap2/board-mcx.c > @@ -0,0 +1,618 @@ > +/* > + * Copyright (C) 2011 Ilya Yanok, Emcraft Systems > + * > + * Modified from mach-omap2/board-omap3beagle.c > + * > + * Initial code: Syed Mohammed Khasim > + * > + * 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 > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include > +#include > +#include > + > +#include > +#include > +#include > +#include