From: Heiko Schocher <hs@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] imx: Add titanium board support (i.MX6 based)
Date: Wed, 10 Apr 2013 09:52:01 +0200 [thread overview]
Message-ID: <51651A21.6070105@denx.de> (raw)
In-Reply-To: <1365578252-13264-1-git-send-email-sr@denx.de>
Hello Stefan,
on 10.04.2013 09:17, Stefan Roese wrote:
> Titanium is a i.MX6 based board from ProjectionDesign / Barco. This
> patch adds support for this board with the newly introduced NAND
> support for i.MX6.
>
> Signed-off-by: Stefan Roese <sr@denx.de>
> ---
> MAINTAINERS | 2 +
> board/freescale/titanium/Makefile | 36 ++++
> board/freescale/titanium/imximage.cfg | 181 +++++++++++++++++
> board/freescale/titanium/titanium.c | 372 ++++++++++++++++++++++++++++++++++
> boards.cfg | 1 +
> include/configs/titanium.h | 274 +++++++++++++++++++++++++
> 6 files changed, 866 insertions(+)
> create mode 100644 board/freescale/titanium/Makefile
> create mode 100644 board/freescale/titanium/imximage.cfg
> create mode 100644 board/freescale/titanium/titanium.c
> create mode 100644 include/configs/titanium.h
[...]
> diff --git a/board/freescale/titanium/imximage.cfg b/board/freescale/titanium/imximage.cfg
> new file mode 100644
> index 0000000..9172d0e
> --- /dev/null
> +++ b/board/freescale/titanium/imximage.cfg
> @@ -0,0 +1,181 @@
> +/*
> + * Projectiondesign AS
> + * Derived from ./board/freescale/mx6qsabrelite/imximage.cfg
> + *
> + * Copyright (C) 2011 Freescale Semiconductor, Inc.
> + * Jason Liu <r64343@freescale.com>
> + *
> + * 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.
> + *
> + * Refer docs/README.imxmage for more details about how-to configure
> + * and create imximage boot image
> + *
> + * The syntax is taken as close as possible with the kwbimage
> + */
> +
> +/* image version */
> +
> +IMAGE_VERSION 2
> +
> +/*
> + * Boot Device : one of
> + * spi, sd (the board has no nand neither onenand)
> + */
> +BOOT_FROM nand
just Nitpicking: Comment says one of spi, sd you
select nand ... and comment says the board has no nand ... ;-)
[...]
> +/*
> + * Siste adresse i RAM. Starter p? 0x10000000 og med 512MB blir dette
> + * siste 0x30000000 som er 768MB - sabrelite: 0x00000027
> + */
Again Nitpick... comments in english please ...
[...]
> diff --git a/board/freescale/titanium/titanium.c b/board/freescale/titanium/titanium.c
> new file mode 100644
> index 0000000..3cf68cf
> --- /dev/null
> +++ b/board/freescale/titanium/titanium.c
> @@ -0,0 +1,372 @@
[...]
> +static void setup_gpmi_nand(void)
> +{
> + struct mxc_ccm_reg *mxc_ccm = (struct mxc_ccm_reg *)CCM_BASE_ADDR;
> + unsigned int reg;
> +
> + /* config gpmi nand iomux */
> + imx_iomux_v3_setup_multiple_pads(nfc_pads,
> + ARRAY_SIZE(nfc_pads));
> +
> + /* config gpmi and bch clock to 11Mhz*/
> + reg = readl(&mxc_ccm->cs2cdr);
> + reg &= 0xF800FFFF;
> + reg |= 0x01E40000;
Hmm.. could you use some defines for this magic values?
> + writel(reg, &mxc_ccm->cs2cdr);
> +
> + /* enable gpmi and bch clock gating */
> + reg = readl(&mxc_ccm->CCGR4);
> + reg |= 0xFF003000;
and here ...
> + writel(reg, &mxc_ccm->CCGR4);
> +
> + /* enable apbh clock gating */
> + reg = readl(&mxc_ccm->CCGR0);
> + reg |= 0x0030;
and here ... Thanks!
> + writel(reg, &mxc_ccm->CCGR0);
> +}
> +
[...]
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2013-04-10 7:52 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-10 7:17 [U-Boot] [PATCH] imx: Add titanium board support (i.MX6 based) Stefan Roese
2013-04-10 7:52 ` Heiko Schocher [this message]
2013-04-10 12:05 ` Wolfgang Denk
2013-04-10 12:13 ` Wolfgang Denk
2013-04-11 8:00 ` Stefan Roese
2013-04-11 3:36 ` Fabio Estevam
2013-04-11 5:41 ` Wolfgang Denk
2013-04-11 9:04 ` [U-Boot] [PATCH v2] " Stefan Roese
2013-04-16 7:19 ` [U-Boot] [PATCH v3] " Stefan Roese
2013-04-16 7:50 ` Stefano Babic
2013-04-16 12:05 ` Stefan Roese
2013-04-16 12:55 ` [U-Boot] [PATCH v4] " Stefan Roese
2013-04-17 8:22 ` Stefano Babic
2013-04-17 8:27 ` [U-Boot] [PATCH 4 (resend)] " Stefan Roese
2013-04-17 10:15 ` Wolfgang Denk
2013-04-17 10:27 ` Stefan Roese
2013-04-17 10:32 ` [U-Boot] [PATCH v5] " Stefan Roese
2013-04-11 15:48 ` [U-Boot] [PATCH] " Fabio Estevam
2013-04-11 16:39 ` Stefan Roese
2013-04-11 16:54 ` Fabio Estevam
2013-04-22 8:07 ` Stefano Babic
2013-04-22 8:12 ` Stefan Roese
2013-04-22 8:33 ` Stefano Babic
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=51651A21.6070105@denx.de \
--to=hs@denx.de \
--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