diff options
author | Shawn Guo <shawn.guo@freescale.com> | 2011-02-17 14:28:50 +0800 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2011-02-17 12:03:10 +0100 |
commit | edca314f27c984f353a5129253d8d5241b82c517 (patch) | |
tree | 7bc8f43447556e14fb2c9d84efeec89a086a3df7 /arch/arm/mach-mxs/devices-mx23.h | |
parent | 08ec1130d4652ba1cab5ce0a423bcb2229c7a60b (diff) | |
download | kernel_samsung_smdk4412-edca314f27c984f353a5129253d8d5241b82c517.zip kernel_samsung_smdk4412-edca314f27c984f353a5129253d8d5241b82c517.tar.gz kernel_samsung_smdk4412-edca314f27c984f353a5129253d8d5241b82c517.tar.bz2 |
ARM: mx23: dynamically allocate mx23 auart device
i.MX23 Reference Manaul starts auart index from 1 than 0. Changing
the index to start from 0 requires corresponding changes on base
address, irq, and iomux definitions, and will probably confuse people
who reads codes and hardware documents together.
This patch introduced the field 'hwid' to distinguish the driver id
and controller id. These two ids are different on mx23 while
identical on mx28.
Signed-off-by: Shawn Guo <shawn.guo@freescale.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch/arm/mach-mxs/devices-mx23.h')
-rw-r--r-- | arch/arm/mach-mxs/devices-mx23.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/arch/arm/mach-mxs/devices-mx23.h b/arch/arm/mach-mxs/devices-mx23.h index 1256788..c4d4773 100644 --- a/arch/arm/mach-mxs/devices-mx23.h +++ b/arch/arm/mach-mxs/devices-mx23.h @@ -14,3 +14,8 @@ extern const struct amba_device mx23_duart_device __initconst; #define mx23_add_duart() \ mxs_add_duart(&mx23_duart_device) + +extern const struct mxs_auart_data mx23_auart_data[] __initconst; +#define mx23_add_auart(id) mxs_add_auart(&mx23_auart_data[id]) +#define mx23_add_auart0() mx23_add_auart(0) +#define mx23_add_auart1() mx23_add_auart(1) |