mirror of
https://github.com/genodelabs/genode.git
synced 2024-12-23 23:42:32 +00:00
1208d14681
* Adds public timeout syscalls to kernel API * Kernel::timeout installs a timeout and binds a signal context to it that shall trigger once the timeout expired * With Kernel::timeout_max_us, one can get the maximum installable timeout * Kernel::timeout_age_us returns the time that has passed since the calling threads last timeout installation * Removes all device specific back-ends for the base-hw timer driver and implements a generic back-end taht uses the kernel timeout API * Adds assertions about the kernel timer frequency that originate from the requirements of the the kernel timeout API and adjusts all timers accordingly by using the their internal dividers * Introduces the Kernel::Clock class. As member of each Kernel::Cpu object it combines the management of the timer of the CPU with a timeout scheduler. Not only the timeout API uses the timeout scheduler but also the CPUs job scheduler for installing scheduling timeouts. * Introduces the Kernel::time_t type for timer tic values and values inherited from timer tics (like microseconds). Fixes #1972
73 lines
1.6 KiB
C++
73 lines
1.6 KiB
C++
/*
|
|
* \brief Board definitions for the Freescale i.MX6
|
|
* \author Nikolay Golikov <nik@ksyslabs.org>
|
|
* \author Josef Soentgen
|
|
* \author Martin Stein
|
|
* \date 2014-02-25
|
|
*/
|
|
|
|
/*
|
|
* Copyright (C) 2014-2016 Ksys Labs LLC
|
|
* Copyright (C) 2014-2016 Genode Labs GmbH
|
|
*
|
|
* This file is part of the Genode OS framework, which is distributed
|
|
* under the terms of the GNU General Public License version 2.
|
|
*/
|
|
|
|
#ifndef _INCLUDE__SPEC__IMX6__DRIVERS__BOARD_BASE_H_
|
|
#define _INCLUDE__SPEC__IMX6__DRIVERS__BOARD_BASE_H_
|
|
|
|
namespace Genode
|
|
{
|
|
/**
|
|
* i.MX6 motherboard
|
|
*/
|
|
struct Board_base;
|
|
}
|
|
|
|
struct Genode::Board_base
|
|
{
|
|
enum {
|
|
/* normal RAM */
|
|
RAM0_BASE = 0x10000000,
|
|
RAM0_SIZE = 0x80000000,
|
|
|
|
/* device IO memory */
|
|
MMIO_BASE = 0x00000000,
|
|
MMIO_SIZE = 0x10000000,
|
|
|
|
UART_1_IRQ = 58,
|
|
UART_1_MMIO_BASE = 0x02020000,
|
|
UART_1_MMIO_SIZE = 0x00004000,
|
|
|
|
/* timer */
|
|
EPIT_2_IRQ = 89,
|
|
EPIT_2_MMIO_BASE = 0x020d4000,
|
|
EPIT_2_MMIO_SIZE = 0x00004000,
|
|
|
|
/* ARM IP Bus control */
|
|
AIPS_1_MMIO_BASE = 0x0207c000,
|
|
AIPS_1_MMIO_SIZE = 0x00004000,
|
|
AIPS_2_MMIO_BASE = 0x0217c000,
|
|
AIPS_2_MMIO_SIZE = 0x00004000,
|
|
|
|
/* CPU */
|
|
CORTEX_A9_PRIVATE_MEM_BASE = 0x00a00000,
|
|
CORTEX_A9_PRIVATE_MEM_SIZE = 0x00002000,
|
|
CORTEX_A9_PRIVATE_TIMER_CLK = 395037500,
|
|
CORTEX_A9_PRIVATE_TIMER_DIV = 170,
|
|
|
|
/* L2 cache controller */
|
|
PL310_MMIO_BASE = 0x00a02000,
|
|
PL310_MMIO_SIZE = 0x00001000,
|
|
|
|
/* CPU cache */
|
|
CACHE_LINE_SIZE_LOG2 = 5,
|
|
|
|
/* wether board provides ARM security extension */
|
|
SECURITY_EXTENSION = 1,
|
|
};
|
|
};
|
|
|
|
#endif /* _INCLUDE__SPEC__IMX6__DRIVERS__BOARD_BASE_H_ */
|