[U-Boot-Users] [PATCH 4/5] mpc83xx: MPC8360E-RDK: add support for NAND

Kim Phillips
2008-01-16T18:31:02Z

On Wed, 9 Jan 2008 20:57:58 +0300
Anton Vorontsov <avorontsov@ru.mvista.com> wrote:

>
> Signed-off-by: Anton Vorontsov <avorontsov@ru.mvista.com>
> ---
> board/freescale/mpc8360erdk/Makefile | 2 +-
> board/freescale/mpc8360erdk/nand.c | 73 ++++++++++++++++++++++++++++++++++
> include/configs/MPC8360ERDK.h | 24 +++++++++++
> 3 files changed, 98 insertions(+), 1 deletions(-)
> create mode 100644 board/freescale/mpc8360erdk/nand.c
>
Hello Anton, since WD pulled the upm nand driver, I assumed this would
apply, but it fails to build:

nand.c:55: error: variable 'ud' has initializer but incomplete type
nand.c:56: error: unknown field 'width' specified in initializer
nand.c:56: warning: excess elements in struct initializer
nand.c:56: warning: (near initialization for 'ud')
nand.c:57: error: unknown field 'base' specified in initializer
nand.c:57: warning: excess elements in struct initializer
nand.c:57: warning: (near initialization for 'ud')
nand.c:58: error: unknown field 'upm_table' specified in initializer
nand.c:58: warning: excess elements in struct initializer
nand.c:58: warning: (near initialization for 'ud')
nand.c:59: error: unknown field 'upm_cmd_offset' specified in initializer
nand.c:59: warning: excess elements in struct initializer
nand.c:59: warning: (near initialization for 'ud')
nand.c:60: error: unknown field 'upm_addr_offset' specified in initializer
nand.c:60: warning: excess elements in struct initializer
nand.c:60: warning: (near initialization for 'ud')
nand.c:61: error: unknown field 'dev_ready' specified in initializer
nand.c:61: warning: excess elements in struct initializer
nand.c:61: warning: (near initialization for 'ud')
nand.c:62: error: unknown field 'wait_pattern' specified in initializer
nand.c:62: warning: excess elements in struct initializer
nand.c:62: warning: (near initialization for 'ud')
nand.c:63: error: unknown field 'chip_delay' specified in initializer
nand.c:63: warning: excess elements in struct initializer
nand.c:63: warning: (near initialization for 'ud')
nand.c: In function 'board_nand_init':
nand.c:68: error: invalid use of undefined type 'struct upm_data'
nand.c:69: error: invalid use of undefined type 'struct upm_data'
nand.c:70: error: invalid use of undefined type 'struct upm_data'
nand.c:71: warning: passing argument 2 of 'fsl_upm_nand_init' from incompatible pointer type

can you rebase and resend?

Kim