From: Stefano Babic <sbabic@denx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH v2 3/3] MX5:MX53: add initial support for MX53EVK board
Date: Mon, 27 Dec 2010 11:25:01 +0100 [thread overview]
Message-ID: <4D18697D.1050209@denx.de> (raw)
In-Reply-To: <1293024212-4858-3-git-send-email-r64343@freescale.com>
On 12/22/2010 02:23 PM, Jason Liu wrote:
> Add initial support for MX53EVK board support.
> FEC, SD/MMC, UART, I2C, have been support.
>
> Signed-off-by: Jason Liu <r64343@freescale.com>
>
> ---
> Changes for v2:
> -Address the comments from Stefano, Albert and Wolfgang,
> -remove the ivt.S file and use imximage.cfg instead,
> -remove the ivt link to u-boot
> -Address the comments from Stefano,
> -Correct the copyright issue,
> -Use mxc_get_gpio() and mxc_set_gpio() accessors.
> -Get rid of system_rev,
> -use i2c enumeration value (0,1,..N) instead of BASE address,
> -use fsl_pmic i2c interface,
> -Add comments for why manage the pmic in a different way for TO2
> -Remove the comments from configs/mx53evk.h,
> - /*
> - * Disabled for now due to build problems under Debian and a significant
> - * increase in the final file size: 144260 vs. 109536 Bytes.
> - */
> -Address the comments from Wolfgang,
> -Move CONFIG_SYS_TEXT_BASE to board config file,
> -Remove the comments from configs/mx53evk.h
> - /* size in bytes reserved for initial data */
> #define BOARD_LATE_INIT
> -Change the comments, * Hardware drivers to * UART drivers
> ---
> MAINTAINERS | 3 +
> board/freescale/mx53evk/Makefile | 48 +++++
> board/freescale/mx53evk/mx53evk.c | 393 +++++++++++++++++++++++++++++++++++++
> boards.cfg | 1 +
> include/configs/mx53evk.h | 216 ++++++++++++++++++++
> 5 files changed, 661 insertions(+), 0 deletions(-)
>
> diff --git a/MAINTAINERS b/MAINTAINERS
> index 0590ad9..c87ca56 100644
> --- a/MAINTAINERS
> +++ b/MAINTAINERS
> @@ -1085,6 +1085,9 @@ Peter Meerwald <devel@bct-electronic.com>
>
> bct-brettl2 BF536
>
> +Jason Liu <r64343@freescale.com>
> +
> + MX53evk i.MX53
Why do you add your name at the end of the Blackfin list and not inside
the ARM list ? Please maintain the list sorted.
> +void power_init(void)
> +{
> + unsigned int val;
> +
> + /* Set VDDA to 1.25V */
> + val = pmic_reg_read(REG_SW_2);
> + val = (val & (~0x1F)) | 0x1A;
I have already commented this. Please drop all fix constants and use
already provided #define or add new ones if needed.
> + if (is_soc_rev(CHIP_REV_2_0) == 0) {
> + /* Set VCC to 1.3V for TO2 */
> + val = pmic_reg_read(REG_SW_1);
> + val = (val & (~0x1F)) | 0x1C;
Ditto.
> +int board_init(void)
> +{
> + gd->bd->bi_arch_number = MACH_TYPE_MX53_EVK;
> + /* address of boot parameters */
> + gd->bd->bi_boot_params = PHYS_SDRAM_1 + 0x100;
> +
> + setup_iomux_uart();
You sent a patch for mx51evk moving this call in board_early_init_f. Do
we need the same for mx53evk ?
> +#ifdef BOARD_LATE_INIT
> +int board_late_init(void)
> +{
> +#ifdef CONFIG_I2C_MXC
Is there a possibility to have a working board if CONFIG_I2C_MXC and
BOARD_LATE_INIT are not set ? If not, it should be better to check if
they are set on the beginning of this file and reporting a compile error
if they are not set, and removing the #ifdef in this function.
Best regards,
Stefano Babic
--
=====================================================================
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-0 Fax: +49-8142-66989-80 Email: office at denx.de
=====================================================================
next prev parent reply other threads:[~2010-12-27 10:25 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-12-22 13:23 [U-Boot] [PATCH v2 1/3] MX5: Add initial support for MX53 processor Jason Liu
2010-12-22 13:23 ` [U-Boot] [PATCH v2 2/3] mxc_i2c: add " Jason Liu
2010-12-22 18:07 ` Albert ARIBAUD
2010-12-23 2:30 ` Jason Liu
2010-12-22 13:23 ` [U-Boot] [PATCH v2 3/3] MX5:MX53: add initial support for MX53EVK board Jason Liu
2010-12-27 10:25 ` Stefano Babic [this message]
2010-12-28 7:45 ` Jason Liu
2010-12-28 8:13 ` Stefano Babic
2010-12-27 10:06 ` [U-Boot] [PATCH v2 1/3] MX5: Add initial support for MX53 processor Stefano Babic
2010-12-28 8:12 ` Jason Liu
2010-12-28 8:31 ` Stefano Babic
2010-12-28 8:36 ` Jason Liu
2011-01-09 23:03 ` Wolfgang Denk
2011-01-10 1:24 ` Jason Liu
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=4D18697D.1050209@denx.de \
--to=sbabic@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