genode/repos/os/src/drivers/platform/spec/imx53/src.h
Stefan Kalkowski 6106e64aac base: remove include/spec/* other than ISA
This commit moves the headers residing in `repos/base/include/spec/*/drivers`
to `repos/base/include/drivers/defs` or repos/base/include/drivers/uart`
respectively. The first one contains definitions about board-specific MMIO
iand RAM addresses, or IRQ lines. While the latter contains device driver
code for UART devices. Those definitions are used by driver implementations
in `repos/base-hw`, `repos/os`, and `repos/dde-linux`, which now need to
include them more explicitely.

This work is a step in the direction of reducing 'SPEC' identifiers overall.

Ref #2403
2017-05-31 13:16:01 +02:00

44 lines
1.1 KiB
C++

/*
* \brief System reset controller register description
* \author Nikolay Golikov <nik@ksyslabs.org>
* \author Stefan Kalkowski <stefan.kalkowski@genode-labs.com>
* \date 2013-04-29
*/
/*
* Copyright (C) 2013-2017 Genode Labs GmbH
*
* This file is part of the Genode OS framework, which is distributed
* under the terms of the GNU Affero General Public License version 3.
*/
#ifndef _DRIVERS__PLATFORM__SPEC__IMX53__SRC_H_
#define _DRIVERS__PLATFORM__SPEC__IMX53__SRC_H_
/* Genode includes */
#include <util/mmio.h>
#include <drivers/defs/imx53.h>
#include <base/attached_io_mem_dataspace.h>
class Src : public Genode::Attached_io_mem_dataspace,
Genode::Mmio
{
private:
struct Ctrl_reg : Register<0x0, 32>
{
struct Ipu_rst : Bitfield<3, 1> { };
};
public:
Src(Genode::Env &env)
: Genode::Attached_io_mem_dataspace(env, Imx53::SRC_BASE,
Imx53::SRC_SIZE),
Genode::Mmio((Genode::addr_t)local_addr<void>()) {}
void reset_ipu() { write<Ctrl_reg::Ipu_rst>(1); }
};
#endif /* _DRIVERS__PLATFORM__SPEC__IMX53__SRC_H_ */