arm: tegra: Add MAX1749 platform device
Sumit Sharma [Wed, 17 Oct 2012 03:49:43 +0000 (08:49 +0530)]
Added MAX1749 vibrator platform device in cardhu board file

Bug 1154522

Change-Id: I6464c0cf9739bae91d9c4d8b86b86be5a57a5b57
Signed-off-by: Sumit Sharma <sumsharma@nvidia.com>
Reviewed-on: http://git-master/r/144518
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>

Rebase-Id: R0ab3f3e775d50ff33de06210660eb370c70568d8

arch/arm/mach-tegra/board-common.c
arch/arm/mach-tegra/board-common.h

index 54c4f61..b44c9f2 100644 (file)
@@ -34,6 +34,16 @@ extern struct clk *debug_uart_clk;
 
 struct platform_device *uart_console_debug_device = NULL;
 
+struct platform_device vibrator_device = {
+       .name = "tegra-vibrator",
+       .id = -1,
+};
+
+int tegra_vibrator_init(void)
+{
+       return platform_device_register(&vibrator_device);
+}
+
 int uart_console_debug_init(int default_debug_port)
 {
        int debug_port_id;
index fdacefd..05cd4e8 100644 (file)
@@ -23,5 +23,6 @@
 
 extern struct platform_device *uart_console_debug_device;
 int  uart_console_debug_init(int defaul_debug_port);
+int tegra_vibrator_init(void);
 
 #endif