mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 05:36:24 +00:00
[ARM] pxa/aspenite: add support for console uart
Signed-off-by: Eric Miao <eric.miao@marvell.com>
This commit is contained in:
parent
56422554d2
commit
9c291f0f83
1 changed files with 12 additions and 0 deletions
|
@ -10,15 +10,27 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
|
#include <linux/kernel.h>
|
||||||
|
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
#include <mach/addr-map.h>
|
#include <mach/addr-map.h>
|
||||||
|
#include <mach/mfp-pxa168.h>
|
||||||
|
#include <mach/pxa168.h>
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
|
static unsigned long common_pin_config[] __initdata = {
|
||||||
|
/* UART1 */
|
||||||
|
GPIO107_UART1_RXD,
|
||||||
|
GPIO108_UART1_TXD,
|
||||||
|
};
|
||||||
|
|
||||||
static void __init common_init(void)
|
static void __init common_init(void)
|
||||||
{
|
{
|
||||||
|
mfp_config(ARRAY_AND_SIZE(common_pin_config));
|
||||||
|
|
||||||
|
pxa168_add_uart(1);
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_START(ASPENITE, "PXA168-based Aspenite Development Platform")
|
MACHINE_START(ASPENITE, "PXA168-based Aspenite Development Platform")
|
||||||
|
|
Loading…
Reference in a new issue