ARM: tegra: board: Add missing tegra_smmu_init()
[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_PQ7,
134                 .end    = TEGRA_GPIO_PQ7,
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_PU6);
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",        37000000,       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", 0x34),
258 };
259
260 /* On A01, Left Speaker is moved to 0x34 */
261 static struct i2c_board_info __initdata roth_codec_tfa9887L_info_a01 = {
262         I2C_BOARD_INFO("tfa9887L", 0x34),
263 };
264 #endif
265
266 static void roth_i2c_init(void)
267 {
268         struct board_info board_info;
269
270         tegra_get_board_info(&board_info);
271
272         tegra11_i2c_device1.dev.platform_data = &roth_i2c1_platform_data;
273         tegra11_i2c_device2.dev.platform_data = &roth_i2c2_platform_data;
274         tegra11_i2c_device3.dev.platform_data = &roth_i2c3_platform_data;
275         tegra11_i2c_device4.dev.platform_data = &roth_i2c4_platform_data;
276         tegra11_i2c_device5.dev.platform_data = &roth_i2c5_platform_data;
277
278         platform_device_register(&tegra11_i2c_device5);
279         platform_device_register(&tegra11_i2c_device4);
280         platform_device_register(&tegra11_i2c_device3);
281         platform_device_register(&tegra11_i2c_device2);
282         platform_device_register(&tegra11_i2c_device1);
283
284         i2c_register_board_info(0, &rt5640_board_info, 1);
285         i2c_register_board_info(0, &roth_codec_tfa9887R_info, 1);
286
287         if (board_info.fab >= BOARD_FAB_A01)
288                 i2c_register_board_info(0, &roth_codec_tfa9887L_info_a01, 1);
289         else
290                 i2c_register_board_info(0, &roth_codec_tfa9887L_info, 1);
291 }
292
293 static struct platform_device *roth_uart_devices[] __initdata = {
294         &tegra_uarta_device,
295         &tegra_uartb_device,
296         &tegra_uartc_device,
297         &tegra_uartd_device,
298 };
299 static struct uart_clk_parent uart_parent_clk[] = {
300         [0] = {.name = "clk_m"},
301         [1] = {.name = "pll_p"},
302 #ifndef CONFIG_TEGRA_PLLM_RESTRICTED
303         [2] = {.name = "pll_m"},
304 #endif
305 };
306
307 static struct tegra_uart_platform_data roth_uart_pdata;
308 static struct tegra_uart_platform_data roth_loopback_uart_pdata;
309
310 static void __init uart_debug_init(void)
311 {
312         int debug_port_id;
313
314         debug_port_id = uart_console_debug_init(3);
315         if (debug_port_id < 0)
316                 return;
317
318         roth_uart_devices[debug_port_id] = uart_console_debug_device;
319 }
320
321 static void __init roth_uart_init(void)
322 {
323         struct clk *c;
324         int i;
325
326         for (i = 0; i < ARRAY_SIZE(uart_parent_clk); ++i) {
327                 c = tegra_get_clock_by_name(uart_parent_clk[i].name);
328                 if (IS_ERR_OR_NULL(c)) {
329                         pr_err("Not able to get the clock for %s\n",
330                                                 uart_parent_clk[i].name);
331                         continue;
332                 }
333                 uart_parent_clk[i].parent_clk = c;
334                 uart_parent_clk[i].fixed_clk_rate = clk_get_rate(c);
335         }
336         roth_uart_pdata.parent_clk_list = uart_parent_clk;
337         roth_uart_pdata.parent_clk_count = ARRAY_SIZE(uart_parent_clk);
338         roth_loopback_uart_pdata.parent_clk_list = uart_parent_clk;
339         roth_loopback_uart_pdata.parent_clk_count =
340                                                 ARRAY_SIZE(uart_parent_clk);
341         roth_loopback_uart_pdata.is_loopback = true;
342         tegra_uarta_device.dev.platform_data = &roth_uart_pdata;
343         tegra_uartb_device.dev.platform_data = &roth_uart_pdata;
344         tegra_uartc_device.dev.platform_data = &roth_uart_pdata;
345         tegra_uartd_device.dev.platform_data = &roth_uart_pdata;
346
347         /* Register low speed only if it is selected */
348         if (!is_tegra_debug_uartport_hs())
349                 uart_debug_init();
350
351         platform_add_devices(roth_uart_devices,
352                                 ARRAY_SIZE(roth_uart_devices));
353 }
354
355 static struct resource tegra_rtc_resources[] = {
356         [0] = {
357                 .start = TEGRA_RTC_BASE,
358                 .end = TEGRA_RTC_BASE + TEGRA_RTC_SIZE - 1,
359                 .flags = IORESOURCE_MEM,
360         },
361         [1] = {
362                 .start = INT_RTC,
363                 .end = INT_RTC,
364                 .flags = IORESOURCE_IRQ,
365         },
366 };
367
368 static struct platform_device tegra_rtc_device = {
369         .name = "tegra_rtc",
370         .id   = -1,
371         .resource = tegra_rtc_resources,
372         .num_resources = ARRAY_SIZE(tegra_rtc_resources),
373 };
374
375 static struct tegra_asoc_platform_data roth_audio_pdata = {
376         .gpio_spkr_en           = TEGRA_GPIO_SPKR_EN,
377         .gpio_hp_det            = TEGRA_GPIO_HP_DET,
378         .gpio_hp_mute           = -1,
379         .gpio_int_mic_en        = TEGRA_GPIO_INT_MIC_EN,
380         .gpio_ext_mic_en        = TEGRA_GPIO_EXT_MIC_EN,
381         .gpio_ldo1_en           = TEGRA_GPIO_LDO1_EN,
382         .gpio_codec1 = TEGRA_GPIO_CODEC1_EN,
383         .gpio_codec2 = TEGRA_GPIO_CODEC2_EN,
384         .gpio_codec3 = TEGRA_GPIO_CODEC3_EN,
385         .i2s_param[HIFI_CODEC]  = {
386                 .audio_port_id  = 1,
387                 .is_i2s_master  = 1,
388                 .i2s_mode       = TEGRA_DAIFMT_I2S,
389         },
390         .i2s_param[BT_SCO]      = {
391                 .audio_port_id  = 3,
392                 .is_i2s_master  = 1,
393                 .i2s_mode       = TEGRA_DAIFMT_DSP_A,
394         },
395 };
396
397 static struct platform_device roth_audio_device = {
398         .name   = "tegra-snd-rt5640",
399         .id     = 0,
400         .dev    = {
401                 .platform_data = &roth_audio_pdata,
402         },
403 };
404
405 static struct platform_device tegra_camera = {
406         .name = "tegra_camera",
407         .id = -1,
408 };
409
410 static struct platform_device *roth_devices[] __initdata = {
411         &tegra_pmu_device,
412         &tegra_rtc_device,
413         &tegra_udc_device,
414 #if defined(CONFIG_TEGRA_AVP)
415         &tegra_avp_device,
416 #endif
417         &tegra_camera,
418 #if defined(CONFIG_CRYPTO_DEV_TEGRA_SE)
419         &tegra11_se_device,
420 #endif
421         &tegra_ahub_device,
422         &tegra_dam_device0,
423         &tegra_dam_device1,
424         &tegra_dam_device2,
425         &tegra_i2s_device1,
426         &tegra_i2s_device3,
427         &tegra_i2s_device4,
428         &tegra_spdif_device,
429         &spdif_dit_device,
430         &bluetooth_dit_device,
431         &roth_audio_device,
432         &tegra_hda_device,
433 #if defined(CONFIG_CRYPTO_DEV_TEGRA_AES)
434         &tegra_aes_device,
435 #endif
436 };
437
438 #ifdef CONFIG_USB_SUPPORT
439 static struct tegra_usb_platform_data tegra_udc_pdata = {
440         .port_otg = true,
441         .has_hostpc = true,
442         .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
443         .op_mode = TEGRA_USB_OPMODE_DEVICE,
444         .u_data.dev = {
445                 .vbus_pmu_irq = 0,
446                 .vbus_gpio = -1,
447                 .charging_supported = false,
448                 .remote_wakeup_supported = false,
449         },
450         .u_cfg.utmi = {
451                 .hssync_start_delay = 0,
452                 .elastic_limit = 16,
453                 .idle_wait_delay = 17,
454                 .term_range_adj = 6,
455                 .xcvr_setup = 8,
456                 .xcvr_lsfslew = 2,
457                 .xcvr_lsrslew = 2,
458                 .xcvr_setup_offset = 0,
459                 .xcvr_use_fuses = 1,
460         },
461 };
462
463 static struct tegra_usb_platform_data tegra_ehci1_utmi_pdata = {
464         .port_otg = true,
465         .has_hostpc = true,
466         .unaligned_dma_buf_supported = false,
467         .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
468         .op_mode = TEGRA_USB_OPMODE_HOST,
469         .u_data.host = {
470                 .vbus_gpio = -1,
471                 .hot_plug = true,
472                 .remote_wakeup_supported = true,
473                 .power_off_on_suspend = false,
474         },
475         .u_cfg.utmi = {
476                 .hssync_start_delay = 0,
477                 .elastic_limit = 16,
478                 .idle_wait_delay = 17,
479                 .term_range_adj = 6,
480                 .xcvr_setup = 15,
481                 .xcvr_lsfslew = 2,
482                 .xcvr_lsrslew = 2,
483                 .xcvr_setup_offset = 0,
484                 .xcvr_use_fuses = 1,
485         },
486 };
487
488 static struct tegra_usb_platform_data tegra_ehci3_utmi_pdata = {
489         .port_otg = false,
490         .has_hostpc = true,
491         .unaligned_dma_buf_supported = false,
492         .phy_intf = TEGRA_USB_PHY_INTF_UTMI,
493         .op_mode = TEGRA_USB_OPMODE_HOST,
494         .u_data.host = {
495                 .vbus_gpio = -1,
496                 .hot_plug = true,
497                 .remote_wakeup_supported = true,
498                 .power_off_on_suspend = false,
499         },
500         .u_cfg.utmi = {
501         .hssync_start_delay = 0,
502                 .elastic_limit = 16,
503                 .idle_wait_delay = 17,
504                 .term_range_adj = 6,
505                 .xcvr_setup = 8,
506                 .xcvr_lsfslew = 2,
507                 .xcvr_lsrslew = 2,
508                 .xcvr_setup_offset = 0,
509                 .xcvr_use_fuses = 1,
510         },
511 };
512
513 static struct tegra_usb_otg_data tegra_otg_pdata = {
514         .ehci_device = &tegra_ehci1_device,
515         .ehci_pdata = &tegra_ehci1_utmi_pdata,
516 };
517
518 static void roth_usb_init(void)
519 {
520         tegra_otg_device.dev.platform_data = &tegra_otg_pdata;
521         platform_device_register(&tegra_otg_device);
522
523         /* Setup the udc platform data */
524         tegra_udc_device.dev.platform_data = &tegra_udc_pdata;
525
526         tegra_ehci3_device.dev.platform_data = &tegra_ehci3_utmi_pdata;
527         platform_device_register(&tegra_ehci3_device);
528 }
529
530 #else
531 static void roth_usb_init(void) { }
532 #endif
533
534 static void roth_audio_init(void)
535 {
536         struct board_info board_info;
537
538         tegra_get_board_info(&board_info);
539
540         roth_audio_pdata.codec_name = "rt5640.0-001c";
541         roth_audio_pdata.codec_dai_name = "rt5640-aif1";
542 }
543
544
545 static void __init tegra_roth_init(void)
546 {
547         tegra_clk_init_from_table(roth_clk_init_table);
548         tegra_smmu_init();
549         tegra_soc_device_init("roth");
550         tegra_enable_pinmux();
551         roth_pinmux_init();
552         roth_i2c_init();
553         roth_usb_init();
554         roth_uart_init();
555         roth_audio_init();
556         platform_add_devices(roth_devices, ARRAY_SIZE(roth_devices));
557         //tegra_ram_console_debug_init();
558         tegra_io_dpd_init();
559         roth_regulator_init();
560         roth_sdhci_init();
561         roth_suspend_init();
562         roth_emc_init();
563         roth_edp_init();
564         roth_panel_init();
565         roth_kbc_init();
566         roth_pmon_init();
567 #ifdef CONFIG_BT_BLUESLEEP
568         roth_setup_bluesleep();
569         roth_setup_bt_rfkill();
570 #elif defined CONFIG_BLUEDROID_PM
571         roth_setup_bluedroid_pm();
572 #endif
573         tegra_release_bootloader_fb();
574 #ifdef CONFIG_TEGRA_WDT_RECOVERY
575         tegra_wdt_recovery_init();
576 #endif
577         tegra_serial_debug_init(TEGRA_UARTD_BASE, INT_WDT_CPU, NULL, -1, -1);
578         roth_sensors_init();
579         roth_soctherm_init();
580         roth_fan_init();
581 }
582
583 static void __init roth_ramconsole_reserve(unsigned long size)
584 {
585         tegra_ram_console_debug_reserve(SZ_1M);
586 }
587
588 static void __init tegra_roth_dt_init(void)
589 {
590         tegra_roth_init();
591
592 #ifdef CONFIG_USE_OF
593         of_platform_populate(NULL,
594                 of_default_bus_match_table, NULL, NULL);
595 #endif
596 }
597
598 static void __init tegra_roth_reserve(void)
599 {
600 #if defined(CONFIG_NVMAP_CONVERT_CARVEOUT_TO_IOVMM)
601         /* 1920*1200*4*2 = 18432000 bytes */
602         tegra_reserve(0, SZ_16M + SZ_2M, SZ_4M);
603 #else
604         tegra_reserve(SZ_128M, SZ_16M + SZ_2M, SZ_4M);
605 #endif
606         roth_ramconsole_reserve(SZ_1M);
607 }
608
609 static const char * const roth_dt_board_compat[] = {
610         "nvidia,roth",
611         NULL
612 };
613
614 MACHINE_START(ROTH, "roth")
615         .atag_offset    = 0x100,
616         .smp            = smp_ops(tegra_smp_ops),
617         .map_io         = tegra_map_common_io,
618         .reserve        = tegra_roth_reserve,
619         .init_early     = tegra11x_init_early,
620         .init_irq       = tegra_init_irq,
621         .handle_irq     = gic_handle_irq,
622         .timer          = &tegra_timer,
623         .init_machine   = tegra_roth_dt_init,
624         .restart        = tegra_assert_system_reset,
625         .dt_compat      = roth_dt_board_compat,
626 MACHINE_END