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>

Rebase-Id: R196a7008839a603978fb713d2c63679575bdcf32

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

index 950d3eb..fa305c8 100644 (file)
@@ -40,6 +40,7 @@
 #include <linux/nfc/pn544.h>
 
 #include <sound/wm8903.h>
+#include <media/tegra_dtv.h>
 
 #include <mach/clk.h>
 #include <mach/iomap.h>
@@ -544,6 +545,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,
@@ -962,6 +973,7 @@ static void __init tegra_cardhu_init(void)
        platform_add_devices(cardhu_devices, ARRAY_SIZE(cardhu_devices));
        cardhu_sdhci_init();
        cardhu_regulator_init();
+       cardhu_dtv_init();
        cardhu_gpio_switch_regulator_init();
        cardhu_suspend_init();
        cardhu_power_off_init();