From mboxrd@z Thu Jan 1 00:00:00 1970 From: Igor Grinberg Date: Tue, 26 Jul 2011 09:49:00 +0300 Subject: [U-Boot] [PATCH v3 1/2] ARMV7: Add support for Samsung ORIGEN board In-Reply-To: <1310984362-22727-2-git-send-email-chander.kashyap@linaro.org> References: <1310984362-22727-1-git-send-email-chander.kashyap@linaro.org> <1310984362-22727-2-git-send-email-chander.kashyap@linaro.org> Message-ID: <4E2E635C.8010900@compulab.co.il> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On 07/18/11 13:19, Chander Kashyap wrote: > Origen board is based upon S5PV310 SoC which is similiar to > S5PC210 SoC. > > Signed-off-by: Chander Kashyap > --- > Changes for v2: > - None > Changes for v3: > - Board entry added Alphabetically in boards.cfg > - Used get_Ram_size function to calculate ram size [...] > diff --git a/board/samsung/origen/origen.c b/board/samsung/origen/origen.c > new file mode 100644 > index 0000000..6dd1709 > --- /dev/null > +++ b/board/samsung/origen/origen.c [...] > + > +int board_init(void) > +{ > + gpio1 = (struct s5pc210_gpio_part1 *) S5PC210_GPIO_PART1_BASE; > + gpio2 = (struct s5pc210_gpio_part2 *) S5PC210_GPIO_PART2_BASE; > + > + gd->bd->bi_arch_number = MACH_TYPE_ORIGEN; This should be done in the board config file. Please, see the CONFIG_MACH_TYPE in the U-Boot documentation (README file). [...] > diff --git a/include/configs/origen.h b/include/configs/origen.h > new file mode 100644 > index 0000000..441b311 > --- /dev/null > +++ b/include/configs/origen.h [...] > +/* MACH_TYPE_ORIGEN macro will be removed once added to mach-types */ > +#define MACH_TYPE_ORIGEN 3455 #define CONFIG_MACH_TYPE MACH_TYPE_ORIGEN -- Regards, Igor.