diff options
| author | Doug Zobel <dzobel1@motorola.com> | 2013-11-15 14:29:07 -0600 |
|---|---|---|
| committer | James Wylder <jwylder@motorola.com> | 2014-03-05 17:46:52 -0600 |
| commit | d2a782003a6047da120a33e6f8ee6fd33bb825d6 (patch) | |
| tree | 8d20bd4ecda62a06e98993c4108456bc1acb0d0b /arch/arm/mach-omap2/board-minnow-cpcap-client.c | |
| parent | 32fd2d36d2464056d4522a9c02797b7c2b2e884f (diff) | |
| download | olio-linux-3.10-d2a782003a6047da120a33e6f8ee6fd33bb825d6.tar.xz olio-linux-3.10-d2a782003a6047da120a33e6f8ee6fd33bb825d6.zip | |
CW integration and minnow bringup
* create minnow machine type
* create Android makefile
* add pre-commit syntax check
* enable -Werror
* Add drivers: CPCAP, TPS65xxx, m4sensorhub, atmxt, lm3535,
usb gadget, minnow display, TI 12xx wireless
Change-Id: I7962f5e1256715f2452aed5a62a4f2f2383d5046
Diffstat (limited to 'arch/arm/mach-omap2/board-minnow-cpcap-client.c')
| -rw-r--r-- | arch/arm/mach-omap2/board-minnow-cpcap-client.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/arch/arm/mach-omap2/board-minnow-cpcap-client.c b/arch/arm/mach-omap2/board-minnow-cpcap-client.c new file mode 100644 index 00000000000..b2fd25f8ce3 --- /dev/null +++ b/arch/arm/mach-omap2/board-minnow-cpcap-client.c @@ -0,0 +1,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]); + +} |