mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 23:47:24 +00:00
Merge branch 'master' of git://git.denx.de/u-boot-coldfire
This commit is contained in:
commit
e35da4994a
39 changed files with 141 additions and 53 deletions
|
@ -297,6 +297,11 @@ stages:
|
|||
qemu_arm64:
|
||||
TEST_PY_BD: "qemu_arm64"
|
||||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
qemu_m68k:
|
||||
TEST_PY_BD: "M5208EVBE"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
TEST_PY_TEST_SPEC: "not sleep and not efi"
|
||||
OVERRIDE: "-a CONFIG_M68K_QEMU=y -a ~CONFIG_MCFTMR"
|
||||
qemu_malta:
|
||||
TEST_PY_BD: "malta"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
|
|
|
@ -355,6 +355,14 @@ qemu_arm64 test.py:
|
|||
TEST_PY_TEST_SPEC: "not sleep"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
qemu_m68k test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "M5208EVBE"
|
||||
TEST_PY_ID: "--id qemu"
|
||||
TEST_PY_TEST_SPEC: "not sleep and not efi"
|
||||
OVERRIDE: "-a CONFIG_M68K_QEMU=y -a ~CONFIG_MCFTMR"
|
||||
<<: *buildman_and_testpy_dfn
|
||||
|
||||
qemu_malta test.py:
|
||||
variables:
|
||||
TEST_PY_BD: "malta"
|
||||
|
|
|
@ -198,7 +198,17 @@ source "board/freescale/m5373evb/Kconfig"
|
|||
source "board/sysam/amcore/Kconfig"
|
||||
source "board/sysam/stmark2/Kconfig"
|
||||
|
||||
config M68K_QEMU
|
||||
bool "Build with workarounds for incomplete QEMU emulation"
|
||||
default n
|
||||
help
|
||||
QEMU 8.x currently does not implement RAMBAR accesses and
|
||||
DMA timers. Enable this option for U-Boot CI purposes only
|
||||
to skip the RAMBAR accesses.
|
||||
|
||||
config MCFTMR
|
||||
bool "Use DMA timer"
|
||||
default y if !M68K_QEMU
|
||||
default n if M68K_QEMU
|
||||
|
||||
endmenu
|
||||
|
|
|
@ -22,7 +22,7 @@ int interrupt_init(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if defined(CFG_MCFTMR)
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
void dtimer_intr_setup(void)
|
||||
{
|
||||
int0_t *intp = (int0_t *) (CFG_SYS_INTR_BASE);
|
||||
|
|
|
@ -34,7 +34,7 @@ int interrupt_init(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if defined(CFG_MCFTMR)
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
void dtimer_intr_setup(void)
|
||||
{
|
||||
intctrl_t *intp = (intctrl_t *) (CFG_SYS_INTR_BASE);
|
||||
|
@ -42,7 +42,7 @@ void dtimer_intr_setup(void)
|
|||
clrbits_be32(&intp->int_icr1, INT_ICR1_TMR3MASK);
|
||||
setbits_be32(&intp->int_icr1, CFG_SYS_TMRINTR_PRI);
|
||||
}
|
||||
#endif /* CFG_MCFTMR */
|
||||
#endif /* CONFIG_MCFTMR */
|
||||
#endif /* CONFIG_M5272 */
|
||||
|
||||
#if defined(CONFIG_M5208) || defined(CONFIG_M5282) || \
|
||||
|
@ -63,7 +63,7 @@ int interrupt_init(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if defined(CFG_MCFTMR)
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
void dtimer_intr_setup(void)
|
||||
{
|
||||
int0_t *intp = (int0_t *) (CFG_SYS_INTR_BASE);
|
||||
|
@ -72,7 +72,7 @@ void dtimer_intr_setup(void)
|
|||
clrbits_be32(&intp->imrl0, 0x00000001);
|
||||
clrbits_be32(&intp->imrl0, CFG_SYS_TMRINTR_MASK);
|
||||
}
|
||||
#endif /* CFG_MCFTMR */
|
||||
#endif /* CONFIG_MCFTMR */
|
||||
#endif /* CONFIG_M5282 | CONFIG_M5271 | CONFIG_M5275 */
|
||||
|
||||
#if defined(CONFIG_M5249) || defined(CONFIG_M5253)
|
||||
|
@ -83,11 +83,11 @@ int interrupt_init(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if defined(CFG_MCFTMR)
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
void dtimer_intr_setup(void)
|
||||
{
|
||||
mbar_writeLong(MCFSIM_IMR, mbar_readLong(MCFSIM_IMR) & ~0x00000400);
|
||||
mbar_writeByte(MCFSIM_TIMER2ICR, CFG_SYS_TMRINTR_PRI);
|
||||
}
|
||||
#endif /* CFG_MCFTMR */
|
||||
#endif /* CONFIG_MCFTMR */
|
||||
#endif /* CONFIG_M5249 || CONFIG_M5253 */
|
||||
|
|
|
@ -98,7 +98,7 @@ _start:
|
|||
nop
|
||||
move.w #0x2700,%sr
|
||||
|
||||
#if defined(CONFIG_M5208)
|
||||
#if defined(CONFIG_M5208) && !defined(CONFIG_M68K_QEMU)
|
||||
/* Initialize RAMBAR: locate SRAM and validate it */
|
||||
move.l #(CFG_SYS_INIT_RAM_ADDR + CFG_SYS_INIT_RAM_CTRL), %d0
|
||||
movec %d0, %RAMBAR1
|
||||
|
@ -120,7 +120,7 @@ _start:
|
|||
movec %d0, %RAMBAR0
|
||||
#endif /* CONFIG_M5272 || CONFIG_M5249 || CONFIG_M5253 */
|
||||
|
||||
#if defined(CONFIG_M5282) || defined(CONFIG_M5271)
|
||||
#if (defined(CONFIG_M5282) || defined(CONFIG_M5271)) && !defined(CONFIG_M68K_QEMU)
|
||||
/* set MBAR address + valid flag */
|
||||
move.l #(CFG_SYS_MBAR + 1), %d0
|
||||
move.l %d0, 0x40000000
|
||||
|
|
|
@ -23,7 +23,7 @@ int interrupt_init(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if defined(CFG_MCFTMR)
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
void dtimer_intr_setup(void)
|
||||
{
|
||||
int0_t *intp = (int0_t *) (CFG_SYS_INTR_BASE);
|
||||
|
|
|
@ -26,7 +26,7 @@ int interrupt_init(void)
|
|||
return 0;
|
||||
}
|
||||
|
||||
#if defined(CFG_MCFTMR)
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
void dtimer_intr_setup(void)
|
||||
{
|
||||
int0_t *intp = (int0_t *) (CFG_SYS_INTR_BASE);
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
#define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x4000))
|
||||
|
||||
/* Timer */
|
||||
#ifdef CFG_MCFTMR
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_DTMR0)
|
||||
#define CFG_SYS_TMR_BASE (MMAP_DTMR1)
|
||||
#define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprh0)
|
||||
|
@ -25,6 +25,8 @@
|
|||
#define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK)
|
||||
#define CFG_SYS_TMRINTR_PRI (6)
|
||||
#define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
|
||||
#else
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_PIT0)
|
||||
#endif
|
||||
|
||||
#define CFG_SYS_INTR_BASE (MMAP_INTC0)
|
||||
|
@ -38,7 +40,7 @@
|
|||
#define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40))
|
||||
|
||||
/* Timer */
|
||||
#ifdef CFG_MCFTMR
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_DTMR0)
|
||||
#define CFG_SYS_TMR_BASE (MMAP_DTMR3)
|
||||
#define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprl0)
|
||||
|
@ -47,6 +49,8 @@
|
|||
#define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK)
|
||||
#define CFG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */
|
||||
#define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
|
||||
#else
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_PIT0)
|
||||
#endif
|
||||
|
||||
#define CFG_SYS_INTR_BASE (MMAP_INTC0)
|
||||
|
@ -63,7 +67,7 @@
|
|||
#define CFG_SYS_NUM_IRQS (64)
|
||||
|
||||
/* Timer */
|
||||
#ifdef CFG_MCFTMR
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_DTMR0)
|
||||
#define CFG_SYS_TMR_BASE (MMAP_DTMR1)
|
||||
#define CFG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR))
|
||||
|
@ -72,6 +76,8 @@
|
|||
#define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK)
|
||||
#define CFG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3)
|
||||
#define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
|
||||
#else
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_PIT0)
|
||||
#endif
|
||||
#endif /* CONFIG_M5249 */
|
||||
|
||||
|
@ -86,7 +92,7 @@
|
|||
#define CFG_SYS_NUM_IRQS (64)
|
||||
|
||||
/* Timer */
|
||||
#ifdef CFG_MCFTMR
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_DTMR0)
|
||||
#define CFG_SYS_TMR_BASE (MMAP_DTMR1)
|
||||
#define CFG_SYS_TMRPND_REG (mbar_readLong(MCFSIM_IPR))
|
||||
|
@ -95,6 +101,8 @@
|
|||
#define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK)
|
||||
#define CFG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | MCFSIM_ICR_LEVEL3 | MCFSIM_ICR_PRI3)
|
||||
#define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 2000000) - 1) << 8)
|
||||
#else
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_PIT0)
|
||||
#endif
|
||||
#endif /* CONFIG_M5253 */
|
||||
|
||||
|
@ -105,7 +113,7 @@
|
|||
#define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x40))
|
||||
|
||||
/* Timer */
|
||||
#ifdef CFG_MCFTMR
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_DTMR0)
|
||||
#define CFG_SYS_TMR_BASE (MMAP_DTMR3)
|
||||
#define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprl0)
|
||||
|
@ -114,6 +122,8 @@
|
|||
#define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK)
|
||||
#define CFG_SYS_TMRINTR_PRI (0x1E) /* Interrupt level 3, priority 6 */
|
||||
#define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
|
||||
#else
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_PIT0)
|
||||
#endif
|
||||
|
||||
#define CFG_SYS_INTR_BASE (MMAP_INTC0)
|
||||
|
@ -130,7 +140,7 @@
|
|||
#define CFG_SYS_NUM_IRQS (64)
|
||||
|
||||
/* Timer */
|
||||
#ifdef CFG_MCFTMR
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_TMR0)
|
||||
#define CFG_SYS_TMR_BASE (MMAP_TMR3)
|
||||
#define CFG_SYS_TMRPND_REG (((volatile intctrl_t *)(CFG_SYS_INTR_BASE))->int_isr)
|
||||
|
@ -139,6 +149,8 @@
|
|||
#define CFG_SYS_TMRINTR_PEND (0)
|
||||
#define CFG_SYS_TMRINTR_PRI (INT_ICR1_TMR3PI | INT_ICR1_TMR3IPL(5))
|
||||
#define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
|
||||
#else
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_PIT0)
|
||||
#endif
|
||||
#endif /* CONFIG_M5272 */
|
||||
|
||||
|
@ -152,7 +164,7 @@
|
|||
#define CFG_SYS_NUM_IRQS (192)
|
||||
|
||||
/* Timer */
|
||||
#ifdef CFG_MCFTMR
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_DTMR0)
|
||||
#define CFG_SYS_TMR_BASE (MMAP_DTMR3)
|
||||
#define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprl0)
|
||||
|
@ -161,6 +173,8 @@
|
|||
#define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK)
|
||||
#define CFG_SYS_TMRINTR_PRI (0x1E)
|
||||
#define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
|
||||
#else
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_PIT0)
|
||||
#endif
|
||||
#endif /* CONFIG_M5275 */
|
||||
|
||||
|
@ -174,7 +188,7 @@
|
|||
#define CFG_SYS_NUM_IRQS (128)
|
||||
|
||||
/* Timer */
|
||||
#ifdef CFG_MCFTMR
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_DTMR0)
|
||||
#define CFG_SYS_TMR_BASE (MMAP_DTMR3)
|
||||
#define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprl0)
|
||||
|
@ -183,6 +197,8 @@
|
|||
#define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK)
|
||||
#define CFG_SYS_TMRINTR_PRI (0x1E) /* Level must include inorder to work */
|
||||
#define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
|
||||
#else
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_PIT0)
|
||||
#endif
|
||||
#endif /* CONFIG_M5282 */
|
||||
|
||||
|
@ -196,7 +212,7 @@
|
|||
#define CFG_SYS_NUM_IRQS (64)
|
||||
|
||||
/* Timer */
|
||||
#ifdef CFG_MCFTMR
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_DTMR0)
|
||||
#define CFG_SYS_TMR_BASE (MMAP_DTMR1)
|
||||
#define CFG_SYS_TMRPND_REG (((volatile intctrl_t *) \
|
||||
|
@ -207,6 +223,8 @@
|
|||
#define CFG_SYS_TMRINTR_PRI (MCFSIM_ICR_AUTOVEC | \
|
||||
MCFSIM_ICR_LEVEL7 | MCFSIM_ICR_PRI3)
|
||||
#define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
|
||||
#else
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_PIT0)
|
||||
#endif
|
||||
#endif /* CONFIG_M5307 */
|
||||
|
||||
|
@ -217,7 +235,7 @@
|
|||
#define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x4000))
|
||||
|
||||
/* Timer */
|
||||
#ifdef CFG_MCFTMR
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_DTMR0)
|
||||
#define CFG_SYS_TMR_BASE (MMAP_DTMR1)
|
||||
#define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprh0)
|
||||
|
@ -226,6 +244,8 @@
|
|||
#define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK)
|
||||
#define CFG_SYS_TMRINTR_PRI (6)
|
||||
#define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
|
||||
#else
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_PIT0)
|
||||
#endif
|
||||
|
||||
#define CFG_SYS_INTR_BASE (MMAP_INTC0)
|
||||
|
@ -239,7 +259,7 @@
|
|||
#define CFG_SYS_UART_BASE (MMAP_UART0 + (CFG_SYS_UART_PORT * 0x4000))
|
||||
|
||||
/* Timer */
|
||||
#ifdef CFG_MCFTMR
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_DTMR0)
|
||||
#define CFG_SYS_TMR_BASE (MMAP_DTMR1)
|
||||
#define CFG_SYS_TMRPND_REG (((volatile int0_t *)(CFG_SYS_INTR_BASE))->iprh0)
|
||||
|
@ -248,6 +268,8 @@
|
|||
#define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK)
|
||||
#define CFG_SYS_TMRINTR_PRI (6)
|
||||
#define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
|
||||
#else
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_PIT0)
|
||||
#endif
|
||||
|
||||
#define CFG_SYS_INTR_BASE (MMAP_INTC0)
|
||||
|
@ -269,7 +291,7 @@
|
|||
#define MMAP_DSPI MMAP_DSPI0
|
||||
|
||||
/* Timer */
|
||||
#ifdef CFG_MCFTMR
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_DTMR0)
|
||||
#define CFG_SYS_TMR_BASE (MMAP_DTMR1)
|
||||
#define CFG_SYS_TMRPND_REG (((int0_t *)(CFG_SYS_INTR_BASE))->iprh0)
|
||||
|
@ -278,6 +300,8 @@
|
|||
#define CFG_SYS_TMRINTR_PEND (CFG_SYS_TMRINTR_MASK)
|
||||
#define CFG_SYS_TMRINTR_PRI (6)
|
||||
#define CFG_SYS_TIMER_PRESCALER (((gd->bus_clk / 1000000) - 1) << 8)
|
||||
#else
|
||||
#define CFG_SYS_UDELAY_BASE (MMAP_PIT0)
|
||||
#endif
|
||||
|
||||
#define CFG_SYS_INTR_BASE (MMAP_INTC0)
|
||||
|
|
|
@ -25,7 +25,7 @@ static volatile ulong timestamp = 0;
|
|||
#define CFG_SYS_WATCHDOG_FREQ (CONFIG_SYS_HZ / 2)
|
||||
#endif
|
||||
|
||||
#if defined(CFG_MCFTMR)
|
||||
#if CONFIG_IS_ENABLED(MCFTMR)
|
||||
#ifndef CFG_SYS_UDELAY_BASE
|
||||
# error "uDelay base not defined!"
|
||||
#endif
|
||||
|
@ -111,8 +111,6 @@ ulong get_timer(ulong base)
|
|||
return (timestamp - base);
|
||||
}
|
||||
|
||||
#endif /* CFG_MCFTMR */
|
||||
|
||||
/*
|
||||
* This function is derived from PowerPC code (read timebase as long long).
|
||||
* On M68K it just returns the timer value.
|
||||
|
@ -121,6 +119,40 @@ unsigned long long get_ticks(void)
|
|||
{
|
||||
return get_timer(0);
|
||||
}
|
||||
#else
|
||||
static u64 timer64 __section(".data");
|
||||
static u16 timer16 __section(".data");
|
||||
|
||||
uint64_t __weak get_ticks(void)
|
||||
{
|
||||
volatile pit_t *timerp = (pit_t *) (CFG_SYS_UDELAY_BASE);
|
||||
u16 val = ~timerp->pcntr;
|
||||
|
||||
if (timer16 > val)
|
||||
timer64 += 0xffff - timer16 + val;
|
||||
else
|
||||
timer64 += val - timer16;
|
||||
|
||||
timer16 = val;
|
||||
|
||||
return timer64;
|
||||
}
|
||||
|
||||
/* PIT timer */
|
||||
int timer_init(void)
|
||||
{
|
||||
volatile pit_t *timerp = (pit_t *) (CFG_SYS_UDELAY_BASE);
|
||||
|
||||
timer16 = 0;
|
||||
timer64 = 0;
|
||||
|
||||
/* Set up PIT as timebase clock */
|
||||
timerp->pmr = 0xffff;
|
||||
timerp->pcsr = PIT_PCSR_EN | PIT_PCSR_OVW;
|
||||
|
||||
return 0;
|
||||
}
|
||||
#endif /* CONFIG_MCFTMR */
|
||||
|
||||
unsigned long usec2ticks(unsigned long usec)
|
||||
{
|
||||
|
|
27
bin/travis-ci/conf.M5208EVBE_qemu
Normal file
27
bin/travis-ci/conf.M5208EVBE_qemu
Normal file
|
@ -0,0 +1,27 @@
|
|||
# Copyright (c) 2023 Marek Vasut <marek.vasut+renesas@mailbox.org>
|
||||
#
|
||||
# Permission is hereby granted, free of charge, to any person obtaining a
|
||||
# copy of this software and associated documentation files (the "Software"),
|
||||
# to deal in the Software without restriction, including without limitation
|
||||
# the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
||||
# and/or sell copies of the Software, and to permit persons to whom the
|
||||
# Software is furnished to do so, subject to the following conditions:
|
||||
#
|
||||
# The above copyright notice and this permission notice shall be included in
|
||||
# all copies or substantial portions of the Software.
|
||||
#
|
||||
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
|
||||
# THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
||||
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
||||
# DEALINGS IN THE SOFTWARE.
|
||||
|
||||
console_impl=qemu
|
||||
qemu_machine="mcf5208evb"
|
||||
qemu_binary="qemu-system-m68k"
|
||||
qemu_extra_args="-nographic -serial mon:stdio -net user,tftp=${UBOOT_TRAVIS_BUILD_DIR} -net nic,model=mcf-fec"
|
||||
qemu_kernel_args="-bios ${U_BOOT_BUILD_DIR}/u-boot.bin"
|
||||
reset_impl=none
|
||||
flash_impl=none
|
|
@ -87,7 +87,7 @@ CONFIG_SYS_FEC0_PINMUX -- Set FEC0 Pin configuration
|
|||
CONFIG_SYS_FEC0_MIIBASE -- Set FEC0 MII base register
|
||||
MCFFEC_TOUT_LOOP -- set FEC timeout loop
|
||||
|
||||
CFG_MCFTMR -- define to use DMA timer
|
||||
CONFIG_MCFTMR -- define to use DMA timer
|
||||
|
||||
CONFIG_SYS_I2C_FSL -- define to use FSL common I2C driver
|
||||
CONFIG_SYS_I2C_SOFT -- define for I2C bit-banged
|
||||
|
|
|
@ -86,7 +86,7 @@ CONFIG_SYS_FEC0_PINMUX -- Set FEC0 Pin configuration
|
|||
CONFIG_SYS_FEC0_MIIBASE -- Set FEC0 MII base register
|
||||
MCFFEC_TOUT_LOOP -- set FEC timeout loop
|
||||
|
||||
CFG_MCFTMR -- define to use DMA timer
|
||||
CONFIG_MCFTMR -- define to use DMA timer
|
||||
|
||||
CONFIG_SYS_I2C_FSL -- define to use FSL common I2C driver
|
||||
CONFIG_SYS_I2C_SOFT -- define for I2C bit-banged
|
||||
|
|
|
@ -863,7 +863,7 @@ static const init_fnc_t init_sequence_f[] = {
|
|||
/* get CPU and bus clocks according to the environment variable */
|
||||
get_clocks, /* get CPU and bus clocks (etc.) */
|
||||
#endif
|
||||
#if !defined(CONFIG_M68K)
|
||||
#if !defined(CONFIG_M68K) || (defined(CONFIG_M68K) && !defined(CONFIG_MCFTMR))
|
||||
timer_init, /* initialize timer */
|
||||
#endif
|
||||
#if defined(CONFIG_BOARD_POSTCLK_INIT)
|
||||
|
|
|
@ -4,7 +4,6 @@ CONFIG_SYS_MALLOC_LEN=0x20000
|
|||
CONFIG_ENV_SIZE=0x1000
|
||||
CONFIG_ENV_SECT_SIZE=0x2000
|
||||
CONFIG_DEFAULT_DEVICE_TREE="M5208EVBE"
|
||||
CONFIG_SYS_PROMPT="-> "
|
||||
CONFIG_SYS_LOAD_ADDR=0x40010000
|
||||
CONFIG_ENV_ADDR=0x2000
|
||||
CONFIG_TARGET_M5208EVBE=y
|
||||
|
|
|
@ -4,7 +4,6 @@ CONFIG_SYS_MALLOC_LEN=0x20000
|
|||
CONFIG_ENV_SIZE=0x2000
|
||||
CONFIG_ENV_SECT_SIZE=0x2000
|
||||
CONFIG_DEFAULT_DEVICE_TREE="M5235EVB"
|
||||
CONFIG_SYS_PROMPT="-> "
|
||||
CONFIG_SYS_LOAD_ADDR=0x20000
|
||||
CONFIG_ENV_ADDR=0xFFE04000
|
||||
CONFIG_TARGET_M5235EVB=y
|
||||
|
|
|
@ -4,7 +4,6 @@ CONFIG_SYS_MALLOC_LEN=0x40000
|
|||
CONFIG_ENV_SIZE=0x2000
|
||||
CONFIG_ENV_SECT_SIZE=0x2000
|
||||
CONFIG_DEFAULT_DEVICE_TREE="M5272C3"
|
||||
CONFIG_SYS_PROMPT="-> "
|
||||
CONFIG_SYS_LOAD_ADDR=0x20000
|
||||
CONFIG_ENV_ADDR=0xFFE04000
|
||||
CONFIG_TARGET_M5272C3=y
|
||||
|
|
|
@ -4,7 +4,6 @@ CONFIG_SYS_MALLOC_LEN=0x40000
|
|||
CONFIG_ENV_SIZE=0x2000
|
||||
CONFIG_ENV_SECT_SIZE=0x2000
|
||||
CONFIG_DEFAULT_DEVICE_TREE="M5275EVB"
|
||||
CONFIG_SYS_PROMPT="-> "
|
||||
CONFIG_SYS_LOAD_ADDR=0x800000
|
||||
CONFIG_ENV_ADDR=0xFFE04000
|
||||
CONFIG_TARGET_M5275EVB=y
|
||||
|
|
|
@ -4,7 +4,6 @@ CONFIG_SYS_MALLOC_LEN=0x40000
|
|||
CONFIG_ENV_SIZE=0x2000
|
||||
CONFIG_ENV_SECT_SIZE=0x2000
|
||||
CONFIG_DEFAULT_DEVICE_TREE="M5282EVB"
|
||||
CONFIG_SYS_PROMPT="-> "
|
||||
CONFIG_SYS_LOAD_ADDR=0x20000
|
||||
CONFIG_ENV_ADDR=0xFFE04000
|
||||
CONFIG_TARGET_M5282EVB=y
|
||||
|
|
|
@ -4,7 +4,6 @@ CONFIG_SYS_MALLOC_LEN=0x20000
|
|||
CONFIG_ENV_SIZE=0x1000
|
||||
CONFIG_ENV_SECT_SIZE=0x8000
|
||||
CONFIG_DEFAULT_DEVICE_TREE="M53017EVB"
|
||||
CONFIG_SYS_PROMPT="-> "
|
||||
CONFIG_SYS_LOAD_ADDR=0x40010000
|
||||
CONFIG_ENV_ADDR=0x40000
|
||||
CONFIG_TARGET_M53017EVB=y
|
||||
|
|
|
@ -4,7 +4,6 @@ CONFIG_SYS_MALLOC_LEN=0x20000
|
|||
CONFIG_ENV_SIZE=0x2000
|
||||
CONFIG_ENV_SECT_SIZE=0x2000
|
||||
CONFIG_DEFAULT_DEVICE_TREE="M5329AFEE"
|
||||
CONFIG_SYS_PROMPT="-> "
|
||||
CONFIG_SYS_LOAD_ADDR=0x40010000
|
||||
CONFIG_ENV_ADDR=0x4000
|
||||
CONFIG_TARGET_M5329EVB=y
|
||||
|
|
|
@ -4,7 +4,6 @@ CONFIG_SYS_MALLOC_LEN=0x20000
|
|||
CONFIG_ENV_SIZE=0x2000
|
||||
CONFIG_ENV_SECT_SIZE=0x2000
|
||||
CONFIG_DEFAULT_DEVICE_TREE="M5329BFEE"
|
||||
CONFIG_SYS_PROMPT="-> "
|
||||
CONFIG_SYS_LOAD_ADDR=0x40010000
|
||||
CONFIG_ENV_ADDR=0x4000
|
||||
CONFIG_TARGET_M5329EVB=y
|
||||
|
|
|
@ -4,7 +4,6 @@ CONFIG_SYS_MALLOC_LEN=0x20000
|
|||
CONFIG_ENV_SIZE=0x2000
|
||||
CONFIG_ENV_SECT_SIZE=0x2000
|
||||
CONFIG_DEFAULT_DEVICE_TREE="M5373EVB"
|
||||
CONFIG_SYS_PROMPT="-> "
|
||||
CONFIG_SYS_LOAD_ADDR=0x40010000
|
||||
CONFIG_ENV_ADDR=0x4000
|
||||
CONFIG_TARGET_M5373EVB=y
|
||||
|
|
|
@ -111,6 +111,5 @@
|
|||
#define CFG_SYS_CS0_MASK 0x007F0001
|
||||
#define CFG_SYS_CS0_CTRL 0x00001FA0
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#endif /* _M5208EVBE_H */
|
||||
|
|
|
@ -130,6 +130,5 @@
|
|||
# define CFG_SYS_CS0_CTRL 0x00001D80
|
||||
#endif
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#endif /* _M5329EVB_H */
|
||||
|
|
|
@ -120,6 +120,5 @@
|
|||
#define CFG_SYS_GPIO1_OUT 0x00c70000 /* Set outputs to default state */
|
||||
#define CFG_SYS_GPIO1_LED 0x00400000 /* user led */
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#endif /* M5249 */
|
||||
|
|
|
@ -132,6 +132,5 @@
|
|||
#define CFG_SYS_GPIO1_OUT 0x00c70000 /* Set outputs to default state */
|
||||
#define CFG_SYS_GPIO1_LED 0x00400000 /* user led */
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#endif /* _M5253DEMO_H */
|
||||
|
|
|
@ -107,6 +107,5 @@
|
|||
#define CFG_SYS_PBDAT 0x0000
|
||||
#define CFG_SYS_PDCNT 0x00000000
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#endif /* _M5272C3_H */
|
||||
|
|
|
@ -116,6 +116,5 @@
|
|||
#define CFG_SYS_CS1_CTRL 0x00001900
|
||||
#define CFG_SYS_CS1_MASK 0x00070001
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#endif /* _M5275EVB_H */
|
||||
|
|
|
@ -127,6 +127,5 @@
|
|||
#define CFG_SYS_DDRUA 0x05
|
||||
#define CFG_SYS_PJPAR 0xFF
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#endif /* _CONFIG_M5282EVB_H */
|
||||
|
|
|
@ -132,6 +132,5 @@
|
|||
#define CFG_SYS_CS1_MASK 0x00070001
|
||||
#define CFG_SYS_CS1_CTRL 0x00001FA0
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#endif /* _M53017EVB_H */
|
||||
|
|
|
@ -138,6 +138,5 @@
|
|||
#define CFG_SYS_CS2_CTRL 0x00001f60
|
||||
#endif
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#endif /* _M5329EVB_H */
|
||||
|
|
|
@ -136,6 +136,5 @@
|
|||
#define CFG_SYS_CS2_MASK (16 << 20)
|
||||
#define CFG_SYS_CS2_CTRL 0x00001f60
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#endif /* _M5373EVB_H */
|
||||
|
|
|
@ -10,7 +10,6 @@
|
|||
|
||||
#define CFG_SYS_UART_PORT 0
|
||||
|
||||
#define CFG_MCFTMR
|
||||
#define CFG_SYS_UART_PORT 0
|
||||
#define CFG_SYS_BAUDRATE_TABLE { 9600, 19200, 38400, 57600, 115200 }
|
||||
|
||||
|
|
|
@ -184,6 +184,5 @@
|
|||
#define CFG_SYS_CACHE_ICACR (CF_CACR_EC | CF_CACR_CINVA | \
|
||||
CF_CACR_DCM_P)
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#endif /* _CONFIG_ASTRO_MCF5373L_H */
|
||||
|
|
|
@ -184,6 +184,5 @@ configuration */
|
|||
#define CFG_SYS_PBDAT 0x0000 /* PortB value reg. */
|
||||
#define CFG_SYS_PDCNT 0x00000000 /* PortD control reg. */
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#endif /* _CONFIG_COBRA5272_H */
|
||||
|
|
|
@ -138,7 +138,6 @@
|
|||
#define CFG_SYS_DDRUA 0x05
|
||||
#define CFG_SYS_PJPAR 0xFF
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#endif /* _CONFIG_M5282EVB_H */
|
||||
/*---------------------------------------------------------------------*/
|
||||
|
|
|
@ -95,7 +95,6 @@
|
|||
#define CACR_STATUS (CFG_SYS_INIT_RAM_ADDR + \
|
||||
CFG_SYS_INIT_RAM_SIZE - 12)
|
||||
|
||||
#define CFG_MCFTMR
|
||||
|
||||
#define CFG_SYS_I2C_0
|
||||
|
||||
|
|
6
py/travis-ci/u_boot_boardenv_M5208EVBE_qemu.py
Normal file
6
py/travis-ci/u_boot_boardenv_M5208EVBE_qemu.py
Normal file
|
@ -0,0 +1,6 @@
|
|||
import os
|
||||
import travis_tftp
|
||||
|
||||
env__net_uses_pci = False
|
||||
env__net_dhcp_server = True
|
||||
env__net_tftp_readable_file = travis_tftp.file2env('u-boot')
|
Loading…
Reference in a new issue