NanoPayload

Change of stage1/board.c

194:aac340efb570
stage1/board.c
     1.1 --- a/stage1/board.c	Tue May 10 13:58:05 2016 +0200
     1.2 +++ b/stage1/board.c	Sat May 14 21:36:55 2016 +0200
     1.3 @@ -5,7 +5,7 @@
     1.4   * Copyright (C) 2005-2006 Ingenic Semiconductor, <jlwei@ingenic.cn>
     1.5   * Copyright (C) 2006 Stefan Roese, DENX Software Engineering, sr@denx.de.
     1.6   * Copyright (C) Xiangfu Liu <xiangfu.z@gmail.com>
     1.7 - * Copyright (C) 2015 Paul Boddie <paul@boddie.org.uk>
     1.8 + * Copyright (C) 2015, 2016 Paul Boddie <paul@boddie.org.uk>
     1.9   *
    1.10   * This program is free software: you can redistribute it and/or modify
    1.11   * it under the terms of the GNU General Public License as published by
    1.12 @@ -28,6 +28,7 @@
    1.13  #include "jz4740.h"
    1.14  #endif
    1.15  
    1.16 +#include "memory.h"
    1.17  #include "sdram.h"
    1.18  #include "usb_boot_defines.h"
    1.19  
    1.20 @@ -47,7 +48,7 @@
    1.21  {
    1.22  	/* Get the fw args from memory. See head1.S for the memory layout. */
    1.23  
    1.24 -        fw_args = (struct fw_args *)0x80002008;
    1.25 +        fw_args = (struct fw_args *) STAGE1_ARGS;
    1.26          FW_CPU_ID = fw_args->cpu_id ;
    1.27  
    1.28  	/* Where the arguments have not been initialised, use the defaults. */