2013-04-08 17:05:44 +00:00
|
|
|
/*
|
2017-04-28 13:27:26 +00:00
|
|
|
* \brief MMIO and IRQ definitions for the Raspberry Pi
|
2013-04-08 17:05:44 +00:00
|
|
|
* \author Norman Feske
|
|
|
|
* \date 2013-04-05
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
2017-02-20 12:23:52 +00:00
|
|
|
* Copyright (C) 2013-2017 Genode Labs GmbH
|
2013-04-08 17:05:44 +00:00
|
|
|
*
|
|
|
|
* This file is part of the Genode OS framework, which is distributed
|
2017-02-20 12:23:52 +00:00
|
|
|
* under the terms of the GNU Affero General Public License version 3.
|
2013-04-08 17:05:44 +00:00
|
|
|
*/
|
|
|
|
|
2017-04-28 13:27:26 +00:00
|
|
|
#ifndef _INCLUDE__DRIVERS__DEFS__RPI_H_
|
|
|
|
#define _INCLUDE__DRIVERS__DEFS__RPI_H_
|
2013-04-08 17:05:44 +00:00
|
|
|
|
|
|
|
/* Genode includes */
|
|
|
|
#include <util/mmio.h>
|
|
|
|
|
2017-04-28 13:27:26 +00:00
|
|
|
namespace Rpi {
|
2015-03-04 20:12:14 +00:00
|
|
|
enum {
|
|
|
|
RAM_0_BASE = 0x00000000,
|
|
|
|
RAM_0_SIZE = 0x10000000, /* XXX ? */
|
|
|
|
|
|
|
|
MMIO_0_BASE = 0x20000000,
|
|
|
|
MMIO_0_SIZE = 0x02000000,
|
|
|
|
|
2020-08-21 11:00:04 +00:00
|
|
|
SYSTEM_TIMER_IRQ = 1,
|
2015-03-04 20:12:14 +00:00
|
|
|
SYSTEM_TIMER_MMIO_BASE = 0x20003000,
|
|
|
|
SYSTEM_TIMER_MMIO_SIZE = 0x1000,
|
|
|
|
SYSTEM_TIMER_CLOCK = 1000000,
|
|
|
|
|
|
|
|
PL011_0_IRQ = 57,
|
|
|
|
PL011_0_MMIO_BASE = 0x20201000,
|
|
|
|
PL011_0_MMIO_SIZE = 0x1000,
|
|
|
|
PL011_0_CLOCK = 3000000,
|
|
|
|
|
2019-05-21 14:27:37 +00:00
|
|
|
PL011_1_IRQ = 61,
|
|
|
|
PL011_1_MMIO_BASE = 0x20215000,
|
|
|
|
PL011_1_MMIO_SIZE = 0x1000,
|
|
|
|
PL011_1_CLOCK = 3000000,
|
|
|
|
|
2015-03-04 20:12:14 +00:00
|
|
|
IRQ_CONTROLLER_BASE = 0x2000b200,
|
|
|
|
IRQ_CONTROLLER_SIZE = 0x100,
|
|
|
|
|
2015-08-24 20:29:15 +00:00
|
|
|
GPIO_CONTROLLER_BASE = 0x20200000,
|
|
|
|
GPIO_CONTROLLER_SIZE = 0x1000,
|
|
|
|
|
2015-03-04 20:12:14 +00:00
|
|
|
USB_DWC_OTG_BASE = 0x20980000,
|
|
|
|
USB_DWC_OTG_SIZE = 0x20000,
|
|
|
|
|
|
|
|
/* USB host controller */
|
2020-08-21 11:00:04 +00:00
|
|
|
DWC_IRQ = 9,
|
2015-03-04 20:12:14 +00:00
|
|
|
|
2016-03-24 17:14:20 +00:00
|
|
|
/* SD card */
|
|
|
|
SDHCI_BASE = MMIO_0_BASE + 0x300000,
|
|
|
|
SDHCI_SIZE = 0x100,
|
|
|
|
SDHCI_IRQ = 62,
|
2013-04-08 17:05:44 +00:00
|
|
|
};
|
2015-03-04 20:12:14 +00:00
|
|
|
|
|
|
|
enum Videocore_cache_policy { NON_COHERENT = 0,
|
|
|
|
COHERENT = 1,
|
|
|
|
L2_ONLY = 2,
|
|
|
|
UNCACHED = 3 };
|
|
|
|
};
|
2013-04-08 17:05:44 +00:00
|
|
|
|
2017-04-28 13:27:26 +00:00
|
|
|
#endif /* _INCLUDE__DRIVERS__DEFS__RPI_H_ */
|