History log of /arch/arm/mach-msm/io.c
Revision Date Author Comments
77cfe68e2808be01497124c1fa889322b483650c 26-May-2014 Georgi Djakov <gdjakov@mm-sol.com> ARM: msm: Update the references to DEBUG_MSM_UARTx

The Kconfig options DEBUG_MSM_UART1, DEBUG_MSM_UART2, DEBUG_MSM_UART3,
MSM_DEBUG_UART1, MSM_DEBUG_UART2 and MSM_DEBUG_UART3 are removed, but
they are still referenced in the following files:
arch/arm/mach-msm/io.c,
arch/arm/mach-msm/board-trout.c
arch/arm/mach-msm/board-trout-gpio.c

Fix this by updating the reference to the new Kconfig option.

Reported-by: Paul Bolle <pebolle@tiscali.nl>
Signed-off-by: Georgi Djakov <gdjakov@mm-sol.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
d967b0100f8d99480487bce8ead1e0c3affdc511 16-Mar-2014 Arnd Bergmann <arnd@arndb.de> ARM: msm: avoid calling debug_ll_addr on !MMU

MSM7X00A has an open-coded version of debug_ll_io_init so it
can use MT_DEVICE_NONSHARED as required by the platform.

However, this fails to build on no-MMU kernels because the
debug_ll_addr function is not available. Since the iotable_init
function doesn't actually do anyting in this configuration,
we can simply get away by enclosing the broken function call
in an #ifdef, which seems to be the least ugly workaround.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: David Brown <davidb@codeaurora.org>
Cc: Daniel Walker <dwalker@fifo99.com>
Cc: Bryan Huntsman <bryanh@codeaurora.org>
ebea60bee85fc043b02fd3438c381c28085eed69 24-Jul-2013 Stephen Boyd <sboyd@codeaurora.org> ARM: msm: Move mach/board.h contents to common.h

The contents of mach/board.h are only used by files within
mach-msm so there is no need to export this file outside of the
mach-msm directory. Move the contents of the file to common.h to
allow us to compile MSM in the multi-platform kernel.

Cc: Florian Tobias Schandinat <FlorianSchandinat@gmx.de>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Tomi Valkeinen <tomi.valkeinen@ti.com>
Signed-off-by: David Brown <davidb@codeaurora.org>
34606f38713169a88a8be6c75ccf93d59841c349 24-Jul-2013 Stephen Boyd <sboyd@codeaurora.org> ARM: msm: Remove TMR and TMR0 static mappings

Nobody is using these mappings so just drop them. of_iomap() in
the timer driver will take care of it for us. Doing this allows
us to remove the 8x60 and 8960 iomap files completely.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
6d07917e3f9f109477ac3ed72485f87e54132cfd 24-Jul-2013 Stephen Boyd <sboyd@codeaurora.org> ARM: msm: Move debug-macro.S to include/debug

One more step to allowing MSM to participate in the
multi-platform defconfig.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
[davidb: Comment cleanup requested by sboyd]
Signed-off-by: David Brown <davidb@codeaurora.org>
0c211c29f2439e42b5c5b20c65dfde6f39aa7bbf 24-Jul-2013 Stephen Boyd <sboyd@codeaurora.org> ARM: msm: Don't compile __msm_ioremap_caller() unless used

This function is only used on MSM7x00A so only compile the
function if the build includes support for that platform.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
1a56e4b23d2b4445397419202ff40e0b34ba3d7e 29-May-2013 Rohit Vaswani <rvaswani@codeaurora.org> msm: iomap: Remove unused bases and mappings

QGIC_DIST and QGIC_CPU bases are now unused as they are
obtained from device tree. Remove the static iomappings.

Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
9b97173e785a54c5df0aa23d1e1f680f61e36e43 16-May-2013 Laura Abbott <lauraa@codeaurora.org> ARM: 7728/1: mm: Use phys_addr_t properly for ioremap functions

Several of the ioremap functions use unsigned long in places
resulting in truncation if physical addresses greater than
4G are passed in. Change the types of the functions and the
callers accordingly.

Cc: Krzysztof Halasa <khc@pm.waw.pl>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
cb03af01c612ba97621a927225791a98357959c1 10-Sep-2012 Stephen Boyd <sboyd@codeaurora.org> ARM: msm: Allow msm_iomap-8x60 and msm_iomap-8960 to coexist

Remove the unused GCC, ACC, and shared memory definitions in the
8660 static mappings. This allows the 8660 header file to be
included in msm_iomap.h unconditionally.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
85a9f0f576372e033f0aa15485109aa0ee05fef3 05-Sep-2012 Stephen Boyd <sboyd@codeaurora.org> ARM: msm: Move io mapping prototypes to common.h

Consolidate the handful of iomapping functions into common.h so
that board files don't need to include mach/msm_iomap.h if they
don't need static virtual mapping addresses.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
e63770acb3c1e7334885ed4673aed1375f93484a 07-Sep-2012 Stephen Boyd <sboyd@codeaurora.org> ARM: msm: Remove uncompiled board-msm7x27

This board file has never been compiled. Let's just remove it
along with the one Kconfig reference to it in io.c.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
90eb385fd1bad5d4b7ad419d29763b28dd9d05a6 07-Sep-2012 Rohit Vaswani <rvaswani@codeaurora.org> ARM: msm: io: Change the default static iomappings to be shared

With 3.4 kernel the static iomappings can be shared with the ioremap
mappings. If ioremap is called with an address for which a static
mapping already exists, then that mapping should be used instead
of creating a new one.

However, the MT_DEVICE_NONSHARED flag prevents this. Hence, get rid
of this flag. Some targets (7X00) that require the static iomappings
to be NONSHARED use the MSM_DEVICE_TYPE and MSM_CHIP_DEVICE_TYPE macros.

Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
460709a6f12cced5c7a7e675521812e63ba1e1be 10-Aug-2012 Rohit Vaswani <rvaswani@codeaurora.org> ARM: msm: io: Remove 7x30 iomap region from 7x00

This is redundant code.

Signed-off-by: Rohit Vaswani <rvaswani@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
b12e9ba59c83f7df846602b201b64e4ddf28ccee 13-Feb-2012 Rob Herring <rob.herring@calxeda.com> ARM: msm: use runtime ioremap hook

Convert msm platforms to use run-time ioremap hook instead of the compile
time hook.

According to David Brown, only the msm7201 needed the ioremap hook.

Signed-off-by: Rob Herring <rob.herring@calxeda.com>
Tested-by: David Brown <davidb@codeaurora.org>
Acked-by: David Brown <davidb@codeaurora.org>
Cc: Daniel Walker <dwalker@fifo99.com>
Cc: Bryan Huntsman <bryanh@codeaurora.org>
a3d3ef9d4fd57cfd407c8d2d0a7daec000468ebf 08-Nov-2011 Stephen Boyd <sboyd@codeaurora.org> msm: Support DEBUG_LL on MSM8660 and MSM8960

Add support for DEBUG_LL on the 8660 and 8960 development boards.
While we're here cleanup the uncompress.h code a bit. Avoid
the use of readl/writel as those are Linux specific APIs that
aren't guaranteed to work in the decompressor.

Cc: Nicolas Pitre <nico@fluxnic.net>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
650e3f0d66ade2a614d854765dae3bbc9a87f58d 08-Nov-2011 Stephen Boyd <sboyd@codeaurora.org> ARM: msm: Consolidate and move DEBUG_LL to DEBUG_LL choice

Now that DEBUG_LL is a choice we can move MSM's homegrown choice
menu to DEBUG_LL.

Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
dc28094b905a872f8884f1f1c48ca86b3b78583a 31-Jul-2011 Paul Gortmaker <paul.gortmaker@windriver.com> arm: Add export.h to ARM specific files as required.

These files all make use of one of the EXPORT_SYMBOL variants
or the THIS_MODULE macro. So they will need <linux/export.h>

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
03db0729b7603202f7d3a2bf2ec7e89a1ad44a17 12-May-2011 David Brown <davidb@codeaurora.org> msm: Remove chip-ifdefs for GPIO io mappings

The two GPIO controllers are always mapped to the same virtual address
across all MSM devices. Instead of selecting this at compile time,
determine the physical address at runtime, eliminating yet something
else preventing multiple MSM targets from being compiled into the same
kernel.

Change-Id: I1672219d978ab6243526adeda6badf49472baa27
Signed-off-by: David Brown <davidb@codeaurora.org>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Nicolas Pitre <nicolas.pitre@linaro.org>
c8e4e7b12632771ab59f2e27fe120764642d06d2 27-Jan-2011 David Brown <davidb@codeaurora.org> msm: Remove broken register definition from trout

Missed a register change with the clock cleanup on the MSM7x01 targets.

Signed-off-by: David Brown <davidb@codeaurora.org>
5d0afd74b7f5202cad2d26b5bcd1fc1bdf44858f 02-Dec-2010 Stepan Moskovchenko <stepanm@codeaurora.org> msm: io: I/O register definitions for MSM8960

Add the register address definitions for the basic hardware
blocks on the Qualcomm MSM8960 chip.

Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
8bb06444804c58dffcb5d048381c6378d2b007f7 04-Jan-2011 David Brown <davidb@codeaurora.org> msm: Generalize QGIC registers

The QGIC registers are mapped to the same virtual addresses across
targets, only the physical address changes. Move the BASE address out
of target-specific files, and add a SOC name to the base addresses.

Signed-off-by: David Brown <davidb@codeaurora.org>
8c27e6f305242ffab0c88eed5dea8394b8ce86d0 07-Jan-2011 David Brown <davidb@codeaurora.org> msm: Generalize timer register mappings

Allow the timer register to be determined dynamically instead of at
compile time. Use common virtual addresses for the registers across
all MSM chips, and select the register mappings based on the detected
CPU.

Signed-off-by: David Brown <davidb@codeaurora.org>
94790ec25fdd51dc4126cc176f2e104f80f87fcb 02-Dec-2010 Jeff Ohlstein <johlstei@codeaurora.org> msm: timer: SMP timer support for msm

The msm provides timer hardware that is private to each core. Each
timer has separate counter and match registers, so we create separate
clock_event_devices for each core. For the global clocksource, use
cpu 0's counter.

Signed-off-by: Jeff Ohlstein <johlstei@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
4916a1083290edfb6cc53aa134f00597447de1ce 09-Nov-2010 Pavankumar Kondeti <pkondeti@codeaurora.org> msm: io: Export __msm_ioremap

This is required for modules to use ioremap()

Signed-off-by: Pavankumar Kondeti <pkondeti@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
b595076a180a56d1bb170e6eceda6eb9d76f4cd3 01-Nov-2010 Uwe Kleine-König <u.kleine-koenig@pengutronix.de> tree-wide: fix comment/printk typos

"gadget", "through", "command", "maintain", "maintain", "controller", "address",
"between", "initiali[zs]e", "instead", "function", "select", "already",
"equal", "access", "management", "hierarchy", "registration", "interest",
"relative", "memory", "offset", "already",

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
6cf6dfefe1f07f309998df8734fdc0961dbae38c 06-Jan-2010 Steve Muckle <smuckle@codeaurora.org> msm: io: MSM8X60 io support

MSM8X60 has different IO mappings than previous MSMs.

Signed-off-by: Steve Muckle <smuckle@codeaurora.org>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
c83b2bf66a40cd9bb3af3f6e28d36babb6748d73 05-May-2010 Daniel Walker <dwalker@codeaurora.org> msm: io: add io support for 7x30

Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
cf62ffae2550102557c0848ab63a771e032fcfd3 05-May-2010 Daniel Walker <dwalker@codeaurora.org> msm: io: add io support for 8x50

Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
Signed-off-by: David Brown <davidb@codeaurora.org>
Signed-off-by: Gregory Bean <gbean@codeaurora.org>
Signed-off-by: Abhijeet Dharmapurikar <adharmap@codeaurora.org>
Signed-off-by: Stepan Moskovchenko <stepanm@codeaurora.org>
b42dc44afca902d19f86d541cbb665f31b9149a0 29-Jan-2010 Dima Zavin <dima@android.com> arm: msm: correctly signal the apps-to-modem irq in smd/proc_comm

Signed-off-by: Dima Zavin <dima@android.com>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
31aa8fd6fd30b0f36416df7d09619768d26b4332 18-Dec-2009 Russell King <rmk+kernel@arm.linux.org.uk> ARM: Add caller information to ioremap

This allows the procfs vmallocinfo file to show who created the ioremap
regions. Note: __builtin_return_address(0) doesn't do what's expected
if its used in an inline function, so we leave __arm_ioremap callers
in such places alone.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
6339f6695f84e48b42021c6df91d81b17308fe92 02-Nov-2009 Pavel Machek <pavel@ucw.cz> msm: make debugging UART (for DEBUG_LL) configurable

Provides options to select one of the three "lowspeed" UARTs
on MSM7k SoCs for DEBUG_LL output from the zImage decompressor
and kernel.

Signed-off-by: Brian Swetland <swetland@google.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Daniel Walker <dwalker@codeaurora.org>
bcc0f6af0798e60e7527485f7125ed26632ce698 10-Sep-2008 Brian Swetland <swetland@google.com> [ARM] msm: clean up iomap and devices

- Add some more peripherals (sdcc, etc) to the iomap.
- Remove virtual base addresses for devices that we should be passing
physical addresses to drivers via resources and ioremap()ing.
- don't try to use uarts for ll debug once the mmu is enabled due to
problems with the peripheral window
- make base addresses void __iomem * and fixup irq.c and timer.c
- Remove common.c and bring in devices.c/devices.h similar to
the PXA architecture.

Signed-off-by: Brian Swetland <swetland@google.com>
fced80c735941fa518ac67c0b61bbe153fb8c050 06-Sep-2008 Russell King <rmk@dyn-67.arm.linux.org.uk> [ARM] Convert asm/io.h to linux/io.h

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
a09e64fbc0094e3073dbb09c3b4bfe4ab669244b 05-Aug-2008 Russell King <rmk@dyn-67.arm.linux.org.uk> [ARM] Move include/asm-arm/arch-* to arch/arm/*/include/mach

This just leaves include/asm-arm/plat-* to deal with.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
be509729356b7433f73df2b9a966674a437fbbc1 04-Aug-2008 Russell King <rmk@dyn-67.arm.linux.org.uk> [ARM] Remove asm/hardware.h, use asm/arch/hardware.h instead

Remove includes of asm/hardware.h in addition to asm/arch/hardware.h.
Then, since asm/hardware.h only exists to include asm/arch/hardware.h,
update everything to directly include asm/arch/hardware.h and remove
asm/hardware.h.

Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
3042102a28501510a409fe86962f20369e325cf2 26-Nov-2007 Brian Swetland <swetland@google.com> [ARM] msm: core platform support for ARCH_MSM7X00A

- core header files for arch-msm
- Kconfig and Makefiles to enable ARCH_MSM7X00A builds
- MSM7X00A specific arch_idle
- peripheral iomap and irq number definitions

Signed-off-by: Brian Swetland <swetland@google.com>