Skip to content

Commit

Permalink
ARM: imx: include hardware.h rather than mach/hardware.h
Browse files Browse the repository at this point in the history
It moves a bunch of header files included in hardware.h and itself
from mach-imx/include/mach to mach-imx, and updates users to include
hardware.h rather than mach/hardware.h.  The files in mach-imx/devices
will need to include "../hardware.h".

Signed-off-by: Shawn Guo <shawn.guo@linaro.org>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Acked-by: Arnd Bergmann <arnd@arndb.de>
  • Loading branch information
Shawn Guo committed Oct 15, 2012
1 parent 6dde5ac commit 50f2de6
Show file tree
Hide file tree
Showing 132 changed files with 160 additions and 179 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/3ds_debugboard.c
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
#include <linux/regulator/machine.h>
#include <linux/regulator/fixed.h>

#include <mach/hardware.h>
#include "hardware.h"

/* LAN9217 ethernet base address */
#define LAN9217_BASE_ADDR(n) (n + 0x0)
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/avic.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@
#include <linux/of.h>
#include <asm/mach/irq.h>
#include <asm/exception.h>
#include <mach/hardware.h>
#include <mach/irqs.h>

#include "common.h"
#include "hardware.h"
#include "irq-common.h"

#define AVIC_INTCNTL 0x00 /* int control reg */
Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-imx/clk-imx1.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@
#include <linux/clkdev.h>
#include <linux/err.h>

#include <mach/hardware.h>

#include "clk.h"
#include "common.h"
#include "hardware.h"

/* CCM register addresses */
#define IO_ADDR_CCM(off) (MX1_IO_ADDRESS(MX1_CCM_BASE_ADDR + (off)))
Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-imx/clk-imx21.c
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,9 @@
#include <linux/module.h>
#include <linux/err.h>

#include <mach/hardware.h>

#include "clk.h"
#include "common.h"
#include "hardware.h"

#define IO_ADDR_CCM(off) (MX21_IO_ADDRESS(MX21_CCM_BASE_ADDR + (off)))

Expand Down
5 changes: 2 additions & 3 deletions arch/arm/mach-imx/clk-imx25.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,10 @@
#include <linux/clkdev.h>
#include <linux/err.h>

#include <mach/hardware.h>
#include <mach/mx25.h>

#include "clk.h"
#include "common.h"
#include "hardware.h"
#include "mx25.h"

#define CRM_BASE MX25_IO_ADDRESS(MX25_CRM_BASE_ADDR)

Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-imx/clk-imx27.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@
#include <linux/clk-provider.h>
#include <linux/of.h>

#include <mach/hardware.h>

#include "clk.h"
#include "common.h"
#include "hardware.h"

#define IO_ADDR_CCM(off) (MX27_IO_ADDRESS(MX27_CCM_BASE_ADDR + (off)))

Expand Down
5 changes: 2 additions & 3 deletions arch/arm/mach-imx/clk-imx31.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,11 @@
#include <linux/err.h>
#include <linux/of.h>

#include <mach/hardware.h>
#include <mach/mx31.h>

#include "clk.h"
#include "common.h"
#include "crmregs-imx3.h"
#include "hardware.h"
#include "mx31.h"

static const char *mcu_main_sel[] = { "spll", "mpll", };
static const char *per_sel[] = { "per_div", "ipg", };
Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-imx/clk-imx35.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
#include <linux/of.h>
#include <linux/err.h>

#include <mach/hardware.h>

#include "crmregs-imx3.h"
#include "clk.h"
#include "common.h"
#include "hardware.h"

struct arm_ahb_div {
unsigned char arm, ahb, sel;
Expand Down
3 changes: 1 addition & 2 deletions arch/arm/mach-imx/clk-imx51-imx53.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
#include <linux/of.h>
#include <linux/err.h>

#include <mach/hardware.h>

#include "crm-regs-imx5.h"
#include "clk.h"
#include "common.h"
#include "hardware.h"

/* Low-power Audio Playback Mode clock */
static const char *lp_apm_sel[] = { "osc", };
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/clk-pllv1.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
#include <linux/slab.h>
#include <linux/kernel.h>
#include <linux/err.h>
#include <mach/hardware.h>

#include "clk.h"
#include "common.h"
#include "hardware.h"

/**
* pll v1
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/cpu-imx25.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
*/
#include <linux/module.h>
#include <linux/io.h>
#include <mach/hardware.h>

#include "iim.h"
#include "hardware.h"

static int mx25_cpu_rev = -1;

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/cpu-imx27.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#include <linux/io.h>
#include <linux/module.h>

#include <mach/hardware.h>
#include "hardware.h"

static int mx27_cpu_rev = -1;
static int mx27_cpu_partnumber;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/cpu-imx31.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@

#include <linux/module.h>
#include <linux/io.h>
#include <mach/hardware.h>

#include "common.h"
#include "hardware.h"
#include "iim.h"

static int mx31_cpu_rev = -1;
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/cpu-imx35.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
*/
#include <linux/module.h>
#include <linux/io.h>
#include <mach/hardware.h>

#include "hardware.h"
#include "iim.h"

static int mx35_cpu_rev = -1;
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/cpu-imx5.c
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,10 @@
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/module.h>
#include <mach/hardware.h>
#include <linux/io.h>

#include "hardware.h"

static int mx5_cpu_rev = -1;

#define IIM_SREV 0x24
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/cpu.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@

#include <linux/module.h>
#include <linux/io.h>
#include <mach/hardware.h>

#include "hardware.h"

unsigned int __mxc_cpu_type;
EXPORT_SYMBOL(__mxc_cpu_type);
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/cpu_op-mx51.c
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@

#include <linux/bug.h>
#include <linux/types.h>
#include <mach/hardware.h>
#include <linux/kernel.h>

#include "hardware.h"

static struct cpu_op mx51_cpu_op[] = {
{
.cpu_rate = 160000000,},
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/cpufreq.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@
#include <linux/clk.h>
#include <linux/err.h>
#include <linux/slab.h>
#include <mach/hardware.h>

#include "hardware.h"

#define CLK32_FREQ 32768
#define NANOSECOND (1000 * 1000 * 1000)
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/devices/platform-ahci-imx.c
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
#include <linux/device.h>
#include <linux/dma-mapping.h>
#include <asm/sizes.h>
#include <mach/hardware.h>

#include "../hardware.h"
#include "devices-common.h"

#define imx_ahci_imx_data_entry_single(soc, _devid) \
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/devices/platform-fec.c
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
*/
#include <linux/dma-mapping.h>
#include <asm/sizes.h>
#include <mach/hardware.h>

#include "../hardware.h"
#include "devices-common.h"

#define imx_fec_data_entry_single(soc, _devid) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-flexcan.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include "../hardware.h"
#include "devices-common.h"

#define imx_flexcan_data_entry_single(soc, _id, _hwid, _size) \
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/devices/platform-fsl-usb2-udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* Free Software Foundation.
*/
#include <linux/dma-mapping.h>
#include <mach/hardware.h>

#include "../hardware.h"
#include "devices-common.h"

#define imx_fsl_usb2_udc_data_entry_single(soc) \
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/devices/platform-gpio_keys.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@
* Boston, MA 02110-1301, USA.
*/
#include <asm/sizes.h>
#include <mach/hardware.h>

#include "../hardware.h"
#include "devices-common.h"

struct platform_device *__init imx_add_gpio_keys(
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/devices/platform-imx-fb.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* Free Software Foundation.
*/
#include <linux/dma-mapping.h>
#include <mach/hardware.h>

#include "../hardware.h"
#include "devices-common.h"

#define imx_imx_fb_data_entry_single(soc, _devid, _size) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-imx-i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include "../hardware.h"
#include "devices-common.h"

#define imx_imx_i2c_data_entry_single(soc, _devid, _id, _hwid, _size) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-imx-keypad.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include "../hardware.h"
#include "devices-common.h"

#define imx_imx_keypad_data_entry_single(soc, _size) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-imx-ssi.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include "../hardware.h"
#include "devices-common.h"

#define imx_imx_ssi_data_entry(soc, _id, _hwid, _size) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-imx-uart.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include "../hardware.h"
#include "devices-common.h"

#define imx_imx_uart_3irq_data_entry(soc, _id, _hwid, _size) \
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/devices/platform-imx2-wdt.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* Free Software Foundation.
*/
#include <asm/sizes.h>
#include <mach/hardware.h>

#include "../hardware.h"
#include "devices-common.h"

#define imx_imx2_wdt_data_entry_single(soc, _id, _hwid, _size) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-imx21-hcd.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include "../hardware.h"
#include "devices-common.h"

#define imx_imx21_hcd_data_entry_single(soc) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-imx27-coda.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
* Free Software Foundation.
*/

#include <mach/hardware.h>
#include "../hardware.h"
#include "devices-common.h"

#ifdef CONFIG_SOC_IMX27
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-imx_udc.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include "../hardware.h"
#include "devices-common.h"

#define imx_imx_udc_data_entry_single(soc, _size) \
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/devices/platform-imxdi_rtc.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* Free Software Foundation.
*/
#include <asm/sizes.h>
#include <mach/hardware.h>

#include "../hardware.h"
#include "devices-common.h"

#define imx_imxdi_rtc_data_entry_single(soc) \
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/devices/platform-ipu-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* Free Software Foundation.
*/
#include <linux/dma-mapping.h>
#include <mach/hardware.h>

#include "../hardware.h"
#include "devices-common.h"

#define imx_ipu_core_entry_single(soc) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-mx1-camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include "../hardware.h"
#include "devices-common.h"

#define imx_mx1_camera_data_entry_single(soc, _size) \
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-imx/devices/platform-mx2-camera.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
* the terms of the GNU General Public License version 2 as published by the
* Free Software Foundation.
*/
#include <mach/hardware.h>
#include "../hardware.h"
#include "devices-common.h"

#define imx_mx2_camera_data_entry_single(soc, _devid) \
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/devices/platform-mxc-ehci.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* Free Software Foundation.
*/
#include <linux/dma-mapping.h>
#include <mach/hardware.h>

#include "../hardware.h"
#include "devices-common.h"

#define imx_mxc_ehci_data_entry_single(soc, _id, hs) \
Expand Down
3 changes: 2 additions & 1 deletion arch/arm/mach-imx/devices/platform-mxc-mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
* Free Software Foundation.
*/
#include <linux/dma-mapping.h>
#include <mach/hardware.h>

#include "../hardware.h"
#include "devices-common.h"

#define imx_mxc_mmc_data_entry_single(soc, _devid, _id, _hwid, _size) \
Expand Down
Loading

0 comments on commit 50f2de6

Please sign in to comment.