![Stephen Warren](/assets/img/avatar_default.png)
Now that the only field in struct sys_timer is .init, delete the struct, and replace the machine descriptor .timer field with the initialization function itself. This will enable moving timer drivers into drivers/clocksource without having to place a public prototype of each struct sys_timer object into include/linux; the intent is to create a single of_clocksource_init() function that determines which timer driver to initialize by scanning the device dtree, much like the proposed irqchip_init() at: http://www.spinics.net/lists/arm-kernel/msg203686.html Includes mach-omap2 fixes from Igor Grinberg. Tested-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Stephen Warren <swarren@nvidia.com>
52 lines
1.3 KiB
C
52 lines
1.3 KiB
C
/*
|
|
* linux/arch/arm/mach-mmp/avengers_lite.c
|
|
*
|
|
* Support for the Marvell PXA168-based Avengers lite Development Platform.
|
|
*
|
|
* Copyright (C) 2009-2010 Marvell International Ltd.
|
|
*
|
|
* 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
|
|
* publishhed by the Free Software Foundation.
|
|
*/
|
|
|
|
#include <linux/init.h>
|
|
#include <linux/kernel.h>
|
|
#include <linux/platform_device.h>
|
|
|
|
#include <asm/mach-types.h>
|
|
#include <asm/mach/arch.h>
|
|
#include <mach/addr-map.h>
|
|
#include <mach/mfp-pxa168.h>
|
|
#include <mach/pxa168.h>
|
|
#include <mach/irqs.h>
|
|
|
|
|
|
#include "common.h"
|
|
#include <linux/delay.h>
|
|
|
|
/* Avengers lite MFP configurations */
|
|
static unsigned long avengers_lite_pin_config_V16F[] __initdata = {
|
|
/* DEBUG_UART */
|
|
GPIO88_UART2_TXD,
|
|
GPIO89_UART2_RXD,
|
|
};
|
|
|
|
static void __init avengers_lite_init(void)
|
|
{
|
|
mfp_config(ARRAY_AND_SIZE(avengers_lite_pin_config_V16F));
|
|
|
|
/* on-chip devices */
|
|
pxa168_add_uart(2);
|
|
platform_device_register(&pxa168_device_gpio);
|
|
}
|
|
|
|
MACHINE_START(AVENGERS_LITE, "PXA168 Avengers lite Development Platform")
|
|
.map_io = mmp_map_io,
|
|
.nr_irqs = MMP_NR_IRQS,
|
|
.init_irq = pxa168_init_irq,
|
|
.init_time = pxa168_timer_init,
|
|
.init_machine = avengers_lite_init,
|
|
.restart = pxa168_restart,
|
|
MACHINE_END
|