mirror of
https://github.com/Stichting-MINIX-Research-Foundation/u-boot.git
synced 2025-09-09 12:13:00 -04:00
microblaze: Repare intc handling
Signed-off-by: Michal Simek <monstr@monstr.eu>
This commit is contained in:
parent
878b3b1e19
commit
4d49b28038
@ -56,9 +56,11 @@
|
|||||||
/* ethernet */
|
/* ethernet */
|
||||||
#ifdef XILINX_EMAC_BASEADDR
|
#ifdef XILINX_EMAC_BASEADDR
|
||||||
#define CONFIG_XILINX_EMAC 1
|
#define CONFIG_XILINX_EMAC 1
|
||||||
|
#define CFG_ENET
|
||||||
#else
|
#else
|
||||||
#ifdef XILINX_EMACLITE_BASEADDR
|
#ifdef XILINX_EMACLITE_BASEADDR
|
||||||
#define CONFIG_XILINX_EMACLITE 1
|
#define CONFIG_XILINX_EMACLITE 1
|
||||||
|
#define CFG_ENET
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#undef ET_DEBUG
|
#undef ET_DEBUG
|
||||||
@ -70,18 +72,28 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* interrupt controller */
|
/* interrupt controller */
|
||||||
|
#ifdef XILINX_INTC_BASEADDR
|
||||||
#define CFG_INTC_0 1
|
#define CFG_INTC_0 1
|
||||||
#define CFG_INTC_0_ADDR XILINX_INTC_BASEADDR
|
#define CFG_INTC_0_ADDR XILINX_INTC_BASEADDR
|
||||||
#define CFG_INTC_0_NUM XILINX_INTC_NUM_INTR_INPUTS
|
#define CFG_INTC_0_NUM XILINX_INTC_NUM_INTR_INPUTS
|
||||||
|
#endif
|
||||||
|
|
||||||
/* timer */
|
/* timer */
|
||||||
|
#ifdef XILINX_TIMER_BASEADDR
|
||||||
|
#if (XILINX_TIMER_IRQ != -1)
|
||||||
#define CFG_TIMER_0 1
|
#define CFG_TIMER_0 1
|
||||||
#define CFG_TIMER_0_ADDR XILINX_TIMER_BASEADDR
|
#define CFG_TIMER_0_ADDR XILINX_TIMER_BASEADDR
|
||||||
#define CFG_TIMER_0_IRQ XILINX_TIMER_IRQ
|
#define CFG_TIMER_0_IRQ XILINX_TIMER_IRQ
|
||||||
#define FREQUENCE XILINX_CLOCK_FREQ
|
#define FREQUENCE XILINX_CLOCK_FREQ
|
||||||
#define CFG_TIMER_0_PRELOAD ( FREQUENCE/1000 )
|
#define CFG_TIMER_0_PRELOAD ( FREQUENCE/1000 )
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#ifdef XILINX_CLOCK_FREQ
|
||||||
#define CONFIG_XILINX_CLOCK_FREQ XILINX_CLOCK_FREQ
|
#define CONFIG_XILINX_CLOCK_FREQ XILINX_CLOCK_FREQ
|
||||||
|
#else
|
||||||
|
#error BAD CLOCK FREQ
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
/* FSL */
|
/* FSL */
|
||||||
/* #define CFG_FSL_2 */
|
/* #define CFG_FSL_2 */
|
||||||
/* #define FSL_INTR_2 1 */
|
/* #define FSL_INTR_2 1 */
|
||||||
@ -195,7 +207,12 @@
|
|||||||
#define CONFIG_CMD_CACHE
|
#define CONFIG_CMD_CACHE
|
||||||
#define CONFIG_CMD_IRQ
|
#define CONFIG_CMD_IRQ
|
||||||
#define CONFIG_CMD_MFSL
|
#define CONFIG_CMD_MFSL
|
||||||
#define CONFIG_CMD_PING
|
|
||||||
|
#ifndef CFG_ENET
|
||||||
|
#undef CONFIG_CMD_NET
|
||||||
|
#else
|
||||||
|
#define CONFIG_CMD_PING
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_SYSTEMACE)
|
#if defined(CONFIG_SYSTEMACE)
|
||||||
#define CONFIG_CMD_EXT2
|
#define CONFIG_CMD_EXT2
|
||||||
|
@ -63,9 +63,11 @@
|
|||||||
/* ethernet */
|
/* ethernet */
|
||||||
#ifdef XILINX_EMAC_BASEADDR
|
#ifdef XILINX_EMAC_BASEADDR
|
||||||
#define CONFIG_XILINX_EMAC 1
|
#define CONFIG_XILINX_EMAC 1
|
||||||
|
#define CFG_ENET
|
||||||
#else
|
#else
|
||||||
#ifdef XILINX_EMACLITE_BASEADDR
|
#ifdef XILINX_EMACLITE_BASEADDR
|
||||||
#define CONFIG_XILINX_EMACLITE 1
|
#define CONFIG_XILINX_EMACLITE 1
|
||||||
|
#define CFG_ENET
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
#undef ET_DEBUG
|
#undef ET_DEBUG
|
||||||
@ -77,18 +79,28 @@
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* interrupt controller */
|
/* interrupt controller */
|
||||||
|
#ifdef XILINX_INTC_BASEADDR
|
||||||
#define CFG_INTC_0 1
|
#define CFG_INTC_0 1
|
||||||
#define CFG_INTC_0_ADDR XILINX_INTC_BASEADDR
|
#define CFG_INTC_0_ADDR XILINX_INTC_BASEADDR
|
||||||
#define CFG_INTC_0_NUM XILINX_INTC_NUM_INTR_INPUTS
|
#define CFG_INTC_0_NUM XILINX_INTC_NUM_INTR_INPUTS
|
||||||
|
#endif
|
||||||
|
|
||||||
/* timer */
|
/* timer */
|
||||||
|
#ifdef XILINX_TIMER_BASEADDR
|
||||||
|
#if (XILINX_TIMER_IRQ != -1)
|
||||||
#define CFG_TIMER_0 1
|
#define CFG_TIMER_0 1
|
||||||
#define CFG_TIMER_0_ADDR XILINX_TIMER_BASEADDR
|
#define CFG_TIMER_0_ADDR XILINX_TIMER_BASEADDR
|
||||||
#define CFG_TIMER_0_IRQ XILINX_TIMER_IRQ
|
#define CFG_TIMER_0_IRQ XILINX_TIMER_IRQ
|
||||||
#define FREQUENCE XILINX_CLOCK_FREQ
|
#define FREQUENCE XILINX_CLOCK_FREQ
|
||||||
#define CFG_TIMER_0_PRELOAD ( FREQUENCE/1000 )
|
#define CFG_TIMER_0_PRELOAD ( FREQUENCE/1000 )
|
||||||
|
#endif
|
||||||
|
#else
|
||||||
|
#ifdef XILINX_CLOCK_FREQ
|
||||||
#define CONFIG_XILINX_CLOCK_FREQ XILINX_CLOCK_FREQ
|
#define CONFIG_XILINX_CLOCK_FREQ XILINX_CLOCK_FREQ
|
||||||
|
#else
|
||||||
|
#error BAD CLOCK FREQ
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
/*
|
/*
|
||||||
* memory layout - Example
|
* memory layout - Example
|
||||||
* TEXT_BASE = 0x3600_0000;
|
* TEXT_BASE = 0x3600_0000;
|
||||||
@ -162,7 +174,12 @@
|
|||||||
#define CONFIG_CMD_ASKENV
|
#define CONFIG_CMD_ASKENV
|
||||||
#define CONFIG_CMD_CACHE
|
#define CONFIG_CMD_CACHE
|
||||||
#define CONFIG_CMD_IRQ
|
#define CONFIG_CMD_IRQ
|
||||||
#define CONFIG_CMD_PING
|
|
||||||
|
#ifndef CFG_ENET
|
||||||
|
#undef CONFIG_CMD_NET
|
||||||
|
#else
|
||||||
|
#define CONFIG_CMD_PING
|
||||||
|
#endif
|
||||||
|
|
||||||
#ifdef XILINX_SYSACE_BASEADDR
|
#ifdef XILINX_SYSACE_BASEADDR
|
||||||
#define CONFIG_CMD_EXT2
|
#define CONFIG_CMD_EXT2
|
||||||
|
Loading…
x
Reference in New Issue
Block a user