blob: b2fd25f8ce3c676b498b21a5d6db5fa477d78383 (
plain)
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
|
/*
* arch/arm/mach-omap2/board-minnow-cpcap-client.c
*
* Copyright (C) 2009-2010 Motorola, 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 <linux/kernel.h>
#include <linux/device.h>
#include <linux/irq.h>
#include <linux/platform_device.h>
#include <linux/spi/cpcap.h>
#include <omap34xx.h>
/*
* CPCAP devcies are common for different HW Rev.
*
*/
static struct platform_device cpcap_usb_device = {
.name = "cpcap_usb",
.id = -1,
.dev.platform_data = NULL,
};
static struct platform_device cpcap_usb_det_device = {
.name = "cpcap_usb_det",
.id = -1,
.dev = {
.platform_data = NULL,
},
};
static struct platform_device *cpcap_devices[] = {
&cpcap_usb_device,
&cpcap_usb_det_device,
};
void __init minnow_cpcap_client_init(void)
{
int i;
for (i = 0; i < ARRAY_SIZE(cpcap_devices); i++)
cpcap_device_register(cpcap_devices[i]);
}
|