| 1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
 | /*
 * linux/arch/arm/mach-omap2/board-minnow.c
 *
 * Copyright (C) 2013 Motorola Mobility, Inc.
 *
 * 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/mach/arch.h>
#include <asm/mach-types.h>
#include <linux/of_irq.h>
#include <linux/of_platform.h>
#include <linux/input/touch_platform.h>
#include <linux/usb/musb.h>
#include <linux/usb/phy.h>
#include <linux/usb/nop-usb-xceiv.h>
#include <linux/ti_wilink_st.h>
#include "mux.h"
#include "common.h"
#include "dss-common.h"
#include "control.h"
#include "sdram-toshiba-hynix-numonyx.h"
static struct of_device_id omap_dt_match_table[] __initdata = {
	{ .compatible = "simple-bus", },
	{ .compatible = "ti,omap-infra", },
	{ }
};
static const char *omap3_gp_boards_compat[] __initdata = {
	"mot,omap3-minnow",
	NULL,
};
struct ti_st_plat_data wilink_pdata = {
	.nshutdown_gpio = 83,
	.dev_name = "/dev/ttyO1",
	.flow_cntrl = 1,
	.baud_rate = 3000000,
	.suspend = NULL,
	.resume = NULL,
};
static struct platform_device wl18xx_device = {
	.name              = "kim",
	.id                = -1,
	.dev.platform_data = &wilink_pdata,
};
static struct platform_device hci_tty_device = {
	.name = "hci_tty",
	.id = -1,
};
static inline void __init minnow_init_btwilink(void)
{
	platform_device_register(&wl18xx_device);
	platform_device_register(&hci_tty_device);
}
static void __init minnow_init(void)
{
	of_platform_populate(NULL, omap_dt_match_table, NULL, NULL);
	omap_sdrc_init(JEDEC_JESD209A_sdrc_params, JEDEC_JESD209A_sdrc_params);
	omap3_enable_usim_buffer(); /* Needed for GPIOs in USIM block */
	omap_minnow_display_init();
	minnow_init_btwilink();
}
MACHINE_START(MINNOW, "minnow")
	.atag_offset    = 0x100,
	.reserve        = omap_reserve,
	.map_io         = omap3_map_io,
	.init_early     = omap3630_init_early,
	.init_irq       = omap_intc_of_init,
	.handle_irq     = omap3_intc_handle_irq,
	.init_machine   = minnow_init,
	.init_late      = omap3630_init_late,
	.init_time      = omap3_sync32k_timer_init,
	.dt_compat	    = omap3_gp_boards_compat,
	.restart        = omap3xxx_restart,
MACHINE_END
 |