ARM: tegra: remove stale nvidia atag handler
[pandora-kernel.git] / arch / arm / mach-tegra / board-harmony.c
1 /*
2  * arch/arm/mach-tegra/board-harmony.c
3  *
4  * Copyright (C) 2010 Google, Inc.
5  *
6  * This software is licensed under the terms of the GNU General Public
7  * License version 2, as published by the Free Software Foundation, and
8  * may be copied, distributed, and modified under those terms.
9  *
10  * This program is distributed in the hope that it will be useful,
11  * but WITHOUT ANY WARRANTY; without even the implied warranty of
12  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13  * GNU General Public License for more details.
14  *
15  */
16
17 #include <linux/kernel.h>
18 #include <linux/init.h>
19 #include <linux/platform_device.h>
20 #include <linux/serial_8250.h>
21 #include <linux/clk.h>
22 #include <linux/dma-mapping.h>
23 #include <linux/pda_power.h>
24 #include <linux/io.h>
25
26 #include <asm/mach-types.h>
27 #include <asm/mach/arch.h>
28 #include <asm/mach/time.h>
29 #include <asm/setup.h>
30
31 #include <mach/iomap.h>
32 #include <mach/irqs.h>
33
34 #include "board.h"
35 #include "board-harmony.h"
36 #include "clock.h"
37
38 static struct plat_serial8250_port debug_uart_platform_data[] = {
39         {
40                 .membase        = IO_ADDRESS(TEGRA_UARTD_BASE),
41                 .mapbase        = TEGRA_UARTD_BASE,
42                 .irq            = INT_UARTD,
43                 .flags          = UPF_BOOT_AUTOCONF,
44                 .iotype         = UPIO_MEM,
45                 .regshift       = 2,
46                 .uartclk        = 216000000,
47         }, {
48                 .flags          = 0
49         }
50 };
51
52 static struct platform_device debug_uart = {
53         .name = "serial8250",
54         .id = PLAT8250_DEV_PLATFORM,
55         .dev = {
56                 .platform_data = debug_uart_platform_data,
57         },
58 };
59
60 static struct platform_device *harmony_devices[] __initdata = {
61         &debug_uart,
62 };
63
64 static void __init tegra_harmony_fixup(struct machine_desc *desc,
65         struct tag *tags, char **cmdline, struct meminfo *mi)
66 {
67         mi->nr_banks = 2;
68         mi->bank[0].start = PHYS_OFFSET;
69         mi->bank[0].size = 448 * SZ_1M;
70         mi->bank[1].start = SZ_512M;
71         mi->bank[1].size = SZ_512M;
72 }
73
74 static __initdata struct tegra_clk_init_table harmony_clk_init_table[] = {
75         /* name         parent          rate            enabled */
76         { "uartd",      "pll_p",        216000000,      true },
77         { NULL,         NULL,           0,              0},
78 };
79
80 static void __init tegra_harmony_init(void)
81 {
82         tegra_clk_init_from_table(harmony_clk_init_table);
83
84         harmony_pinmux_init();
85
86         platform_add_devices(harmony_devices, ARRAY_SIZE(harmony_devices));
87 }
88
89 MACHINE_START(HARMONY, "harmony")
90         .boot_params  = 0x00000100,
91         .fixup          = tegra_harmony_fixup,
92         .map_io         = tegra_map_common_io,
93         .init_early     = tegra_init_early,
94         .init_irq       = tegra_init_irq,
95         .timer          = &tegra_timer,
96         .init_machine   = tegra_harmony_init,
97 MACHINE_END