-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
arm/imx6q: add core definitions and low-level debug uart
It adds the core definitions and low-level debug uart support for imx6q. Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
- Loading branch information
Shawn Guo
authored and
Arnd Bergmann
committed
Oct 31, 2011
1 parent
7d740f8
commit bac89d7
Showing
12 changed files
with
118 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
/* | ||
* Copyright 2011 Freescale Semiconductor, Inc. | ||
* Copyright 2011 Linaro Ltd. | ||
* | ||
* The code contained herein is licensed under the GNU General Public | ||
* License. You may obtain a copy of the GNU General Public License | ||
* Version 2 or later at the following locations: | ||
* | ||
* http://www.opensource.org/licenses/gpl-license.html | ||
* http://www.gnu.org/copyleft/gpl.html | ||
*/ | ||
|
||
#include <linux/init.h> | ||
#include <asm/page.h> | ||
#include <asm/sizes.h> | ||
#include <asm/mach/map.h> | ||
#include <mach/hardware.h> | ||
|
||
static struct map_desc imx_lluart_desc = { | ||
#ifdef CONFIG_DEBUG_IMX6Q_UART | ||
.virtual = MX6Q_IO_P2V(MX6Q_UART4_BASE_ADDR), | ||
.pfn = __phys_to_pfn(MX6Q_UART4_BASE_ADDR), | ||
.length = MX6Q_UART4_SIZE, | ||
.type = MT_DEVICE, | ||
#endif | ||
}; | ||
|
||
void __init imx_lluart_map_io(void) | ||
{ | ||
if (imx_lluart_desc.virtual) | ||
iotable_init(&imx_lluart_desc, 1); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
/* | ||
* Copyright 2011 Freescale Semiconductor, Inc. All Rights Reserved. | ||
* Copyright 2011 Linaro Ltd. | ||
* | ||
* The code contained herein is licensed under the GNU General Public | ||
* License. You may obtain a copy of the GNU General Public License | ||
* Version 2 or later at the following locations: | ||
* | ||
* http://www.opensource.org/licenses/gpl-license.html | ||
* http://www.gnu.org/copyleft/gpl.html | ||
*/ | ||
|
||
#ifndef __MACH_MX6Q_H__ | ||
#define __MACH_MX6Q_H__ | ||
|
||
#define MX6Q_IO_P2V(x) IMX_IO_P2V(x) | ||
#define MX6Q_IO_ADDRESS(x) IOMEM(MX6Q_IO_P2V(x)) | ||
|
||
/* | ||
* The following are the blocks that need to be statically mapped. | ||
* For other blocks, the base address really should be retrieved from | ||
* device tree. | ||
*/ | ||
#define MX6Q_SCU_BASE_ADDR 0x00a00000 | ||
#define MX6Q_SCU_SIZE 0x1000 | ||
#define MX6Q_CCM_BASE_ADDR 0x020c4000 | ||
#define MX6Q_CCM_SIZE 0x4000 | ||
#define MX6Q_ANATOP_BASE_ADDR 0x020c8000 | ||
#define MX6Q_ANATOP_SIZE 0x1000 | ||
#define MX6Q_UART4_BASE_ADDR 0x021f0000 | ||
#define MX6Q_UART4_SIZE 0x4000 | ||
|
||
#endif /* __MACH_MX6Q_H__ */ |