mirror of
https://github.com/torvalds/linux.git
synced 2024-12-26 12:52:30 +00:00
4312a7ef9c
The timer code relies on #defines from mach/iomap.h, cpu_is_*() checks, and a global irq #define. All this makes this file impossible to compile in a mult-target build. Therefore, make a sys_timer struct for each SoC so that machine descriptors can reference the correct timer. Then go through and replace all the defines with raw values that are passed to a common initialization function. This paves the way to adding DT support to this code as well as allows us to compile this file on multiple targets at the same time. Signed-off-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: David Brown <davidb@codeaurora.org>
22 lines
780 B
C
22 lines
780 B
C
/* Copyright (c) 2012, The Linux Foundation. All rights reserved.
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License version 2 and
|
|
* only version 2 as published by the Free Software Foundation.
|
|
*
|
|
* 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_COMMON_H
|
|
#define __MACH_COMMON_H
|
|
|
|
extern struct sys_timer msm7x01_timer;
|
|
extern struct sys_timer msm7x30_timer;
|
|
extern struct sys_timer msm8x60_timer;
|
|
extern struct sys_timer msm8960_timer;
|
|
extern struct sys_timer qsd8x50_timer;
|
|
|
|
#endif
|