From af1a266670d040d2f4083ff309d732d648afba2a Mon Sep 17 00:00:00 2001 From: Angelos Mouzakitis Date: Tue, 10 Oct 2023 14:33:42 +0000 Subject: Add submodule dependency files Change-Id: Iaf8d18082d3991dec7c0ebbea540f092188eb4ec --- roms/u-boot/arch/arm/cpu/arm720t/Makefile | 7 +++ roms/u-boot/arch/arm/cpu/arm720t/cpu.c | 21 +++++++ roms/u-boot/arch/arm/cpu/arm720t/interrupts.c | 26 +++++++++ roms/u-boot/arch/arm/cpu/arm720t/start.S | 79 +++++++++++++++++++++++++++ 4 files changed, 133 insertions(+) create mode 100644 roms/u-boot/arch/arm/cpu/arm720t/Makefile create mode 100644 roms/u-boot/arch/arm/cpu/arm720t/cpu.c create mode 100644 roms/u-boot/arch/arm/cpu/arm720t/interrupts.c create mode 100644 roms/u-boot/arch/arm/cpu/arm720t/start.S (limited to 'roms/u-boot/arch/arm/cpu/arm720t') diff --git a/roms/u-boot/arch/arm/cpu/arm720t/Makefile b/roms/u-boot/arch/arm/cpu/arm720t/Makefile new file mode 100644 index 000000000..e70b59061 --- /dev/null +++ b/roms/u-boot/arch/arm/cpu/arm720t/Makefile @@ -0,0 +1,7 @@ +# SPDX-License-Identifier: GPL-2.0+ +# +# (C) Copyright 2000-2006 +# Wolfgang Denk, DENX Software Engineering, wd@denx.de. + +extra-y = start.o +obj-y = interrupts.o cpu.o diff --git a/roms/u-boot/arch/arm/cpu/arm720t/cpu.c b/roms/u-boot/arch/arm/cpu/arm720t/cpu.c new file mode 100644 index 000000000..ece09c83a --- /dev/null +++ b/roms/u-boot/arch/arm/cpu/arm720t/cpu.c @@ -0,0 +1,21 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2002 + * Sysgo Real-Time Solutions, GmbH + * Marius Groeger + * + * (C) Copyright 2002 + * Sysgo Real-Time Solutions, GmbH + * Alex Zuepke + */ + +/* + * cleanup_before_linux() - Prepare the CPU to jump to Linux + * + * This function is called just before we call Linux, it + * prepares the processor for linux + */ +int cleanup_before_linux(void) +{ + return 0; +} diff --git a/roms/u-boot/arch/arm/cpu/arm720t/interrupts.c b/roms/u-boot/arch/arm/cpu/arm720t/interrupts.c new file mode 100644 index 000000000..f0fc58dea --- /dev/null +++ b/roms/u-boot/arch/arm/cpu/arm720t/interrupts.c @@ -0,0 +1,26 @@ +// SPDX-License-Identifier: GPL-2.0+ +/* + * (C) Copyright 2002 + * Sysgo Real-Time Solutions, GmbH + * Marius Groeger + * + * (C) Copyright 2002 + * Sysgo Real-Time Solutions, GmbH + * Alex Zuepke + */ + +#include + +#if defined(CONFIG_ARCH_TEGRA) +static ulong timestamp; +static ulong lastdec; + +int timer_init (void) +{ + /* No timer routines for tegra as yet */ + lastdec = 0; + timestamp = 0; + + return 0; +} +#endif diff --git a/roms/u-boot/arch/arm/cpu/arm720t/start.S b/roms/u-boot/arch/arm/cpu/arm720t/start.S new file mode 100644 index 000000000..ecb4e44fd --- /dev/null +++ b/roms/u-boot/arch/arm/cpu/arm720t/start.S @@ -0,0 +1,79 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * armboot - Startup Code for ARM720 CPU-core + * + * Copyright (c) 2001 Marius Gröger + * Copyright (c) 2002 Alex Züpke + */ + +#include +#include + +/* + ************************************************************************* + * + * Startup Code (reset vector) + * + * do important init only if we don't start from RAM! + * relocate armboot to ram + * setup stack + * jump to second stage + * + ************************************************************************* + */ + + .globl reset + +reset: + /* + * set the cpu to SVC32 mode + */ + mrs r0,cpsr + bic r0,r0,#0x1f + orr r0,r0,#0xd3 + msr cpsr,r0 + + /* + * we do sys-critical inits only at reboot, + * not when booting from ram! + */ +#if !defined(CONFIG_SKIP_LOWLEVEL_INIT) && \ + !defined(CONFIG_SKIP_LOWLEVEL_INIT_ONLY) + bl cpu_init_crit +#endif + + bl _main + +/*------------------------------------------------------------------------------*/ + + .globl c_runtime_cpu_setup +c_runtime_cpu_setup: + + mov pc, lr + +/* + ************************************************************************* + * + * CPU_init_critical registers + * + * setup important registers + * setup memory timing + * + ************************************************************************* + */ + +#if !defined(CONFIG_SKIP_LOWLEVEL_INIT) && \ + !defined(CONFIG_SKIP_LOWLEVEL_INIT_ONLY) +cpu_init_crit: + + mov ip, lr + /* + * before relocating, we have to setup RAM timing + * because memory timing is board-dependent, you will + * find a lowlevel_init.S in your board directory. + */ + bl lowlevel_init + mov lr, ip + + mov pc, lr +#endif /* CONFIG_SKIP_LOWLEVEL_INIT */ -- cgit 1.2.3-korg