2013-01-25 16:56:39 +01:00
|
|
|
/*
|
|
|
|
* \brief Timer for kernel
|
|
|
|
* \author Martin Stein
|
|
|
|
* \date 2012-04-23
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright (C) 2012 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.
|
|
|
|
*/
|
|
|
|
|
2013-12-03 11:10:13 +01:00
|
|
|
#ifndef _EXYNOS5__TIMER_H_
|
|
|
|
#define _EXYNOS5__TIMER_H_
|
2013-01-25 16:56:39 +01:00
|
|
|
|
|
|
|
/* core includes */
|
|
|
|
#include <board.h>
|
2013-04-04 15:00:46 +02:00
|
|
|
#include <timer/exynos_mct.h>
|
2013-01-25 16:56:39 +01:00
|
|
|
|
|
|
|
namespace Kernel
|
|
|
|
{
|
|
|
|
/**
|
|
|
|
* Kernel timer
|
|
|
|
*/
|
2013-04-04 15:00:46 +02:00
|
|
|
class Timer : public Exynos_mct::Timer
|
2013-01-25 16:56:39 +01:00
|
|
|
{
|
|
|
|
public:
|
|
|
|
|
2013-04-04 15:00:46 +02:00
|
|
|
enum { IRQ = Genode::Board::MCT_IRQ_L0 };
|
2013-01-25 16:56:39 +01:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Constructor
|
|
|
|
*/
|
2013-04-04 15:00:46 +02:00
|
|
|
Timer() : Exynos_mct::Timer(Genode::Board::MCT_MMIO_BASE,
|
|
|
|
Genode::Board::MCT_CLOCK) { }
|
2013-01-25 16:56:39 +01:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2013-12-03 11:10:13 +01:00
|
|
|
#endif /* _EXYNOS5__TIMER_H_ */
|