Add support for Xilinx ML403 reference design
PATCH 8/10 Add support for Xilinx ML403 reference design
Signed-off-by Grant C. Likely <[email protected]>
---
arch/ppc/boot/simple/Makefile | 1 arch/ppc/boot/simple/embed_config.c | 43 +++++ arch/ppc/platforms/4xx/Kconfig | 8 + arch/ppc/platforms/4xx/Makefile | 2 arch/ppc/platforms/4xx/xilinx_ml403.c | 177 ++++++++++++++++++++++ arch/ppc/platforms/4xx/xilinx_ml403.h | 49 ++++++ arch/ppc/platforms/4xx/xparameters/xparameters.h | 13 ++ include/asm-ppc/ibm4xx.h | 4 8 files changed, 294 insertions(+), 3 deletions(-) create mode 100644 arch/ppc/platforms/4xx/xilinx_ml403.c create mode 100644 arch/ppc/platforms/4xx/xilinx_ml403.h
d5a8a3616437feca4671d1268ccdbbbabc701081
arch/ppc/boot/simple/Makefile +1 -0
@@ -192,6 +192,7 @@ boot-$(CONFIG_8xx) += embed_config.o boot-$(CONFIG_8260) += embed_config.o boot-$(CONFIG_EP405) += embed_config.o boot-$(CONFIG_XILINX_ML300) += embed_config.o +boot-$(CONFIG_XILINX_ML403) += embed_config.o boot-$(CONFIG_BSEIP) += iic.o boot-$(CONFIG_MBX) += iic.o pci.o qspan_pci.o boot-$(CONFIG_MV64X60) += misc-mv64x60.o
arch/ppc/boot/simple/embed_config.c +42 -1
55 lines not on this page · raw message
arch/ppc/platforms/4xx/Kconfig +6 -2
@@ -57,6 +57,10 @@ config XILINX_ML300 help This option enables support for the Xilinx ML300 evaluation board. +config XILINX_ML403 + bool "Xilinx-ML403" + help + This option enables support for the Xilinx ML403 evaluation board. endchoice choice
@@ -205,7 +209,7 @@ config 405GPR config XILINX_VIRTEX bool - depends on XILINX_ML300 + depends on XILINX_ML300 || XILINX_ML403 default y config STB03xxx
@@ -215,7 +219,7 @@ config STB03xxx config EMBEDDEDBOOT bool - depends on EP405 || XILINX_ML300 + depends on EP405 || XILINX_ML300 || XILINX_ML403 default y config IBM_OPENBIOS
arch/ppc/platforms/4xx/Makefile +2 -0
@@ -14,6 +14,7 @@ obj-$(CONFIG_REDWOOD_6) += redwood6.o obj-$(CONFIG_SYCAMORE) += sycamore.o obj-$(CONFIG_WALNUT) += walnut.o obj-$(CONFIG_XILINX_ML300) += xilinx_ml300.o +obj-$(CONFIG_XILINX_ML403) += xilinx_ml403.o obj-$(CONFIG_405GP) += ibm405gp.o obj-$(CONFIG_REDWOOD_5) += ibmstb4.o
@@ -27,3 +28,4 @@ obj-$(CONFIG_440SPE) += ppc440spe.o obj-$(CONFIG_405EP) += ibm405ep.o obj-$(CONFIG_405GPR) += ibm405gpr.o obj-$(CONFIG_XILINX_VIRTEX) += virtex.o +
arch/ppc/platforms/4xx/xilinx_ml403.c new file +177 -0
177 lines not on this page · raw message
arch/ppc/platforms/4xx/xilinx_ml403.h new file +49 -0
49 lines not on this page · raw message
arch/ppc/platforms/4xx/xparameters/xparameters.h +13 -0
@@ -32,6 +32,19 @@#define VIRTEX_INTC_BASEADDR XPAR_DCR_INTC_0_BASEADDR#define VIRTEX_INTC_KIND_OF_INTR XPAR_DCR_INTC_0_KIND_OF_INTR +#elif defined(CONFIG_XILINX_ML403 ) +#include "xparameters_ml403.h" + +/* Serial ports */ +#define VIRTEX_UART_0_BASEADDR (XPAR_OPB_UART16550_0_BASEADDR + 0x1000) +#define VIRTEX_UART_0_IRQ XPAR_OPB_INTC_0_OPB_UART16550_0_IP2INTC_IRPT_INTR +#define VIRTEX_UART_0_CLK XPAR_XUARTNS550_CLOCK_HZ + +/* Values for setting up interrupt controller */ +#define VIRTEX_XINTC_USE_DCR XPAR_XINTC_USE_DCR +#define VIRTEX_INTC_BASEADDR XPAR_OPB_INTC_0_BASEADDR +#define VIRTEX_INTC_KIND_OF_INTR XPAR_OPB_INTC_0_KIND_OF_INTR +#else /* Add other board xparameter includes here before the #else */ #error No *_xparameters.h file included
include/asm-ppc/ibm4xx.h +4 -0
@@ -51,6 +51,10 @@#include <platforms/4xx/xilinx_ml300.h> #endif +#if defined(CONFIG_XILINX_ML403 ) +#include <platforms/4xx/xilinx_ml403.h> +#endif +#ifndef __ASSEMBLY__#ifdef CONFIG_40x
Signature · 1 line
1.1.2-g9e9b-dirty