Skip to content

Commit

Permalink
ARM: tegra: Move includes to include/soc/tegra
Browse files Browse the repository at this point in the history
In order to not clutter the include/linux directory with SoC specific
headers, move the Tegra-specific headers out into a separate directory.

Signed-off-by: Thierry Reding <[email protected]>
  • Loading branch information
thierryreding committed Jul 17, 2014
1 parent 7171511 commit 306a7f9
Show file tree
Hide file tree
Showing 15 changed files with 37 additions and 24 deletions.
3 changes: 2 additions & 1 deletion arch/arm/mach-tegra/fuse.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@
#include <linux/export.h>
#include <linux/random.h>
#include <linux/clk.h>
#include <linux/tegra-soc.h>

#include <soc/tegra/fuse.h>

#include "fuse.h"
#include "iomap.h"
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-tegra/pmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#include <linux/io.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/tegra-powergate.h>

#include <soc/tegra/powergate.h>

#include "flowctrl.h"
#include "fuse.h"
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-tegra/powergate.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
#include <linux/seq_file.h>
#include <linux/spinlock.h>
#include <linux/clk/tegra.h>
#include <linux/tegra-powergate.h>

#include <soc/tegra/powergate.h>

#include "fuse.h"
#include "iomap.h"
Expand Down
3 changes: 2 additions & 1 deletion drivers/amba/tegra-ahb.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/tegra-ahb.h>

#include <soc/tegra/ahb.h>

#define DRV_NAME "tegra-ahb"

Expand Down
3 changes: 2 additions & 1 deletion drivers/clk/tegra/clk-periph-gate.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,8 @@
#include <linux/io.h>
#include <linux/delay.h>
#include <linux/err.h>
#include <linux/tegra-soc.h>

#include <soc/tegra/fuse.h>

#include "clk.h"

Expand Down
5 changes: 4 additions & 1 deletion drivers/clk/tegra/clk-tegra30.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/clk/tegra.h>
#include <linux/tegra-powergate.h>

#include <soc/tegra/powergate.h>

#include <dt-bindings/clock/tegra30-car.h>

#include "clk.h"
#include "clk-id.h"

Expand Down
3 changes: 2 additions & 1 deletion drivers/clk/tegra/clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
#include <linux/of.h>
#include <linux/clk/tegra.h>
#include <linux/reset-controller.h>
#include <linux/tegra-soc.h>

#include <soc/tegra/fuse.h>

#include "clk.h"

Expand Down
3 changes: 2 additions & 1 deletion drivers/gpu/drm/tegra/gr3d.c
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/reset.h>
#include <linux/tegra-powergate.h>

#include <soc/tegra/powergate.h>

#include "drm.h"
#include "gem.h"
Expand Down
3 changes: 2 additions & 1 deletion drivers/gpu/drm/tegra/sor.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
#include <linux/io.h>
#include <linux/platform_device.h>
#include <linux/reset.h>
#include <linux/tegra-powergate.h>

#include <soc/tegra/powergate.h>

#include <drm/drm_dp_helper.h>

Expand Down
3 changes: 2 additions & 1 deletion drivers/iommu/tegra-smmu.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@
#include <linux/of_iommu.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/tegra-ahb.h>

#include <soc/tegra/ahb.h>

#include <asm/page.h>
#include <asm/cacheflush.h>
Expand Down
5 changes: 3 additions & 2 deletions drivers/pci/host/pci-tegra.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,12 @@
#include <linux/reset.h>
#include <linux/sizes.h>
#include <linux/slab.h>
#include <linux/tegra-cpuidle.h>
#include <linux/tegra-powergate.h>
#include <linux/vmalloc.h>
#include <linux/regulator/consumer.h>

#include <soc/tegra/cpuidle.h>
#include <soc/tegra/powergate.h>

#include <asm/mach/irq.h>
#include <asm/mach/map.h>
#include <asm/mach/pci.h>
Expand Down
6 changes: 3 additions & 3 deletions include/linux/tegra-ahb.h → include/soc/tegra/ahb.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
* more details.
*/

#ifndef __LINUX_AHB_H__
#define __LINUX_AHB_H__
#ifndef __SOC_TEGRA_AHB_H__
#define __SOC_TEGRA_AHB_H__

extern int tegra_ahb_enable_smmu(struct device_node *ahb);

#endif /* __LINUX_AHB_H__ */
#endif /* __SOC_TEGRA_AHB_H__ */
6 changes: 3 additions & 3 deletions include/linux/tegra-cpuidle.h → include/soc/tegra/cpuidle.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* more details.
*/

#ifndef __LINUX_TEGRA_CPUIDLE_H__
#define __LINUX_TEGRA_CPUIDLE_H__
#ifndef __SOC_TEGRA_CPUIDLE_H__
#define __SOC_TEGRA_CPUIDLE_H__

#ifdef CONFIG_CPU_IDLE
void tegra_cpuidle_pcie_irqs_in_use(void);
Expand All @@ -22,4 +22,4 @@ static inline void tegra_cpuidle_pcie_irqs_in_use(void)
}
#endif

#endif
#endif /* __SOC_TEGRA_CPUIDLE_H__ */
6 changes: 3 additions & 3 deletions include/linux/tegra-soc.h → include/soc/tegra/fuse.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/

#ifndef __LINUX_TEGRA_SOC_H_
#define __LINUX_TEGRA_SOC_H_
#ifndef __SOC_TEGRA_FUSE_H__
#define __SOC_TEGRA_FUSE_H__

u32 tegra_read_chipid(void);

#endif /* __LINUX_TEGRA_SOC_H_ */
#endif /* __SOC_TEGRA_FUSE_H__ */
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
*
*/

#ifndef _MACH_TEGRA_POWERGATE_H_
#define _MACH_TEGRA_POWERGATE_H_
#ifndef __SOC_TEGRA_POWERGATE_H__
#define __SOC_TEGRA_POWERGATE_H__

struct clk;
struct reset_control;
Expand Down Expand Up @@ -131,4 +131,4 @@ static inline int tegra_io_rail_power_off(int id)
}
#endif

#endif /* _MACH_TEGRA_POWERGATE_H_ */
#endif /* __SOC_TEGRA_POWERGATE_H__ */

0 comments on commit 306a7f9

Please sign in to comment.