diff options
| author | Thierry Reding <treding@nvidia.com> | 2014-07-16 08:01:44 -0400 |
|---|---|---|
| committer | Thierry Reding <treding@nvidia.com> | 2014-07-17 08:58:41 -0400 |
| commit | a2686766c81e18fb1ab9375cf5d3cbd54a3bed2c (patch) | |
| tree | 230cbea98cf8173dbf40ce7b994dce83fe56ed3b /include/soc | |
| parent | dd849e581d7d23e1729c23bb2d6b85360ce4dd9d (diff) | |
soc/tegra: Implement runtime check for Tegra SoCs
Subsequent patches will move some of the initialization code from SoC
setup code to regular initcalls. To prevent breakage on other SoCs in
multi-platform builds, these initcalls need to check that they indeed
run on Tegra.
Signed-off-by: Thierry Reding <treding@nvidia.com>
Diffstat (limited to 'include/soc')
| -rw-r--r-- | include/soc/tegra/common.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/include/soc/tegra/common.h b/include/soc/tegra/common.h new file mode 100644 index 000000000000..fc13a9a134e9 --- /dev/null +++ b/include/soc/tegra/common.h | |||
| @@ -0,0 +1,14 @@ | |||
| 1 | /* | ||
| 2 | * Copyright (C) 2014 NVIDIA Corporation | ||
| 3 | * | ||
| 4 | * This program is free software; you can redistribute it and/or modify | ||
| 5 | * it under the terms of the GNU General Public License version 2 as | ||
| 6 | * published by the Free Software Foundation. | ||
| 7 | */ | ||
| 8 | |||
| 9 | #ifndef __SOC_TEGRA_COMMON_H__ | ||
| 10 | #define __SOC_TEGRA_COMMON_H__ | ||
| 11 | |||
| 12 | bool soc_is_tegra(void); | ||
| 13 | |||
| 14 | #endif /* __SOC_TEGRA_COMMON_H__ */ | ||
