Permalink
Browse files

Add a TF201 mach type (CARDHU typeid)

TF201 machtype allows us to use machine_is_tf201().
Due to bootloader, we need to use the cardhu machtype.
This is OK, because MACH_TF201 requires !MACH_CARDHU.
  • Loading branch information...
1 parent bf24c26 commit cbdf1403453c6a6304c25df94b4f371d229b9030 @EnJens committed Apr 12, 2012
@@ -1031,7 +1031,7 @@ static struct platform_device tf201_charger_device = {
static int __init tf201_charger_late_init(void)
{
// required because bootloader identifies as cardhu
- if (!machine_is_cardhu())
+ if (!machine_is_tf201())
return 0;
platform_device_register(&tf201_charger_device);
@@ -836,7 +836,7 @@ static void __init tegra_tf201_reserve(void)
// Has to be cardhu to match bootloader.
// This board is NOT cardhu, but derived from it.
-MACHINE_START(CARDHU, "cardhu")
+MACHINE_START(TF201, "tf201")
.boot_params = 0x80000100,
.map_io = tegra_map_common_io,
.reserve = tegra_tf201_reserve,
@@ -1056,6 +1056,7 @@ t55 MACH_T55 T55 3433
bio3k MACH_BIO3K BIO3K 3434
expressct MACH_EXPRESSCT EXPRESSCT 3435
cardhu MACH_CARDHU CARDHU 3436
+tf201 MACH_TF201 TF201 3436
aruba MACH_ARUBA ARUBA 3437
bonaire MACH_BONAIRE BONAIRE 3438
nuc700evb MACH_NUC700EVB NUC700EVB 3439
@@ -153,7 +153,7 @@ static int tegra_rt5631_init(struct snd_soc_pcm_runtime *rtd)
int ret;
printk("%s+\n", __func__);
- if (machine_is_cardhu() || machine_is_ventana()) {
+ if (machine_is_tf201() || machine_is_cardhu() || machine_is_ventana()) {
ret = snd_soc_add_controls(codec, cardhu_controls,
ARRAY_SIZE(cardhu_controls));
if (ret < 0)

0 comments on commit cbdf140

Please sign in to comment.