Tegra: Cardhu: Added dtv device to cardhu board
Adam Jiang [Wed, 30 Nov 2011 05:52:35 +0000 (14:52 +0900)]
Added dtv device to cardhu board

Fixed Bug 904626
Fixed Bug 881303

Change-Id: If1560cc8101403720c46b318c76326621c889154
Signed-off-by: Adam Jiang <chaoj@nvidia.com>
Reviewed-on: http://git-master/r/68145
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Reviewed-on: http://git-master/r/74892
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Varun Colbert <vcolbert@nvidia.com>
Tested-by: Varun Colbert <vcolbert@nvidia.com>

arch/arm/mach-tegra/board-cardhu.c

index a2be52f..18ed959 100644 (file)
@@ -41,6 +41,7 @@
 #include <linux/nfc/pn544.h>
 
 #include <sound/wm8903.h>
+#include <media/tegra_dtv.h>
 
 #include <mach/clk.h>
 #include <mach/iomap.h>
@@ -513,6 +514,16 @@ static void __init cardhu_spi_init(void)
        }
 }
 
+static void __init cardhu_dtv_init(void)
+{
+       struct board_info board_info;
+
+       tegra_get_board_info(&board_info);
+
+       if (board_info.board_id == BOARD_E1186)
+               platform_device_register(&tegra_dtv_device);
+}
+
 static struct resource tegra_rtc_resources[] = {
        [0] = {
                .start = TEGRA_RTC_BASE,
@@ -971,6 +982,7 @@ static void __init tegra_cardhu_init(void)
        tegra_ram_console_debug_init();
        cardhu_sdhci_init();
        cardhu_regulator_init();
+       cardhu_dtv_init();
        cardhu_gpio_switch_regulator_init();
        cardhu_suspend_init();
        cardhu_power_off_init();