From: Albert ARIBAUD <albert.aribaud@free.fr>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 6/8] Add board support for TS-7800
Date: Sat, 29 Jan 2011 08:39:50 +0100 [thread overview]
Message-ID: <4D43C446.8060702@free.fr> (raw)
In-Reply-To: <1296262841-8819-6-git-send-email-mspang@csclub.uwaterloo.ca>
Le 29/01/2011 02:00, Michael Spang a ?crit :
> The TS-7800 is an Orion5x implementation by Technologic Systems.
>
> Signed-off-by: Michael Spang<mspang@csclub.uwaterloo.ca>
> ---
> MAKEALL | 1 +
> board/technologic/ts7800/Makefile | 46 +++++++++++
> board/technologic/ts7800/ts7800.c | 36 +++++++++
> boards.cfg | 1 +
> include/configs/ts7800.h | 149 +++++++++++++++++++++++++++++++++++++
> 5 files changed, 233 insertions(+), 0 deletions(-)
> create mode 100644 board/technologic/ts7800/Makefile
> create mode 100644 board/technologic/ts7800/ts7800.c
> create mode 100644 include/configs/ts7800.h
>
> diff --git a/MAKEALL b/MAKEALL
> index a732e6a..5cd4155 100755
> --- a/MAKEALL
> +++ b/MAKEALL
> @@ -344,6 +344,7 @@ LIST_ARM9=" \
> edb9315 \
> edb9315a \
> edminiv2 \
> + ts7800 \
> guruplug \
> imx27lite \
> jadecpu \
> diff --git a/board/technologic/ts7800/Makefile b/board/technologic/ts7800/Makefile
> new file mode 100644
> index 0000000..d62d0f2
> --- /dev/null
> +++ b/board/technologic/ts7800/Makefile
> @@ -0,0 +1,46 @@
> +#
> +# Copyright (C) 2010 Michael Spang<mspang@csclub.uwaterloo.ca>
Fix copyright year (holds for the whole patchset)
> +# 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., 51 Franklin Street, Fifth Floor, Boston,
> +# MA 02110-1301 USA
> +#
> +
> +LIB = $(obj)lib$(BOARD).o
> +
> +COBJS := ts7800.o
> +
> +SRCS := $(COBJS:.o=.c)
> +OBJS := $(addprefix $(obj),$(COBJS))
> +
> +$(LIB): $(obj).depend $(OBJS)
> + $(AR) $(ARFLAGS) $@ $(OBJS)
> +
> +clean:
> + rm -f $(OBJS)
> +
> +distclean: clean
> + rm -f $(LIB) core *.bak .depend
> +
> +#########################################################################
> +
> +# defines $(obj).depend target
> +include $(SRCTREE)/rules.mk
> +
> +sinclude $(obj).depend
> +
> +#########################################################################
> diff --git a/board/technologic/ts7800/ts7800.c b/board/technologic/ts7800/ts7800.c
> new file mode 100644
> index 0000000..8d4ba73
> --- /dev/null
> +++ b/board/technologic/ts7800/ts7800.c
> @@ -0,0 +1,36 @@
> +/*
> + * Copyright (C) 2010 Michael Spang<mspang@csclub.uwaterloo.ca>
> + *
> + * 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., 51 Franklin Street, Fifth Floor, Boston,
> + * MA 02110-1301 USA
> + */
> +
> +#include<common.h>
> +
> +DECLARE_GLOBAL_DATA_PTR;
> +
> +int board_init(void)
> +{
> + // Technologic's MBR uses machine type 526, however the mainline
> + // machine type is 1652. Technologic's kernel sources will need
> + // patching to boot from U-Boot.
... or the machine type can be changed to 526 in the U-boot boot script
before starting the Technologic modified Linux.
> + gd->bd->bi_arch_number = MACH_TYPE_TS78XX;
> + gd->bd->bi_boot_params = 0x100;
> +
> + return 0;
> +}
> diff --git a/boards.cfg b/boards.cfg
> index 4cca934..22d8eeb 100644
> --- a/boards.cfg
> +++ b/boards.cfg
> @@ -104,6 +104,7 @@ imx27lite arm arm926ejs imx27lite logicpd
> magnesium arm arm926ejs imx27lite logicpd mx27
> omap5912osk arm arm926ejs - ti omap
> edminiv2 arm arm926ejs - LaCie orion5x
> +ts7800 arm arm926ejs - technologic orion5x
> ca9x4_ct_vxp arm armv7 vexpress armltd
> mx51evk arm armv7 mx51evk freescale mx5
> mx53evk arm armv7 mx53evk freescale mx5
> diff --git a/include/configs/ts7800.h b/include/configs/ts7800.h
> new file mode 100644
> index 0000000..dc7e3e2
> --- /dev/null
> +++ b/include/configs/ts7800.h
> @@ -0,0 +1,149 @@
> +/*
> + * Copyright (C) 2010 Michael Spang<mspang@csclub.uwaterloo.ca>
> + *
> + * 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., 51 Franklin Street, Fifth Floor, Boston,
> + * MA 02110-1301 USA
> + */
> +
> +#ifndef _CONFIG_TS7800_H
> +#define _CONFIG_TS7800_H
> +
> +/*
> + * User Interface Configuration
> + */
> +
> +#define CONFIG_IDENT_STRING " TS-7800"
> +#define CONFIG_SYS_PROMPT "TS-7800> "
> +#define CONFIG_DISPLAY_CPUINFO
> +#define CONFIG_BOOTDELAY 3
> +
> +/*
> + * Flash Driver
> + */
> +
> +#define CONFIG_SYS_NO_FLASH
> +
> +/*
> + * Commands Configuration
> + */
> +
> +#include<config_cmd_default.h>
> +#define CONFIG_CMD_PING
> +#define CONFIG_CMD_MII
> +
> +/*
> + * Serial Port Configuration
> + */
> +
> +#define CONFIG_CONS_INDEX 1
> +#define CONFIG_BAUDRATE 115200
> +
> +/*
> + * Environment Configuration
> + */
> +
> +#define CONFIG_ENV_IS_NOWHERE 1
> +#define CONFIG_ENV_SIZE 0x2000
> +
> +/*
> + * Limits
> + */
> +
> +#define CONFIG_SYS_CBSIZE 1024 /* Console I/O Buff Size */
> +#define CONFIG_SYS_PBSIZE (CONFIG_SYS_CBSIZE + sizeof(CONFIG_SYS_PROMPT) + 16) /* Print Buffer Size */
> +#define CONFIG_SYS_MAXARGS 16 /* Maximum arguments to U-Boot commands */
> +
> +/*
> + * System Components
> + */
> +
> +#define CONFIG_MARVELL 1
> +#define CONFIG_ARM926EJS 1 /* Basic Architecture */
> +#define CONFIG_FEROCEON 1 /* CPU Core subversion */
> +#define CONFIG_ORION5X 1 /* SOC Family Name */
> +#define CONFIG_88F5182 1 /* SOC Name */
> +#define CONFIG_MACH_TS78XX 1 /* Machine type */
> +#define CONFIG_SYS_HZ 1000
> +
> +/*
> + * Board Initialization
> + */
> +
> +#define CONFIG_ARCH_MISC_INIT /* call arch_misc_init() */
> +#define CONFIG_ARCH_CPU_INIT /* call arch_cpu_init() */
> +#define CONFIG_SKIP_SDRAM_INIT /* U-Boot starts in RAM so do not initialize RAM */
> +
> +/* MPP configuration need not be changed from power-on */
> +#define ORION5X_MPP0_7 0x00000000
> +#define ORION5X_MPP8_15 0x00000000
> +#define ORION5X_MPP16_23 0x00000000
> +#define ORION5X_GPIO_OUT_ENABLE 0xffffffff
> +
> +/*
> + * Memory Layout
> + */
> +
> +#define CONFIG_SYS_TEXT_BASE 0x00008000 /* Boards loads U-Boot at 32 kB */
> +#define CONFIG_SYS_INIT_SP_ADDR 0x00100000 /* Initial stack at 1 MB */
> +#define CONFIG_SYS_MALLOC_LEN 0x00020000 /* Reserve 128 kB for malloc() */
> +
> +#define CONFIG_SYS_SDRAM_BASE 0x00000000 /* RAM starts at address 0 */
> +#define CONFIG_NR_DRAM_BANKS 1 /* Board has one 128 MB RAM bank */
> +
> +#define CONFIG_SYS_LOAD_ADDR 0x00800000 /* Executables load by default at 8 MB */
> +#define CONFIG_SYS_MEMTEST_START 0x00001000 /* Memtest starts after vectors */
> +#define CONFIG_SYS_MEMTEST_END 0x07e00000 /* Memtest ends before U-Boot */
> +
> +/*
> + * UART Driver
> + */
> +
> +#define CONFIG_SYS_NS16550
> +#define CONFIG_SYS_NS16550_SERIAL
> +#define CONFIG_SYS_NS16550_REG_SIZE (-4)
> +#define CONFIG_SYS_NS16550_CLK CONFIG_SYS_TCLK
> +#define CONFIG_SYS_NS16550_COM1 ORION5X_UART0_BASE
> +#define CONFIG_SYS_NS16550_COM2 ORION5X_UART1_BASE
> +#define CONFIG_SYS_BAUDRATE_TABLE \
> + { 9600, 19200, 38400, 57600, 115200, 230400, 460800, 921600 }
> +
> +/*
> + * Network Driver
> + */
> +
> +#ifdef CONFIG_CMD_NET
> +#define CONFIG_MVGBE
> +#define CONFIG_MVGBE_PORTS {1}
> +#define CONFIG_PRESERVE_LOCAL_MAC
> +#define CONFIG_PHY_BASE_ADR 0
> +#define CONFIG_NETCONSOLE
> +#define CONFIG_NET_MULTI
> +#define CONFIG_MII
> +#define CONFIG_SYS_FAULT_ECHO_LINK_DOWN
> +#define CONFIG_ENV_OVERWRITE
> +#endif
> +
> +/*
> + * Linux
> + */
> +
> +#define CONFIG_CMDLINE_TAG 1 /* enable passing of ATAGs */
> +#define CONFIG_INITRD_TAG 1 /* enable INITRD tag */
> +#define CONFIG_SETUP_MEMORY_TAGS 1 /* enable memory tag */
> +
> +#endif /* _CONFIG_TS7800_H */
Amicalement,
--
Albert.
next prev parent reply other threads:[~2011-01-29 7:39 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-29 1:00 [U-Boot] [PATCH 1/8] arm926ej-s: Invalidate instruction cache in flush_cache Michael Spang
2011-01-29 1:00 ` [U-Boot] [PATCH 2/8] orion5x: Fix wrong address in orion5x_sdram_bar Michael Spang
2011-01-29 7:24 ` Albert ARIBAUD
2011-03-17 19:47 ` Michael Spang
2011-03-18 5:57 ` Rogan Dawes
2011-03-18 6:46 ` Michael Spang
2011-01-29 1:00 ` [U-Boot] [PATCH 3/8] orion5x: Increase maximum bank size to 128M Michael Spang
2011-01-29 7:26 ` Albert ARIBAUD
2011-01-29 1:00 ` [U-Boot] [PATCH 4/8] orion5x: Allow SDRAM initialization to be omitted Michael Spang
2011-01-29 7:36 ` Albert ARIBAUD
2011-03-17 19:52 ` Michael Spang
2011-01-29 1:00 ` [U-Boot] [PATCH 5/8] mvgbe: Support preserving the existing MAC address Michael Spang
2011-01-29 1:00 ` [U-Boot] [PATCH 6/8] Add board support for TS-7800 Michael Spang
2011-01-29 7:39 ` Albert ARIBAUD [this message]
2011-03-17 19:50 ` Michael Spang
2011-01-30 19:14 ` Wolfgang Denk
2011-01-29 1:00 ` [U-Boot] [PATCH 7/8] Add NAND " Michael Spang
2011-01-30 19:15 ` Wolfgang Denk
2011-01-29 1:00 ` [U-Boot] [PATCH 8/8] Add README " Michael Spang
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=4D43C446.8060702@free.fr \
--to=albert.aribaud@free.fr \
--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.