mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 19:53:59 +08:00
6bb27d7349
Now that the only field in struct sys_timer is .init, delete the struct, and replace the machine descriptor .timer field with the initialization function itself. This will enable moving timer drivers into drivers/clocksource without having to place a public prototype of each struct sys_timer object into include/linux; the intent is to create a single of_clocksource_init() function that determines which timer driver to initialize by scanning the device dtree, much like the proposed irqchip_init() at: http://www.spinics.net/lists/arm-kernel/msg203686.html Includes mach-omap2 fixes from Igor Grinberg. Tested-by: Robert Jarzmik <robert.jarzmik@free.fr> Signed-off-by: Stephen Warren <swarren@nvidia.com>
60 lines
1.6 KiB
C
60 lines
1.6 KiB
C
/*
|
|
* arch/arm/mach-tegra/board.h
|
|
*
|
|
* Copyright (C) 2010 Google, Inc.
|
|
*
|
|
* Author:
|
|
* Colin Cross <ccross@google.com>
|
|
* Erik Gilling <konkers@google.com>
|
|
*
|
|
* This software is licensed under the terms of the GNU General Public
|
|
* License version 2, as published by the Free Software Foundation, and
|
|
* may be copied, distributed, and modified under those terms.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
*/
|
|
|
|
#ifndef __MACH_TEGRA_BOARD_H
|
|
#define __MACH_TEGRA_BOARD_H
|
|
|
|
#include <linux/types.h>
|
|
|
|
void tegra_assert_system_reset(char mode, const char *cmd);
|
|
|
|
void __init tegra20_init_early(void);
|
|
void __init tegra30_init_early(void);
|
|
void __init tegra_map_common_io(void);
|
|
void __init tegra_init_irq(void);
|
|
void __init tegra_dt_init_irq(void);
|
|
int __init tegra_pcie_init(bool init_port0, bool init_port1);
|
|
|
|
void tegra_init_late(void);
|
|
|
|
#ifdef CONFIG_DEBUG_FS
|
|
int tegra_clk_debugfs_init(void);
|
|
#else
|
|
static inline int tegra_clk_debugfs_init(void) { return 0; }
|
|
#endif
|
|
|
|
#if defined(CONFIG_ARCH_TEGRA_2x_SOC) && defined(CONFIG_DEBUG_FS)
|
|
int __init tegra_powergate_debugfs_init(void);
|
|
#else
|
|
static inline int tegra_powergate_debugfs_init(void) { return 0; }
|
|
#endif
|
|
|
|
int __init harmony_regulator_init(void);
|
|
#ifdef CONFIG_TEGRA_PCI
|
|
int __init harmony_pcie_init(void);
|
|
#else
|
|
static inline int harmony_pcie_init(void) { return 0; }
|
|
#endif
|
|
|
|
void __init tegra_paz00_wifikill_init(void);
|
|
|
|
extern void tegra_init_timer(void);
|
|
#endif
|