-
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: mxs: Change duart device to use amba-pl011
The mxs duart is actually an amba-pl011 device. This commit changes the duart device code to dynamically allocate amba-pl011 device, so that drivers/serial/amba-pl011.c can be used on mxs. Signed-off-by: Shawn Guo <shawn.guo@freescale.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
- Loading branch information
Shawn Guo
authored and
Sascha Hauer
committed
Jan 12, 2011
1 parent
48f76ed
commit dbc4245
Showing
11 changed files
with
88 additions
and
68 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
config MXS_HAVE_PLATFORM_DUART | ||
config MXS_HAVE_AMBA_DUART | ||
bool | ||
select ARM_AMBA | ||
|
||
config MXS_HAVE_PLATFORM_FEC | ||
bool |
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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
obj-$(CONFIG_MXS_HAVE_PLATFORM_DUART) += platform-duart.o | ||
obj-$(CONFIG_MXS_HAVE_AMBA_DUART) += amba-duart.o | ||
obj-$(CONFIG_MXS_HAVE_PLATFORM_FEC) += platform-fec.o |
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,40 @@ | ||
/* | ||
* Copyright (C) 2009-2010 Pengutronix | ||
* Uwe Kleine-Koenig <u.kleine-koenig@pengutronix.de> | ||
* | ||
* Copyright 2010 Freescale Semiconductor, Inc. All Rights Reserved. | ||
* | ||
* This program is free software; you can redistribute it and/or modify it under | ||
* the terms of the GNU General Public License version 2 as published by the | ||
* Free Software Foundation. | ||
*/ | ||
#include <asm/irq.h> | ||
#include <mach/mx23.h> | ||
#include <mach/mx28.h> | ||
#include <mach/devices-common.h> | ||
|
||
#define MXS_AMBA_DUART_DEVICE(name, soc) \ | ||
const struct amba_device name##_device __initconst = { \ | ||
.dev = { \ | ||
.init_name = "duart", \ | ||
}, \ | ||
.res = { \ | ||
.start = soc ## _DUART_BASE_ADDR, \ | ||
.end = (soc ## _DUART_BASE_ADDR) + SZ_8K - 1, \ | ||
.flags = IORESOURCE_MEM, \ | ||
}, \ | ||
.irq = {soc ## _INT_DUART, NO_IRQ}, \ | ||
} | ||
|
||
#ifdef CONFIG_SOC_IMX23 | ||
MXS_AMBA_DUART_DEVICE(mx23_duart, MX23); | ||
#endif | ||
|
||
#ifdef CONFIG_SOC_IMX28 | ||
MXS_AMBA_DUART_DEVICE(mx28_duart, MX28); | ||
#endif | ||
|
||
int __init mxs_add_duart(const struct amba_device *dev) | ||
{ | ||
return mxs_add_amba_device(dev); | ||
} |
This file was deleted.
Oops, something went wrong.
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