From: Michal Simek <monstr@monstr.eu>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH 4/4 v3] xilinx: Add new Zynq board
Date: Fri, 14 Sep 2012 07:42:59 +0200 [thread overview]
Message-ID: <5052C3E3.2030503@monstr.eu> (raw)
In-Reply-To: <CANr=Z=aMivpXch+ze-niFT2K1g_nAPwfAJm=M0GyNc=1HGfPGw@mail.gmail.com>
On 09/14/2012 06:03 AM, Joe Hershberger wrote:
> Hi Michal,
>
> On Thu, Aug 16, 2012 at 1:30 AM, Michal Simek <monstr@monstr.eu> wrote:
>> Add support for Xilinx Zynq board.
>>
>> Signed-off-by: Michal Simek <monstr@monstr.eu>
>>
>> ---
>> v2: Forget to also add config file
>>
>> v3: Change name for serial driver
>> Remove lowlevel_init from board folder
>> Remove XPSS part from timer baseaddr
>> Change name for Zynq gem driver
>> Clean coding style
>> Remove mac + ip addresses from config file
>> Remove additional PHYs
>> ---
>> board/xilinx/zynq/Makefile | 54 +++++++++++++++++++++
>> board/xilinx/zynq/board.c | 64 +++++++++++++++++++++++++
>> boards.cfg | 1 +
>> include/configs/zynq.h | 110 ++++++++++++++++++++++++++++++++++++++++++++
>> 4 files changed, 229 insertions(+), 0 deletions(-)
>> create mode 100644 board/xilinx/zynq/Makefile
>> create mode 100644 board/xilinx/zynq/board.c
>> create mode 100644 include/configs/zynq.h
>>
>> diff --git a/board/xilinx/zynq/board.c b/board/xilinx/zynq/board.c
>> new file mode 100644
>> index 0000000..4cb36f6
>> --- /dev/null
>> +++ b/board/xilinx/zynq/board.c
>> @@ -0,0 +1,64 @@
>> +/*
>> + * (C) Copyright 2012 Michal Simek <monstr@monstr.eu>
>> + *
>> + * 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., 59 Temple Place, Suite 330, Boston,
>> + * MA 02111-1307 USA
>> + */
>> +
>> +#include <common.h>
>> +#include <netdev.h>
>> +
>> +DECLARE_GLOBAL_DATA_PTR;
>> +
>> +int board_init(void)
>> +{
>> + icache_enable();
>> +
>> + return 0;
>> +}
>> +
>> +int board_late_init(void)
>> +{
>> + return 0;
>> +}
>> +
>> +#ifdef CONFIG_CMD_NET
>> +int board_eth_init(bd_t *bis)
>> +{
>> + int ret = 0;
>> +
>> +#if defined(CONFIG_ZYNQ_GEM) && defined(CONFIG_ZYNQ_GEM_BASEADDR0)
>> + ret |= zynq_gem_initialize(bis, CONFIG_ZYNQ_GEM_BASEADDR0);
>> +#endif
>> +
>> + return ret;
>> +}
>> +#endif
>> +
>> +int dram_init(void)
>> +{
>> + gd->ram_size = CONFIG_SYS_SDRAM_SIZE;
>> +
>> + return 0;
>> +}
>> +
>> +void reset_cpu(ulong addr)
>> +{
>> + while (1)
>> + ;
>> +}
>
> Why not explicitly reset, like Xilinx tree?
>
> void reset_cpu(ulong addr)
> {
> /* unlock SLCR */
> writel(XPSS_SLCR_UNLOCK_KEY, XPSS_SYS_CTRL_BASEADDR | XPSS_SLCR_UNLOCK);
> /* Tickle soft reset bit */
> writel(1, XPSS_SYS_CTRL_BASEADDR | XPSS_SLCR_PSS_RST_CTRL);
>
> while (1)
> ;
> }
>
I haven't started to merge all these features and want to merge minimum platform
and then start to clean drivers and features.
Maybe for slcr make sense to create driver and not just unlock it and use
it for code.
Thanks,
Michal
--
Michal Simek, Ing. (M.Eng)
w: www.monstr.eu p: +42-0-721842854
Maintainer of Linux kernel 2.6 Microblaze Linux - http://www.monstr.eu/fdt/
Microblaze U-BOOT custodian
next prev parent reply other threads:[~2012-09-14 5:42 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-16 6:30 [U-Boot] [PATCH 1/4 v2] serial: Add Zynq serial driver Michal Simek
2012-08-16 6:30 ` [U-Boot] [PATCH 2/4 v2] net: Add driver for Zynq Gem IP Michal Simek
2012-09-12 10:19 ` Michal Simek
2012-09-13 9:28 ` Marek Vasut
2012-09-13 10:16 ` Michal Simek
2012-09-13 12:30 ` Marek Vasut
2012-09-14 3:49 ` Joe Hershberger
2012-09-14 4:45 ` Marek Vasut
[not found] ` <CANr=Z=aejhXoGabpcderroSeQSWJM+cbXS7yg6NVeHKJLqQhRQ@mail.gmail.com>
2012-09-14 7:34 ` Marek Vasut
2012-08-16 6:30 ` [U-Boot] [PATCH 3/4 v2] arm: Support new Xilinx Zynq platform Michal Simek
2012-09-12 10:23 ` Michal Simek
2012-09-13 9:32 ` Marek Vasut
2012-09-13 9:36 ` Michal Simek
2012-09-13 9:31 ` Marek Vasut
2012-09-13 9:52 ` Michal Simek
2012-09-13 10:31 ` Marek Vasut
2012-09-13 11:24 ` Michal Simek
2012-09-13 12:32 ` Marek Vasut
2012-09-13 12:52 ` Michal Simek
2012-09-13 13:01 ` Marek Vasut
2012-08-16 6:30 ` [U-Boot] [PATCH 4/4 v3] xilinx: Add new Zynq board Michal Simek
2012-09-12 10:23 ` Michal Simek
2012-09-13 9:35 ` Marek Vasut
2012-09-13 9:55 ` Michal Simek
2012-09-13 12:31 ` Marek Vasut
2012-09-13 12:17 ` Michal Simek
2012-09-14 4:03 ` Joe Hershberger
2012-09-14 5:42 ` Michal Simek [this message]
2012-09-12 10:20 ` [U-Boot] [PATCH 1/4 v2] serial: Add Zynq serial driver Michal Simek
2012-09-13 9:21 ` Marek Vasut
2012-09-13 9:45 ` Michal Simek
2012-09-13 12:33 ` Marek Vasut
2012-09-13 13:54 ` Michal Simek
2012-09-13 14:01 ` Marek Vasut
2012-09-14 4:09 ` Joe Hershberger
2012-09-14 4:47 ` Marek Vasut
2012-09-14 5:23 ` Joe Hershberger
2012-09-14 7:39 ` Marek Vasut
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=5052C3E3.2030503@monstr.eu \
--to=monstr@monstr.eu \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox