avionic design with actual uboot and tooling
submodule of avionic design uboot bootloader and with included tools to get you started , read readme.md and readme-tk1-loader.md
This commit is contained in:
12
u-boot/arch/arm/mach-highbank/Kconfig
Normal file
12
u-boot/arch/arm/mach-highbank/Kconfig
Normal file
@@ -0,0 +1,12 @@
|
||||
if ARCH_HIGHBANK
|
||||
|
||||
config SYS_BOARD
|
||||
default "highbank"
|
||||
|
||||
config SYS_SOC
|
||||
default "highbank"
|
||||
|
||||
config SYS_CONFIG_NAME
|
||||
default "highbank"
|
||||
|
||||
endif
|
||||
8
u-boot/arch/arm/mach-highbank/Makefile
Normal file
8
u-boot/arch/arm/mach-highbank/Makefile
Normal file
@@ -0,0 +1,8 @@
|
||||
#
|
||||
# (C) Copyright 2000-2006
|
||||
# Wolfgang Denk, DENX Software Engineering, wd@denx.de.
|
||||
#
|
||||
# SPDX-License-Identifier: GPL-2.0+
|
||||
#
|
||||
|
||||
obj-y := timer.o
|
||||
34
u-boot/arch/arm/mach-highbank/timer.c
Normal file
34
u-boot/arch/arm/mach-highbank/timer.c
Normal file
@@ -0,0 +1,34 @@
|
||||
/*
|
||||
* Copyright 2010-2011 Calxeda, Inc.
|
||||
*
|
||||
* Based on arm926ejs/mx27/timer.c
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0+
|
||||
*/
|
||||
|
||||
#include <common.h>
|
||||
#include <asm/io.h>
|
||||
#include <asm/arch-armv7/systimer.h>
|
||||
|
||||
#undef SYSTIMER_BASE
|
||||
#define SYSTIMER_BASE 0xFFF34000 /* Timer 0 and 1 base */
|
||||
|
||||
static struct systimer *systimer_base = (struct systimer *)SYSTIMER_BASE;
|
||||
|
||||
/*
|
||||
* Start the timer
|
||||
*/
|
||||
int timer_init(void)
|
||||
{
|
||||
/*
|
||||
* Setup timer0
|
||||
*/
|
||||
writel(0, &systimer_base->timer0control);
|
||||
writel(SYSTIMER_RELOAD, &systimer_base->timer0load);
|
||||
writel(SYSTIMER_RELOAD, &systimer_base->timer0value);
|
||||
writel(SYSTIMER_EN | SYSTIMER_32BIT | SYSTIMER_PRESC_256,
|
||||
&systimer_base->timer0control);
|
||||
|
||||
return 0;
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user