[U-Boot] [PATCH 4/4] arm: add Cygnus and NSP boards

Wolfgang Denk wd at denx.de
Sun Jul 20 09:54:34 CEST 2014


Dear Steve Rae,

In message <1405733854-20194-5-git-send-email-srae at broadcom.com> you wrote:
> 
> The bcm_ep board configuration is used by a number of boards
> including Cygnus and NSP.
> Add builds for the bcm958300k and the bcm958622hr boards.
...
> +/* uArchitecture specifics */
...
> +#define CONFIG_CONS_INDEX		3
> +#define CONFIG_SYS_NS16550_COM3		0x18023000

Is the console inex really architecture specific and identical for all
boards based on this?  I would expect to find this in the board config
header.

> +/* uArchitecture specifics */
...
> +#define CONFIG_CONS_INDEX		1
> +#define CONFIG_SYS_NS16550_COM1		0x18000300

Ditto here.

...
> +	/* Address of boot parameters passed to kernel
> +	 * Use default offset 0x100
> +	 */

Incorrect multiline comment style.  Please check (and fix, if needed)
globally.

> +/*
> + * misc_init_r - miscellaneous platform dependent initializations
> + */
> +int misc_init_r(void)
> +{
> +	return 0;
> +}

It makes no sense to add an empty function here.  Just do not define
CONFIG_MISC_INIT_R


> +#define CONFIG_SYS_MALLOC_LEN		SZ_4M	/* see armv7/start.S. */
> +#define CONFIG_STACKSIZE		SZ_256K

Please do not use the SZ_ defines.  They are deprecated.

> +/* Init functions */
> +#define CONFIG_MISC_INIT_R	/* board's misc_init_r function */

Unused, so remove.

> +#define CONFIG_ENV_SIZE			0x10000

Do you really, really need 64 kB of environmnt?  I doubt that.


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
The moral of the story is: "Don't stop to  tighten  your  shoe  laces
during the Olympics 100m finals".
                             - Kevin Jones in <DEJo68.K1t at bri.hp.com>


More information about the U-Boot mailing list