[U-Boot] [PATCH 2/2][v2] powerpc/85xx:Add PSC9131 RDB Support

Wolfgang Denk wd at denx.de
Tue Mar 6 16:11:20 CET 2012

Dear Prabhakar Kushwaha,

In message <1329304781-27758-1-git-send-email-prabhakar at freescale.com> you wrote:
> +#define CONFIG_L2_CACHE			/* toggle L2 cache */
> +#define CONFIG_BTB			/* toggle branch predition */

Toggle?  Do you really toggle, or enable?

> +#define CONFIG_ADDR_STREAMING		/* toggle addr streaming */

What is this good for?

It is undocumented, and there is no code that uses it.

> +#define CONFIG_SYS_MEMTEST_START	0x00000000	/* memtest works on */
> +#define CONFIG_SYS_MEMTEST_END		0x1fffffff

Have these been tested?  A memtest starting at 0x0000 is likely to
overwrite the exception vectors - I would expect the system will crash
or hang immediately?

> +#define CONFIG_PANIC_HANG		/* do not reset board on panic */

Why is this needed?

> +#define CONFIG_HOSTNAME		PSC9131rdb
> +#define CONFIG_ROOTPATH		"/opt/nfsroot"
> +#define CONFIG_BOOTFILE		"uImage"
> +#define CONFIG_UBOOTPATH	u-boot.bin /* U-Boot image on TFTP server */
> +
> +#define CONFIG_BAUDRATE		115200
> +
> +	"netdev=eth0\0"						\
> +	"uboot=" MK_STR(CONFIG_UBOOTPATH) "\0"				\

Why didn't you follow my change request here?  Define as "u-boot.bin"
so it is at least consistent with the other strings, and drop the
MK_STR here.

> --- /dev/null
> +++ b/nand_spl/board/freescale/psc9131rdb/Makefile
> --- /dev/null
> +++ b/nand_spl/board/freescale/psc9131rdb/nand_boot.c

Sorry, but this is the old, legacy SPL code.  Please do not use this
any more for new board.

Use the new code (in /spl/ directory) instead.

> +#define udelay(x) \
> +	{int i, j; for (i = 0; i < x; i++) for (j = 0; j < 10000; j++); }

Have you ever tested this?  Or looked at what the compiler generates
for it?

> +unsigned long ddr_freq_mhz;

Do you have BSS before relocation?

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
God runs electromagnetics by wave theory on  Monday,  Wednesday,  and
Friday,  and the Devil runs them by quantum theory on Tuesday, Thurs-
day, and Saturday.                                   -- William Bragg

More information about the U-Boot mailing list