[U-Boot] [PATCH 4/4] arm/kirkwood: Add Keymile SUEN3 support
Wolfgang Denk
wd at denx.de
Wed Jul 8 20:53:58 CEST 2009
Dear Stefan Roese,
In message <1247068015-16224-1-git-send-email-sr at denx.de> you wrote:
> This patch adds support for the Keymile SUEN3 board which is based
> on the Marvell Kirkwood (88F6281) SoC.
...
> diff --git a/MAKEALL b/MAKEALL
> index 41f1445..6c80694 100755
> --- a/MAKEALL
> +++ b/MAKEALL
> @@ -524,6 +524,7 @@ LIST_ARM9=" \
> scb9328 \
> smdk2400 \
> smdk2410 \
> + suen3 \
> trab \
> VCMA9 \
> versatile \
This is the ARM9 list. Are you sure the board belongs there?
> diff --git a/Makefile b/Makefile
> index 2a06440..3afc4ba 100644
> --- a/Makefile
> +++ b/Makefile
> @@ -2925,6 +2925,9 @@ smdk2400_config : unconfig
> smdk2410_config : unconfig
> @$(MKCONFIG) $(@:_config=) arm arm920t smdk2410 samsung s3c24x0
>
> +suen3_config: unconfig
> + @$(MKCONFIG) $(@:_config=) arm arm926ejs $(@:_config=) keymile kirkwood
> +
This is the ARM9xxx section. Are you sure the board belongs there?
...
> diff --git a/board/keymile/suen3/suen3.c b/board/keymile/suen3/suen3.c
> new file mode 100644
> index 0000000..231745f
> --- /dev/null
> +++ b/board/keymile/suen3/suen3.c
> @@ -0,0 +1,127 @@
...
> +int dram_init(void)
> +{
> + int i;
> +
> + for (i = 0; i < CONFIG_NR_DRAM_BANKS; i++) {
> + gd->bd->bi_dram[i].start = kw_sdram_bar(i);
> + gd->bd->bi_dram[i].size = kw_sdram_bs(i);
> + }
> + return 0;
> +}
Maybe we can have get_ram_size() support with auto-sizing and testing
here?
> diff --git a/include/configs/suen3.h b/include/configs/suen3.h
> new file mode 100644
> index 0000000..1b971e0
> --- /dev/null
> +++ b/include/configs/suen3.h
...
> +#define CONFIG_EXTRA_ENV_SETTINGS \
> + "load=tftp 400000 suen3/u-boot.bin\0" \
> + "update=nand erase 0 60000;nand write 400000 0 60000\0" \
> + "upd=run load update\0" \
> + "mtdparts=orion_nand:512k(uboot),512k at 512k(env)," \
> + "2m at 1m(kernel),13m at 3m(rootfs)\0" \
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
...
> +#define MTDPARTS_DEFAULT "mtdparts=orion_nand:512k(u-boot)," \
> + "256k(env)," \
> + "2m(kernel)," \
> + "16m(rootfs)," \
> + "32m(fs)," \
> + "-(ubifs)"
This seems inconsistent to me. How about defining MTDPARTS_DEFAULT
first, and then just inserting the already defined value, so you can
be sure that this doesn;t happen again?
Best regards,
Wolfgang Denk
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
On the subject of C program indentation: "In My Egotistical Opinion,
most people's C programs should be indented six feet downward and
covered with dirt." - Blair P. Houghton
More information about the U-Boot
mailing list