From e44e3482bdb4d0ebde2d8b41830ac2cdb07948fb Mon Sep 17 00:00:00 2001 From: Yang Zhang Date: Fri, 28 Aug 2015 09:58:54 +0800 Subject: Add qemu 2.4.0 Change-Id: Ic99cbad4b61f8b127b7dc74d04576c0bcbaaf4f5 Signed-off-by: Yang Zhang --- qemu/roms/u-boot/board/avnet/fx12mm/Makefile | 11 +++++++ qemu/roms/u-boot/board/avnet/fx12mm/fx12mm.c | 34 +++++++++++++++++++++ qemu/roms/u-boot/board/avnet/fx12mm/xparameters.h | 35 ++++++++++++++++++++++ qemu/roms/u-boot/board/avnet/v5fx30teval/Makefile | 11 +++++++ .../u-boot/board/avnet/v5fx30teval/v5fx30teval.c | 17 +++++++++++ .../u-boot/board/avnet/v5fx30teval/xparameters.h | 22 ++++++++++++++ 6 files changed, 130 insertions(+) create mode 100644 qemu/roms/u-boot/board/avnet/fx12mm/Makefile create mode 100644 qemu/roms/u-boot/board/avnet/fx12mm/fx12mm.c create mode 100644 qemu/roms/u-boot/board/avnet/fx12mm/xparameters.h create mode 100644 qemu/roms/u-boot/board/avnet/v5fx30teval/Makefile create mode 100644 qemu/roms/u-boot/board/avnet/v5fx30teval/v5fx30teval.c create mode 100644 qemu/roms/u-boot/board/avnet/v5fx30teval/xparameters.h (limited to 'qemu/roms/u-boot/board/avnet') diff --git a/qemu/roms/u-boot/board/avnet/fx12mm/Makefile b/qemu/roms/u-boot/board/avnet/fx12mm/Makefile new file mode 100644 index 000000000..618b42f89 --- /dev/null +++ b/qemu/roms/u-boot/board/avnet/fx12mm/Makefile @@ -0,0 +1,11 @@ +# +# (C) Copyright 2008 +# Ricardo Ribalda,Universidad Autonoma de Madrid, ricardo.ribalda@uam.es +# This work has been supported by: Qtechnology http://qtec.com/ +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += fx12mm.o + +include $(srctree)/board/xilinx/ppc405-generic/Makefile diff --git a/qemu/roms/u-boot/board/avnet/fx12mm/fx12mm.c b/qemu/roms/u-boot/board/avnet/fx12mm/fx12mm.c new file mode 100644 index 000000000..92e1cfb75 --- /dev/null +++ b/qemu/roms/u-boot/board/avnet/fx12mm/fx12mm.c @@ -0,0 +1,34 @@ +/* + * (C) Copyright 2008 + * + * Author: Xilinx Inc. + * + * Modified by: + * Georg Schardt + * + * SPDX-License-Identifier: GPL-2.0+ + */ + +#include +#include +#include + +int checkboard(void) +{ + char buf[64]; + int i; + int l = getenv_f("serial#", buf, sizeof(buf)); + + if (l < 0) { + printf("Avnet Virtex4 FX12 with no serial #"); + } else { + printf("Avnet Virtex4 FX12 Minimodul # "); + for (i = 0; i < l; ++i) { + if (buf[i] == ' ') + break; + putc(buf[i]); + } + } + putc('\n'); + return 0; +} diff --git a/qemu/roms/u-boot/board/avnet/fx12mm/xparameters.h b/qemu/roms/u-boot/board/avnet/fx12mm/xparameters.h new file mode 100644 index 000000000..94f682f8e --- /dev/null +++ b/qemu/roms/u-boot/board/avnet/fx12mm/xparameters.h @@ -0,0 +1,35 @@ +/* + * (C) Copyright 2008 + * + * Georg Schardt + * + * SPDX-License-Identifier: GPL-2.0+ + * + * CAUTION: This file is based on the xparameters.h automatically + * generated by libgen. Version: Xilinx EDK 10.1.02 Build EDK_K_SP2.5 + */ + +#ifndef __XPARAMETER_H__ +#define __XPARAMETER_H__ + +/* RS232 */ +#define XPAR_UARTNS550_0_CLOCK_FREQ_HZ 100000000 +#define XPAR_UARTNS550_0_BASEADDR 0x83E00000 + + +/* INT_C */ +#define XPAR_XPS_INTC_0_DEVICE_ID 0 +#define XPAR_XPS_INTC_0_BASEADDR 0x81800000 +#define XPAR_INTC_MAX_NUM_INTR_INPUTS 2 + +/* CPU core clock */ +#define XPAR_CORE_CLOCK_FREQ_HZ 300000000 +#define XPAR_PLB_CLOCK_FREQ_HZ 100000000 + +/* RAM */ +#define XPAR_DDR2_SDRAM_MEM_BASEADDR 0x00000000 + +/* FLASH */ +#define XPAR_FLASH_MEM0_BASEADDR 0xFFC00000 + +#endif diff --git a/qemu/roms/u-boot/board/avnet/v5fx30teval/Makefile b/qemu/roms/u-boot/board/avnet/v5fx30teval/Makefile new file mode 100644 index 000000000..8c41af02d --- /dev/null +++ b/qemu/roms/u-boot/board/avnet/v5fx30teval/Makefile @@ -0,0 +1,11 @@ +# +# (C) Copyright 2008 +# Ricardo Ribalda,Universidad Autonoma de Madrid, ricardo.ribalda@uam.es +# This work has been supported by: Qtechnology http://qtec.com/ +# +# SPDX-License-Identifier: GPL-2.0+ +# + +obj-y += v5fx30teval.o + +include $(srctree)/board/xilinx/ppc440-generic/Makefile diff --git a/qemu/roms/u-boot/board/avnet/v5fx30teval/v5fx30teval.c b/qemu/roms/u-boot/board/avnet/v5fx30teval/v5fx30teval.c new file mode 100644 index 000000000..68b0eb959 --- /dev/null +++ b/qemu/roms/u-boot/board/avnet/v5fx30teval/v5fx30teval.c @@ -0,0 +1,17 @@ +/* + * (C) Copyright 2008 + * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es + * This work has been supported by: QTechnology http://qtec.com/ + * SPDX-License-Identifier: GPL-2.0+ +*/ + +#include +#include +#include + + +int checkboard(void) +{ + puts("Avnet Virtex 5 FX30 Evaluation Board\n"); + return 0; +} diff --git a/qemu/roms/u-boot/board/avnet/v5fx30teval/xparameters.h b/qemu/roms/u-boot/board/avnet/v5fx30teval/xparameters.h new file mode 100644 index 000000000..95b8c285a --- /dev/null +++ b/qemu/roms/u-boot/board/avnet/v5fx30teval/xparameters.h @@ -0,0 +1,22 @@ +/* + * (C) Copyright 2008 + * Ricado Ribalda-Universidad Autonoma de Madrid-ricardo.ribalda@uam.es + * This work has been supported by: QTechnology http://qtec.com/ + * based on xparameters.h by Xilinx + * + * SPDX-License-Identifier: GPL-2.0+ +*/ + +#ifndef XPARAMETER_H +#define XPARAMETER_H + +#define XPAR_DDR2_SDRAM_MEM_BASEADDR 0x00000000 +#define XPAR_INTC_0_BASEADDR 0x81800000 +#define XPAR_UARTLITE_0_BASEADDR 0x84000000 +#define XPAR_FLASH_MEM0_BASEADDR 0xFF000000 +#define XPAR_PLB_CLOCK_FREQ_HZ 100000000 +#define XPAR_CORE_CLOCK_FREQ_HZ 400000000 +#define XPAR_INTC_MAX_NUM_INTR_INPUTS 13 +#define XPAR_UARTLITE_0_BAUDRATE 9600 + +#endif -- cgit 1.2.3-korg