ARM: tegra: restructuring battery EDP init code
[linux-3.10.git] / arch / arm / mach-tegra / board-roth.c
1 /*
2  * arch/arm/mach-tegra/board-roth.c
3  *
4  * Copyright (c) 2012, NVIDIA CORPORATION.  All rights reserved.
5  *
6  * This program is free software; you can redistribute it and/or modify
7  * it under the terms of the GNU General Public License version 2 as
8  * published by the Free Software Foundation.
9  *
10  * This program is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
13  * more details.
14  *
15  * You should have received a copy of the GNU General Public License along
16  * with this program; if not, write to the Free Software Foundation, Inc.,
17  * 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
18  */
19
20 #include <linux/kernel.h>
21 #include <linux/init.h>
22 #include <linux/slab.h>
23 #include <linux/ctype.h>
24 #include <linux/platform_device.h>
25 #include <linux/clk.h>
26 #include <linux/serial_8250.h>
27 #include <linux/i2c.h>
28 #include <linux/dma-mapping.h>
29 #include <linux/delay.h>
30 #include <linux/i2c-tegra.h>
31 #include <linux/gpio.h>
32 #include <linux/input.h>
33 #include <linux/platform_data/tegra_usb.h>
34 #include <linux/tegra_uart.h>
35 #include <linux/memblock.h>
36 #include <linux/rfkill-gpio.h>
37 #include <linux/skbuff.h>
38 #include <linux/ti_wilink_st.h>
39 #include <linux/regulator/consumer.h>
40 #include <linux/max17048_battery.h>
41 #include <linux/leds.h>
42 #include <linux/i2c/at24.h>
43 #include <linux/of_platform.h>
44 #include <asm/hardware/gic.h>
45
46 #include <mach/clk.h>
47 #include <mach/iomap.h>
48 #include <mach/irqs.h>
49 #include <mach/pinmux.h>
50 #include <mach/pinmux-tegra30.h>
51 #include <mach/iomap.h>
52 #include <mach/io.h>
53 #include <mach/io_dpd.h>
54 #include <mach/i2s.h>
55 #include <mach/tegra_asoc_pdata.h>
56 #include <asm/mach-types.h>
57 #include <asm/mach/arch.h>
58 #include <mach/usb_phy.h>
59 #include <mach/gpio-tegra.h>
60 #include <mach/tegra_fiq_debugger.h>
61 #include <mach/edp.h>
62
63 #include "board.h"
64 #include "board-common.h"
65 #include "clock.h"
66 #include "board-roth.h"
67 #include "devices.h"
68 #include "gpio-names.h"
69 #include "fuse.h"
70 #include "pm.h"
71 #include "common.h"
72 #include "tegra-board-id.h"
73
74 #ifdef CONFIG_BT_BLUESLEEP
75 static struct rfkill_gpio_platform_data roth_bt_rfkill_pdata = {
76                 .name           = "bt_rfkill",
77                 .shutdown_gpio  = TEGRA_GPIO_PQ7,
78                 .type           = RFKILL_TYPE_BLUETOOTH,
79 };
80
81 static struct platform_device roth_bt_rfkill_device = {
82         .name = "rfkill_gpio",
83         .id             = -1,
84         .dev = {
85                 .platform_data = &roth_bt_rfkill_pdata,
86         },
87 };
88
89 static struct resource roth_bluesleep_resources[] = {
90         [0] = {
91                 .name = "gpio_host_wake",
92                         .start  = TEGRA_GPIO_PU6,
93                         .end    = TEGRA_GPIO_PU6,
94                         .flags  = IORESOURCE_IO,
95         },
96         [1] = {
97                 .name = "gpio_ext_wake",
98                         .start  = TEGRA_GPIO_PEE1,
99                         .end    = TEGRA_GPIO_PEE1,
100                         .flags  = IORESOURCE_IO,
101         },
102         [2] = {
103                 .name = "host_wake",
104                         .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
105         },
106 };
107
108 static struct platform_device roth_bluesleep_device = {
109         .name           = "bluesleep",
110         .id             = -1,
111         .num_resources  = ARRAY_SIZE(roth_bluesleep_resources),
112         .resource       = roth_bluesleep_resources,
113 };
114
115 static noinline void __init roth_setup_bt_rfkill(void)
116 {
117                 roth_bt_rfkill_pdata.reset_gpio = TEGRA_GPIO_PQ6;
118         platform_device_register(&roth_bt_rfkill_device);
119 }
120
121 static noinline void __init roth_setup_bluesleep(void)
122 {
123         roth_bluesleep_resources[2].start =
124                 roth_bluesleep_resources[2].end =
125                         gpio_to_irq(TEGRA_GPIO_PU6);
126         platform_device_register(&roth_bluesleep_device);
127         return;
128 }
129 #elif defined CONFIG_BLUEDROID_PM
130 static struct resource roth_bluedroid_pm_resources[] = {
131         [0] = {
132                 .name   = "shutdown_gpio",
133                 .start  = TEGRA_GPIO_PU0,
134                 .end    = TEGRA_GPIO_PU0,
135                 .flags  = IORESOURCE_IO,
136         },
137         [1] = {
138                 .name = "host_wake",
139                 .flags  = IORESOURCE_IRQ | IORESOURCE_IRQ_HIGHEDGE,
140         },
141         [2] = {
142                 .name = "gpio_ext_wake",
143                 .start  = TEGRA_GPIO_PEE1,
144                 .end    = TEGRA_GPIO_PEE1,
145                 .flags  = IORESOURCE_IO,
146         },
147         [3] = {
148                 .name = "gpio_host_wake",
149                 .start  = TEGRA_GPIO_PU6,
150                 .end    = TEGRA_GPIO_PU6,
151                 .flags  = IORESOURCE_IO,
152         },
153 };
154
155 static struct platform_device roth_bluedroid_pm_device = {
156         .name = "bluedroid_pm",
157         .id             = 0,
158         .num_resources  = ARRAY_SIZE(roth_bluedroid_pm_resources),
159         .resource       = roth_bluedroid_pm_resources,
160 };
161
162 static noinline void __init roth_setup_bluedroid_pm(void)
163 {
164         roth_bluedroid_pm_resources[1].start =
165                 roth_bluedroid_pm_resources[1].end =
166                                 gpio_to_irq(TEGRA_GPIO_PQ6);
167         platform_device_register(&roth_bluedroid_pm_device);
168 }
169 #endif
170 static __initdata struct tegra_clk_init_table roth_clk_init_table[] = {
171         /* name         parent          rate            enabled */
172         { "pll_m",      NULL,           0,              false},
173         { "hda",        "pll_p",        108000000,      false},
174         { "hda2codec_2x", "pll_p",      48000000,       false},
175         { "pwm",        "pll_p",        3187500,        false},
176         { "blink",      "clk_32k",      32768,          true},
177         { "i2s1",       "pll_a_out0",   0,              false},
178         { "i2s3",       "pll_a_out0",   0,              false},
179         { "i2s4",       "pll_a_out0",   0,              false},
180         { "spdif_out",  "pll_a_out0",   0,              false},
181         { "d_audio",    "clk_m",        12000000,       false},
182         { "dam0",       "clk_m",        12000000,       false},
183         { "dam1",       "clk_m",        12000000,       false},
184         { "dam2",       "clk_m",        12000000,       false},
185         { "audio1",     "i2s1_sync",    0,              false},
186         { "audio3",     "i2s3_sync",    0,              false},
187         /* Setting vi_sensor-clk to true for validation purpose, will imapact
188          * power, later set to be false.*/
189         { "vi_sensor",  "pll_p",        150000000,      false},
190         { "cilab",      "pll_p",        150000000,      false},
191         { "cilcd",      "pll_p",        150000000,      false},
192         { "cile",       "pll_p",        150000000,      false},
193         { "i2c1",       "pll_p",        3200000,        false},
194         { "i2c2",       "pll_p",        3200000,        false},
195         { "i2c3",       "pll_p",        3200000,        false},
196         { "i2c4",       "pll_p",        3200000,        false},
197         { "i2c5",       "pll_p",        3200000,        false},
198         { NULL,         NULL,           0,              0},
199 };
200
201 static struct tegra_i2c_platform_data roth_i2c1_platform_data = {
202         .adapter_nr     = 0,
203         .bus_count      = 1,
204         .bus_clk_rate   = { 100000, 0 },
205         .scl_gpio               = {TEGRA_GPIO_I2C1_SCL, 0},
206         .sda_gpio               = {TEGRA_GPIO_I2C1_SDA, 0},
207         .arb_recovery = arb_lost_recovery,
208 };
209
210 static struct tegra_i2c_platform_data roth_i2c2_platform_data = {
211         .adapter_nr     = 1,
212         .bus_count      = 1,
213         .bus_clk_rate   = { 100000, 0 },
214         .is_clkon_always = true,
215         .scl_gpio               = {TEGRA_GPIO_I2C2_SCL, 0},
216         .sda_gpio               = {TEGRA_GPIO_I2C2_SDA, 0},
217         .arb_recovery = arb_lost_recovery,
218 };
219
220 static struct tegra_i2c_platform_data roth_i2c3_platform_data = {
221         .adapter_nr     = 2,
222         .bus_count      = 1,
223         .bus_clk_rate   = { 100000, 0 },
224         .scl_gpio               = {TEGRA_GPIO_I2C3_SCL, 0},
225         .sda_gpio               = {TEGRA_GPIO_I2C3_SDA, 0},
226         .arb_recovery = arb_lost_recovery,
227 };
228
229 static struct tegra_i2c_platform_data roth_i2c4_platform_data = {
230         .adapter_nr     = 3,
231         .bus_count      = 1,
232         .bus_clk_rate   = { 10000, 0 },
233         .scl_gpio               = {TEGRA_GPIO_I2C4_SCL, 0},
234         .sda_gpio               = {TEGRA_GPIO_I2C4_SDA, 0},
235         .arb_recovery = arb_lost_recovery,
236 };
237
238 static struct tegra_i2c_platform_data roth_i2c5_platform_data = {
239         .adapter_nr     = 4,
240         .bus_count      = 1,
241         .bus_clk_rate   = { 400000, 0 },
242         .scl_gpio               = {TEGRA_GPIO_I2C5_SCL, 0},
243         .sda_gpio               = {TEGRA_GPIO_I2C5_SDA, 0},
244         .arb_recovery = arb_lost_recovery,
245 };
246
247 #if defined(CONFIG_ARCH_TEGRA_11x_SOC)
248 static struct i2c_board_info __initdata rt5640_board_info = {
249         I2C_BOARD_INFO("rt5640", 0x1c),
250 };
251
252 static struct i2c_board_info __initdata roth_codec_tfa9887R_info = {
253         I2C_BOARD_INFO("tfa9887R", 0x37),
254 };
255
256 static struct i2c_board_info __initdata roth_codec_tfa9887L_info = {
257         I2C_BOARD_INFO("tfa9887L", 0x36),
258 };
259 #endif
260
261 static void roth_i2c_init(void)
262 {
263         tegra11_i2c_device1.dev.platform_data = &roth_i2c1_platform_data;
264         tegra11_i2c_device2.dev.platform_data = &roth_i2c2_platform_data;
265         tegra11_i2c_device3.dev.platform_data = &roth_i2c3_platform_data;
266         tegra11_i2c_device4.dev.platform_data = &roth_i2c4_platform_data;
267         tegra11_i2c_device5.dev.platform_data = &roth_i2c5_platform_data;
268
269         platform_device_register(&tegra11_i2c_device5);
270         platform_device_register(&tegra11_i2c_device4);
271         platform_device_register(&tegra11_i2c_device3);
272         platform_device_register(&tegra11_i2c_device2);
273         platform_device_register(&tegra11_i2c_device1);
274
275         i2c_register_board_info(0, &rt5640_board_info, 1);
276         i2c_register_board_info(0, &roth_codec_tfa9887R_info, 1);
277         i2c_register_board_info(0, &roth_codec_tfa9887L_info, 1);
278 }
279
280 static struct platform_device *roth_uart_devices[] __initdata = {
281         &tegra_uarta_device,
282         &tegra_uartb_device,
283         &tegra_uartc_device,
284         &tegra_uartd_device,
285 };
286 static struct uart_clk_parent uart_parent_clk[] = {
287         [0] = {.name = "clk_m"},
288         [1] = {.name = "pll_p"},
289 #ifndef CONFIG_TEGRA_PLLM_RESTRICTED
290         [2] = {.name = "pll_m"},
291 #endif
292 };
293
294 static struct tegra_uart_platform_data roth_uart_pdata;
295 static struct tegra_uart_platform_data roth_loopback_uart_pdata;
296
297 static void __init uart_debug_init(void)
298 {
299         int debug_port_id;
300
301         debug_port_id = uart_console_debug_init(3);
302         if (debug_port_id < 0)
303                 return;
304
305         roth_uart_devices[debug_port_id] = uart_console_debug_device;
306 }
307
308 static void __init roth_uart_init(void)
309 {
310         struct clk *c;
311         int i;
312
313         for (i = 0; i < ARRAY_SIZE(uart_parent_clk); ++i) {
314                 c = tegra_get_clock_by_name(uart_parent_clk[i].name);
315                 if (IS_ERR_OR_NULL(c)) {
316                         pr_err("Not able to get the clock for %s\n",
317                                                 uart_parent_clk[i].name);
318                         continue;
319                 }
320                 uart_parent_clk[i].parent_clk = c;
321                 uart_parent_clk[i].fixed_clk_rate = clk_get_rate(c);
322         }
323         roth_uart_pdata.parent_clk_list = uart_parent_clk;
324         roth_uart_pdata.parent_clk_count = ARRAY_SIZE(uart_parent_clk);
325         roth_loopback_uart_pdata.parent_clk_list = uart_parent_clk;
326         roth_loopback_uart_pdata.parent_clk_count =
327                                                 ARRAY_SIZE(uart_parent_clk);
328         roth_loopback_uart_pdata.is_loopback = true;
329         tegra_uarta_device.dev.platform_data = &roth_uart_pdata;
330         tegra_uartb_device.dev.platform_data = &roth_uart_pdata;
331         tegra_uartc_device.dev.platform_data = &roth_uart_pdata;
332         tegra_uartd_device.dev.platform_data = &roth_uart_pdata;
333
334         /* Register low speed only if it is selected */
335         if (!is_tegra_debug_uartport_hs())
336                 uart_debug_init();
337
338         platform_add_devices(roth_uart_devices,
339                                 ARRAY_SIZE(roth_uart_devices));
340 }
341
342 static struct resource tegra_rtc_resources[] = {
343         [0] = {
344                 .start = TEGRA_RTC_BASE,
345                 .end = TEGRA_RTC_BASE + TEGRA_RTC_SIZE - 1,
346                 .flags = IORESOURCE_MEM,
347         },
348         [1] = {
349                 .start = INT_RTC,
350                 .end = INT_RTC,
351                 .flags = IORESOURCE_IRQ,
352         },
353 };
354
355 static struct platform_device tegra_rtc_device = {
356         .name = "tegra_rtc",
357         .id   = -1,
358         .resource = tegra_rtc_resources,
359         .num_resources = ARRAY_SIZE(tegra_rtc_resources),
360 };
361
362 static struct tegra_asoc_platform_data roth_audio_pdata = {
363         .gpio_spkr_en           = TEGRA_GPIO_SPKR_EN,
364         .gpio_hp_det            = TEGRA_GPIO_HP_DET,
365         .gpio_hp_mute           = -1,
366         .gpio_int_mic_en        = TEGRA_GPIO_INT_MIC_EN,
367         .gpio_ext_mic_en        = TEGRA_GPIO_EXT_MIC_EN,
368         .gpio_ldo1_en           = TEGRA_GPIO_LDO1_EN,
369         .gpio_codec1 = TEGRA_GPIO_CODEC1_EN,
370         .gpio_codec2 = TEGRA_GPIO_CODEC2_EN,
371         .gpio_codec3 = TEGRA_GPIO_CODEC3_EN,
372         .i2s_param[HIFI_CODEC]  = {
373                 .audio_port_id  = 1,
374                 .is_i2s_master  = 1,
375                 .i2s_mode       = TEGRA_DAIFMT_I2S,
376         },
377         .i2s_param[BT_SCO]      = {
378                 .audio_port_id  = 3,
379                 .is_i2s_master  = 1,
380                 .i2s_mode       = TEGRA_DAIFMT_DSP_A,
381         },
382 };
383
384 static struct platform_device roth_audio_device = {
385         .name   = "tegra-snd-rt5640",
386         .id     = 0,
387         .dev    = {
388                 .platform_data = &roth_audio_pdata,
389         },
390 };
391
392 static struct platform_device tegra_camera = {
393         .name = "tegra_camera",
394         .id = -1,
395 };
396
397 static struct platform_device *roth_devices[] __initdata = {
398         &tegra_pmu_device,
399         &tegra_rtc_device,
400         &tegra_udc_device,
401 #if defined(CONFIG_TEGRA_IOVMM_SMMU) || defined(CONFIG_TEGRA_IOMMU_SMMU)
402         &tegra_smmu_device,
403 #endif
404 #if defined(CONFIG_TEGRA_AVP)
405         &tegra_avp_device,
406 #endif
407         &tegra_camera,
408 #if defined(CONFIG_CRYPTO_DEV_TEGRA_SE)
409         &tegra11_se_device,
410 #endif
411         &tegra_ahub_device,
412         &tegra_dam_device0,
413         &tegra_dam_device1,
414         &tegra_dam_device2,
415         &tegra_i2s_device1,
416         &tegra_i2s_device3,
417         &tegra_i2s_device4,
418         &tegra_spdif_device,
419         &spdif_dit_device,
420         &bluetooth_dit_device,
421         &roth_audio_device,
422         &tegra_hda_device,
423 #if defined(CONFIG_CRYPTO_DEV_TEGRA_AES)
424         &tegra_aes_device,
425 #endif
426 };
427
428 #ifdef CONFIG_USB_SUPPORT
429 static struct tegra_usb_platform_data tegra_udc_pdata = {
430         .port_otg = true,
431         .has_hostpc = true,
432         .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
433         .op_mode = TEGRA_USB_OPMODE_DEVICE,
434         .u_data.dev = {
435                 .vbus_pmu_irq = 0,
436                 .vbus_gpio = -1,
437                 .charging_supported = false,
438                 .remote_wakeup_supported = false,
439         },
440         .u_cfg.utmi = {
441                 .hssync_start_delay = 0,
442                 .elastic_limit = 16,
443                 .idle_wait_delay = 17,
444                 .term_range_adj = 6,
445                 .xcvr_setup = 8,
446                 .xcvr_lsfslew = 2,
447                 .xcvr_lsrslew = 2,
448                 .xcvr_setup_offset = 0,
449                 .xcvr_use_fuses = 1,
450         },
451 };
452
453 static struct tegra_usb_platform_data tegra_ehci1_utmi_pdata = {
454         .port_otg = true,
455         .has_hostpc = true,
456         .unaligned_dma_buf_supported = false,
457         .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
458         .op_mode = TEGRA_USB_OPMODE_HOST,
459         .u_data.host = {
460                 .vbus_gpio = -1,
461                 .hot_plug = true,
462                 .remote_wakeup_supported = true,
463                 .power_off_on_suspend = false,
464         },
465         .u_cfg.utmi = {
466                 .hssync_start_delay = 0,
467                 .elastic_limit = 16,
468                 .idle_wait_delay = 17,
469                 .term_range_adj = 6,
470                 .xcvr_setup = 15,
471                 .xcvr_lsfslew = 2,
472                 .xcvr_lsrslew = 2,
473                 .xcvr_setup_offset = 0,
474                 .xcvr_use_fuses = 1,
475         },
476 };
477
478 static struct tegra_usb_platform_data tegra_ehci3_utmi_pdata = {
479         .port_otg = false,
480         .has_hostpc = true,
481         .unaligned_dma_buf_supported = false,
482         .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
483         .op_mode = TEGRA_USB_OPMODE_HOST,
484         .u_data.host = {
485                 .vbus_gpio = -1,
486                 .hot_plug = true,
487                 .remote_wakeup_supported = true,
488                 .power_off_on_suspend = false,
489         },
490         .u_cfg.utmi = {
491         .hssync_start_delay = 0,
492                 .elastic_limit = 16,
493                 .idle_wait_delay = 17,
494                 .term_range_adj = 6,
495                 .xcvr_setup = 8,
496                 .xcvr_lsfslew = 2,
497                 .xcvr_lsrslew = 2,
498                 .xcvr_setup_offset = 0,
499                 .xcvr_use_fuses = 1,
500         },
501 };
502
503 static struct tegra_usb_otg_data tegra_otg_pdata = {
504         .ehci_device = &tegra_ehci1_device,
505         .ehci_pdata = &tegra_ehci1_utmi_pdata,
506 };
507
508 static void roth_usb_init(void)
509 {
510         tegra_otg_device.dev.platform_data = &tegra_otg_pdata;
511         platform_device_register(&tegra_otg_device);
512
513         /* Setup the udc platform data */
514         tegra_udc_device.dev.platform_data = &tegra_udc_pdata;
515
516         tegra_ehci3_device.dev.platform_data = &tegra_ehci3_utmi_pdata;
517         platform_device_register(&tegra_ehci3_device);
518 }
519
520 #else
521 static void roth_usb_init(void) { }
522 #endif
523
524 static void roth_audio_init(void)
525 {
526         struct board_info board_info;
527
528         tegra_get_board_info(&board_info);
529
530         roth_audio_pdata.codec_name = "rt5640.0-001c";
531         roth_audio_pdata.codec_dai_name = "rt5640-aif1";
532 }
533
534
535 static void __init tegra_roth_init(void)
536 {
537         tegra_clk_init_from_table(roth_clk_init_table);
538         tegra_soc_device_init("roth");
539         tegra_enable_pinmux();
540         roth_pinmux_init();
541         roth_i2c_init();
542         roth_usb_init();
543         roth_uart_init();
544         roth_audio_init();
545         platform_add_devices(roth_devices, ARRAY_SIZE(roth_devices));
546         //tegra_ram_console_debug_init();
547         tegra_io_dpd_init();
548         roth_regulator_init();
549         roth_sdhci_init();
550         roth_suspend_init();
551         roth_emc_init();
552         roth_edp_init();
553         roth_panel_init();
554         roth_kbc_init();
555 #ifdef CONFIG_BT_BLUESLEEP
556         roth_setup_bluesleep();
557         roth_setup_bt_rfkill();
558 #elif defined CONFIG_BLUEDROID_PM
559         roth_setup_bluedroid_pm();
560 #endif
561         tegra_release_bootloader_fb();
562 #ifdef CONFIG_TEGRA_WDT_RECOVERY
563         tegra_wdt_recovery_init();
564 #endif
565         tegra_serial_debug_init(TEGRA_UARTD_BASE, INT_WDT_CPU, NULL, -1, -1);
566         roth_sensors_init();
567         roth_soctherm_init();
568 }
569
570 static void __init roth_ramconsole_reserve(unsigned long size)
571 {
572         tegra_ram_console_debug_reserve(SZ_1M);
573 }
574
575 static void __init tegra_roth_dt_init(void)
576 {
577         tegra_roth_init();
578
579 #ifdef CONFIG_USE_OF
580         of_platform_populate(NULL,
581                 of_default_bus_match_table, NULL, NULL);
582 #endif
583 }
584
585 static void __init tegra_roth_reserve(void)
586 {
587 #if defined(CONFIG_NVMAP_CONVERT_CARVEOUT_TO_IOVMM)
588         /* 1920*1200*4*2 = 18432000 bytes */
589         tegra_reserve(0, SZ_16M + SZ_2M, SZ_4M);
590 #else
591         tegra_reserve(SZ_128M, SZ_16M + SZ_2M, SZ_4M);
592 #endif
593         roth_ramconsole_reserve(SZ_1M);
594 }
595
596 static const char * const roth_dt_board_compat[] = {
597         "nvidia,roth",
598         NULL
599 };
600
601 MACHINE_START(ROTH, "roth")
602         .atag_offset    = 0x100,
603         .smp            = smp_ops(tegra_smp_ops),
604         .map_io         = tegra_map_common_io,
605         .reserve        = tegra_roth_reserve,
606         .init_early     = tegra11x_init_early,
607         .init_irq       = tegra_init_irq,
608         .handle_irq     = gic_handle_irq,
609         .timer          = &tegra_timer,
610         .init_machine   = tegra_roth_dt_init,
611         .restart        = tegra_assert_system_reset,
612         .dt_compat      = roth_dt_board_compat,
613 MACHINE_END