Linux for ml310

Grant Likely grant.likely at secretlab.ca
Thu Jan 10 05:07:31 EST 2008


On 1/9/08, Joachim Meyer <Jogi95 at web.de> wrote:
> Hi again
>
> In which xparams* files should i look for the right definition?
> In the xparameters.h from the BSP I can't find it, it looks like this:
> -------------------------------------------------------------------
> /*
>  * include/asm-ppc/xparameters.h
>  *
>  * This file includes the correct xparameters.h for the CONFIG'ed board
>  *
>  * Author: MontaVista Software, Inc.
>  *         source at mvista.com
>  *
>  * 2004 (c) MontaVista Software, Inc.  This file is licensed under the terms
>  * of the GNU General Public License version 2.  This program is licensed
>  * "as is" without any warranty of any kind, whether express or implied.
>  */
>
> #include <linux/config.h>
>
> #if defined(CONFIG_XILINX_ML300)
> #include <platforms/4xx/xparameters/xparameters_ml300.h>

<--- Add fixups here.

> #endif
> #if defined(CONFIG_XILINX_ML40x)
> #include <platforms/4xx/xparameters/xparameters_ml40x.h>
> #endif

The fixups should look like this:

#define XPAR_UARTNS550_0_CLOCK_FREQ_HZ \
                XPAR_<real-name-from-xparams-ml300>_FREQ_HZ
#define XPAR_INTC_0_UARTNS550_0_VEC_ID \
                XPAR_<real-name-from-xparams-ml300>_VEC_ID
#define XPAR_UARTNS550_0_BASEADDR \
                XPAR_<real-name-from-xparams-ml300>_BASEADDR

Note: when you generate the EDK bsp, *make sure* you generated it for
the "linux 2.6" target; not "standalone".  If you don't then
xparams_ml300 will be missing stuff.


More information about the Linuxppc-embedded mailing list