sd_card: move defs from wand_quad to imx6 header

This commit is contained in:
Christian Helmuth 2017-06-21 11:36:29 +02:00 committed by Norman Feske
parent f1bd097568
commit 4d11b7e5a8
2 changed files with 34 additions and 5 deletions

View File

@ -0,0 +1,28 @@
/*
* \brief MMIO and IRQ definitions common to i.MX6 SoC
* \author Nikolay Golikov <nik@ksyslabs.org>
* \author Josef Soentgen
* \author Martin Stein
* \date 2017-06-20
*/
/*
* Copyright (C) 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 _INCLUDE__DRIVERS__DEFS__IMX6_H_
#define _INCLUDE__DRIVERS__DEFS__IMX6_H_
namespace Imx6 {
enum {
/* SD host controller */
SDHC_IRQ = 54,
SDHC_MMIO_BASE = 0x02190000,
SDHC_MMIO_SIZE = 0x00004000,
};
};
#endif /* _INCLUDE__DRIVERS__DEFS__IMX6_H_ */

View File

@ -17,7 +17,13 @@
#ifndef _INCLUDE__DRIVERS__DEFS__WAND_QUAD_H_
#define _INCLUDE__DRIVERS__DEFS__WAND_QUAD_H_
/* Genode includes */
#include <drivers/defs/imx6.h>
namespace Wand_quad {
using namespace Imx6;
enum {
/* normal RAM */
RAM0_BASE = 0x10000000,
@ -31,11 +37,6 @@ namespace Wand_quad {
UART_1_MMIO_BASE = 0x02020000,
UART_1_MMIO_SIZE = 0x00004000,
/* SD host controller */
SDHC_IRQ = 54,
SDHC_MMIO_BASE = 0x02190000,
SDHC_MMIO_SIZE = 0x00004000,
/* timer */
EPIT_2_IRQ = 89,
EPIT_2_MMIO_BASE = 0x020d4000,