Skip to content

Commit

Permalink
Merge tag 'omap-cleanup-local-headers-for-v3.7' of git://git.kernel.o…
Browse files Browse the repository at this point in the history
…rg/pub/scm/linux/kernel/git/tmlind/linux-omap into next/cleanup

From Tony Lindgren:
This branch contains mostly scripted changes to make omap
header files local where possible to get us closer to supporting
the ARM single zImage. After these changes mach includes are
pretty much out of the way for omap2+, but still lots of manual
work remains to sort through the remaining plat includes.

* tag 'omap-cleanup-local-headers-for-v3.7' of git://git.kernel.org/pub/scm/linux/kernel/git/tmlind/linux-omap: (26 commits)
  ARM: OMAP2+: Make omap4-keypad.h local
  ARM: OMAP2+: Make l4_3xxx.h local
  ARM: OMAP2+: Make l4_2xxx.h local
  ARM: OMAP2+: Make l3_3xxx.h local
  ARM: OMAP2+: Make l3_2xxx.h local
  ARM: OMAP1: Move irda.h from plat to mach
  ARM: OMAP2+: Make hdq1w.h local
  ARM: OMAP2+: Make gpmc-smsc911x.h local
  ARM: OMAP2+: Make gpmc-smc91x.h local
  ARM: OMAP1: Move flash.h from plat to mach
  ARM: OMAP2+: Make debug-devices.h local
  ARM: OMAP1: Move board-voiceblue.h from plat to mach
  ARM: OMAP1: Move board-sx1.h from plat to mach
  ARM: OMAP2+: Make omap-wakeupgen.h local
  ARM: OMAP2+: Make omap-secure.h local
  ARM: OMAP2+: Make ctrl_module_wkup_44xx.h local
  ARM: OMAP2+: Make ctrl_module_pad_wkup_44xx.h local
  ARM: OMAP2+: Make ctrl_module_pad_core_44xx.h local
  ARM: OMAP2+: Make ctrl_module_core_44xx.h local
  ARM: OMAP2+: Make board-rx51.h local
  ...
  • Loading branch information
Olof Johansson committed Sep 21, 2012
2 parents 32dec75 + 0e70156 commit b97ba3a
Show file tree
Hide file tree
Showing 109 changed files with 159 additions and 221 deletions.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/ams-delta-fiq-handler.S
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <linux/linkage.h>
#include <asm/assembler.h>

#include <plat/board-ams-delta.h>
#include <mach/board-ams-delta.h>

#include <mach/irqs.h>
#include <mach/ams-delta-fiq.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/ams-delta-fiq.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <linux/module.h>
#include <linux/io.h>

#include <plat/board-ams-delta.h>
#include <mach/board-ams-delta.h>

#include <asm/fiq.h>

Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-omap1/board-ams-delta.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>

#include <plat/board-ams-delta.h>
#include <mach/board-ams-delta.h>
#include <linux/platform_data/keypad-omap.h>
#include <plat/mux.h>
#include <mach/mux.h>

#include <mach/hardware.h>
#include <mach/ams-delta-fiq.h>
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-omap1/board-fsample.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@
#include <asm/mach/map.h>

#include <plat/tc.h>
#include <plat/mux.h>
#include <plat/flash.h>
#include <mach/mux.h>
#include <mach/flash.h>
#include <plat/fpga.h>
#include <linux/platform_data/keypad-omap.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/board-generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>

#include <plat/mux.h>
#include <mach/mux.h>

#include <mach/usb.h>

Expand Down
6 changes: 3 additions & 3 deletions arch/arm/mach-omap1/board-h2.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,12 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>

#include <plat/mux.h>
#include <mach/mux.h>
#include <plat/dma.h>
#include <plat/tc.h>
#include <plat/irda.h>
#include <mach/irda.h>
#include <linux/platform_data/keypad-omap.h>
#include <plat/flash.h>
#include <mach/flash.h>

#include <mach/hardware.h>
#include <mach/usb.h>
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-omap1/board-h3.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,11 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>

#include <plat/mux.h>
#include <mach/mux.h>
#include <plat/tc.h>
#include <linux/platform_data/keypad-omap.h>
#include <plat/dma.h>
#include <plat/flash.h>
#include <mach/flash.h>

#include <mach/hardware.h>
#include <mach/irqs.h>
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-omap1/board-innovator.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>

#include <plat/mux.h>
#include <plat/flash.h>
#include <mach/mux.h>
#include <mach/flash.h>
#include <plat/fpga.h>
#include <plat/tc.h>
#include <linux/platform_data/keypad-omap.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/board-nokia770.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>

#include <plat/mux.h>
#include <mach/mux.h>
#include <plat/mmc.h>
#include <plat/clock.h>

Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-omap1/board-osk.c
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,8 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>

#include <plat/flash.h>
#include <plat/mux.h>
#include <mach/flash.h>
#include <mach/mux.h>
#include <plat/tc.h>

#include <mach/hardware.h>
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/mach-omap1/board-palmte.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>

#include <plat/flash.h>
#include <plat/mux.h>
#include <mach/flash.h>
#include <mach/mux.h>
#include <plat/tc.h>
#include <plat/dma.h>
#include <plat/irda.h>
#include <mach/irda.h>
#include <linux/platform_data/keypad-omap.h>

#include <mach/hardware.h>
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/mach-omap1/board-palmtt.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@
#include <asm/mach/map.h>

#include <plat/led.h>
#include <plat/flash.h>
#include <plat/mux.h>
#include <mach/flash.h>
#include <mach/mux.h>
#include <plat/dma.h>
#include <plat/tc.h>
#include <plat/irda.h>
#include <mach/irda.h>
#include <linux/platform_data/keypad-omap.h>

#include <mach/hardware.h>
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/mach-omap1/board-palmz71.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>

#include <plat/flash.h>
#include <plat/mux.h>
#include <mach/flash.h>
#include <mach/mux.h>
#include <plat/dma.h>
#include <plat/tc.h>
#include <plat/irda.h>
#include <mach/irda.h>
#include <linux/platform_data/keypad-omap.h>

#include <mach/hardware.h>
Expand Down
4 changes: 2 additions & 2 deletions arch/arm/mach-omap1/board-perseus2.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@
#include <asm/mach/map.h>

#include <plat/tc.h>
#include <plat/mux.h>
#include <mach/mux.h>
#include <plat/fpga.h>
#include <plat/flash.h>
#include <mach/flash.h>

#include <mach/hardware.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/board-sx1-mmc.c
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <mach/hardware.h>
#include <plat/mmc.h>
#include <plat/board-sx1.h>
#include <mach/board-sx1.h>

#if defined(CONFIG_MMC_OMAP) || defined(CONFIG_MMC_OMAP_MODULE)

Expand Down
8 changes: 4 additions & 4 deletions arch/arm/mach-omap1/board-sx1.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>

#include <plat/flash.h>
#include <plat/mux.h>
#include <mach/flash.h>
#include <mach/mux.h>
#include <plat/dma.h>
#include <plat/irda.h>
#include <mach/irda.h>
#include <plat/tc.h>
#include <plat/board-sx1.h>
#include <mach/board-sx1.h>

#include <mach/hardware.h>
#include <mach/usb.h>
Expand Down
6 changes: 3 additions & 3 deletions arch/arm/mach-omap1/board-voiceblue.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
#include <asm/mach/arch.h>
#include <asm/mach/map.h>

#include <plat/board-voiceblue.h>
#include <plat/flash.h>
#include <plat/mux.h>
#include <mach/board-voiceblue.h>
#include <mach/flash.h>
#include <mach/mux.h>
#include <plat/tc.h>

#include <mach/hardware.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <asm/mach/map.h>

#include <plat/tc.h>
#include <plat/mux.h>
#include <mach/mux.h>
#include <plat/dma.h>
#include <plat/mmc.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/flash.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <linux/mtd/map.h>

#include <plat/tc.h>
#include <plat/flash.h>
#include <mach/flash.h>

#include <mach/hardware.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/i2c.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
*/

#include <plat/i2c.h>
#include <plat/mux.h>
#include <mach/mux.h>
#include <plat/cpu.h>

void __init omap1_i2c_mux_pins(int bus_id)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
5 changes: 0 additions & 5 deletions arch/arm/mach-omap1/include/mach/smp.h

This file was deleted.

2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/io.c
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
#include <asm/tlb.h>
#include <asm/mach/map.h>

#include <plat/mux.h>
#include <mach/mux.h>
#include <plat/tc.h>
#include <plat/dma.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/leds.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include <asm/leds.h>
#include <asm/mach-types.h>

#include <plat/mux.h>
#include <mach/mux.h>

#include "leds.h"

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/mcbsp.c
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
#include <linux/slab.h>

#include <plat/dma.h>
#include <plat/mux.h>
#include <mach/mux.h>
#include <plat/cpu.h>
#include <linux/platform_data/asoc-ti-mcbsp.h>

Expand Down
58 changes: 56 additions & 2 deletions arch/arm/mach-omap1/mux.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

#include <mach/hardware.h>

#include <plat/mux.h>
#include <mach/mux.h>

#ifdef CONFIG_OMAP_MUX

Expand Down Expand Up @@ -451,6 +451,56 @@ static int __init_or_module omap1_cfg_reg(const struct pin_config *cfg)
#endif
}

static struct omap_mux_cfg *mux_cfg;

int __init omap_mux_register(struct omap_mux_cfg *arch_mux_cfg)
{
if (!arch_mux_cfg || !arch_mux_cfg->pins || arch_mux_cfg->size == 0
|| !arch_mux_cfg->cfg_reg) {
printk(KERN_ERR "Invalid pin table\n");
return -EINVAL;
}

mux_cfg = arch_mux_cfg;

return 0;
}

/*
* Sets the Omap MUX and PULL_DWN registers based on the table
*/
int __init_or_module omap_cfg_reg(const unsigned long index)
{
struct pin_config *reg;

if (!cpu_class_is_omap1()) {
printk(KERN_ERR "mux: Broken omap_cfg_reg(%lu) entry\n",
index);
WARN_ON(1);
return -EINVAL;
}

if (mux_cfg == NULL) {
printk(KERN_ERR "Pin mux table not initialized\n");
return -ENODEV;
}

if (index >= mux_cfg->size) {
printk(KERN_ERR "Invalid pin mux index: %lu (%lu)\n",
index, mux_cfg->size);
dump_stack();
return -ENODEV;
}

reg = &mux_cfg->pins[index];

if (!mux_cfg->cfg_reg)
return -ENODEV;

return mux_cfg->cfg_reg(reg);
}
EXPORT_SYMBOL(omap_cfg_reg);

int __init omap1_mux_init(void)
{
if (cpu_is_omap7xx()) {
Expand All @@ -468,4 +518,8 @@ int __init omap1_mux_init(void)
return omap_mux_register(&arch_mux_cfg);
}

#endif
#else
#define omap_mux_init() do {} while(0)
#define omap_cfg_reg(x) do {} while(0)
#endif /* CONFIG_OMAP_MUX */

2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/pm.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
#include <plat/clock.h>
#include <plat/sram.h>
#include <plat/tc.h>
#include <plat/mux.h>
#include <mach/mux.h>
#include <plat/dma.h>
#include <plat/dmtimer.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@

#include <asm/mach-types.h>

#include <plat/mux.h>
#include <mach/mux.h>
#include <plat/fpga.h>

#include "pm.h"
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap1/usb.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@

#include <asm/irq.h>

#include <plat/mux.h>
#include <mach/mux.h>

#include <mach/usb.h>

Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/am35xx-emac.c
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
#include <linux/davinci_emac.h>
#include <asm/system.h>
#include <plat/omap_device.h>
#include <mach/am35xx.h>
#include "am35xx.h"
#include "control.h"
#include "am35xx-emac.h"

Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/board-2430sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
#include "common.h"
#include <plat/gpmc.h>
#include <plat/usb.h>
#include <plat/gpmc-smc91x.h>
#include "gpmc-smc91x.h"

#include <video/omapdss.h>
#include <video/omap-panel-generic-dpi.h>
Expand Down
2 changes: 1 addition & 1 deletion arch/arm/mach-omap2/board-3430sdp.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
#include <video/omapdss.h>
#include <video/omap-panel-tfp410.h>

#include <plat/gpmc-smc91x.h>
#include "gpmc-smc91x.h"

#include "board-flash.h"
#include "mux.h"
Expand Down
Loading

0 comments on commit b97ba3a

Please sign in to comment.