Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
cefd3e71
Commit
cefd3e71
authored
Oct 18, 2011
by
Russell King
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'mach_memory_h' of
git://git.linaro.org/people/nico/linux
into devel-stable
parents
a26bce12
0cdc8b92
Changes
117
Show whitespace changes
Inline
Side-by-side
Showing
117 changed files
with
347 additions
and
1168 deletions
+347
-1168
arch/arm/Kconfig
arch/arm/Kconfig
+36
-10
arch/arm/Makefile
arch/arm/Makefile
+3
-0
arch/arm/include/asm/memory.h
arch/arm/include/asm/memory.h
+8
-8
arch/arm/include/asm/module.h
arch/arm/include/asm/module.h
+0
-4
arch/arm/kernel/debug.S
arch/arm/kernel/debug.S
+2
-2
arch/arm/kernel/head.S
arch/arm/kernel/head.S
+15
-50
arch/arm/mach-at91/include/mach/debug-macro.S
arch/arm/mach-at91/include/mach/debug-macro.S
+1
-1
arch/arm/mach-bcmring/include/mach/hardware.h
arch/arm/mach-bcmring/include/mach/hardware.h
+1
-2
arch/arm/mach-bcmring/include/mach/memory.h
arch/arm/mach-bcmring/include/mach/memory.h
+0
-28
arch/arm/mach-clps711x/include/mach/debug-macro.S
arch/arm/mach-clps711x/include/mach/debug-macro.S
+1
-1
arch/arm/mach-cns3xxx/include/mach/debug-macro.S
arch/arm/mach-cns3xxx/include/mach/debug-macro.S
+1
-1
arch/arm/mach-cns3xxx/include/mach/memory.h
arch/arm/mach-cns3xxx/include/mach/memory.h
+0
-26
arch/arm/mach-davinci/cpuidle.c
arch/arm/mach-davinci/cpuidle.c
+1
-1
arch/arm/mach-davinci/include/mach/ddr2.h
arch/arm/mach-davinci/include/mach/ddr2.h
+4
-0
arch/arm/mach-davinci/include/mach/debug-macro.S
arch/arm/mach-davinci/include/mach/debug-macro.S
+23
-29
arch/arm/mach-davinci/include/mach/memory.h
arch/arm/mach-davinci/include/mach/memory.h
+0
-39
arch/arm/mach-davinci/include/mach/serial.h
arch/arm/mach-davinci/include/mach/serial.h
+2
-1
arch/arm/mach-davinci/include/mach/uncompress.h
arch/arm/mach-davinci/include/mach/uncompress.h
+6
-1
arch/arm/mach-davinci/sleep.S
arch/arm/mach-davinci/sleep.S
+1
-1
arch/arm/mach-dove/include/mach/debug-macro.S
arch/arm/mach-dove/include/mach/debug-macro.S
+1
-1
arch/arm/mach-dove/include/mach/memory.h
arch/arm/mach-dove/include/mach/memory.h
+0
-10
arch/arm/mach-ebsa110/include/mach/debug-macro.S
arch/arm/mach-ebsa110/include/mach/debug-macro.S
+1
-1
arch/arm/mach-ep93xx/include/mach/debug-macro.S
arch/arm/mach-ep93xx/include/mach/debug-macro.S
+1
-1
arch/arm/mach-exynos4/include/mach/debug-macro.S
arch/arm/mach-exynos4/include/mach/debug-macro.S
+1
-1
arch/arm/mach-footbridge/include/mach/debug-macro.S
arch/arm/mach-footbridge/include/mach/debug-macro.S
+2
-2
arch/arm/mach-gemini/include/mach/debug-macro.S
arch/arm/mach-gemini/include/mach/debug-macro.S
+1
-1
arch/arm/mach-gemini/include/mach/memory.h
arch/arm/mach-gemini/include/mach/memory.h
+0
-19
arch/arm/mach-h720x/include/mach/debug-macro.S
arch/arm/mach-h720x/include/mach/debug-macro.S
+1
-1
arch/arm/mach-h720x/include/mach/memory.h
arch/arm/mach-h720x/include/mach/memory.h
+0
-11
arch/arm/mach-integrator/include/mach/debug-macro.S
arch/arm/mach-integrator/include/mach/debug-macro.S
+1
-1
arch/arm/mach-iop13xx/include/mach/debug-macro.S
arch/arm/mach-iop13xx/include/mach/debug-macro.S
+1
-1
arch/arm/mach-iop32x/include/mach/debug-macro.S
arch/arm/mach-iop32x/include/mach/debug-macro.S
+1
-1
arch/arm/mach-iop32x/include/mach/memory.h
arch/arm/mach-iop32x/include/mach/memory.h
+0
-13
arch/arm/mach-iop33x/include/mach/debug-macro.S
arch/arm/mach-iop33x/include/mach/debug-macro.S
+1
-1
arch/arm/mach-iop33x/include/mach/memory.h
arch/arm/mach-iop33x/include/mach/memory.h
+0
-13
arch/arm/mach-ixp2000/include/mach/debug-macro.S
arch/arm/mach-ixp2000/include/mach/debug-macro.S
+1
-1
arch/arm/mach-ixp23xx/include/mach/debug-macro.S
arch/arm/mach-ixp23xx/include/mach/debug-macro.S
+1
-1
arch/arm/mach-ixp4xx/include/mach/debug-macro.S
arch/arm/mach-ixp4xx/include/mach/debug-macro.S
+1
-1
arch/arm/mach-ixp4xx/include/mach/memory.h
arch/arm/mach-ixp4xx/include/mach/memory.h
+0
-17
arch/arm/mach-kirkwood/include/mach/debug-macro.S
arch/arm/mach-kirkwood/include/mach/debug-macro.S
+1
-1
arch/arm/mach-kirkwood/include/mach/memory.h
arch/arm/mach-kirkwood/include/mach/memory.h
+0
-10
arch/arm/mach-ks8695/include/mach/debug-macro.S
arch/arm/mach-ks8695/include/mach/debug-macro.S
+1
-1
arch/arm/mach-l7200/include/mach/debug-macro.S
arch/arm/mach-l7200/include/mach/debug-macro.S
+1
-1
arch/arm/mach-lpc32xx/include/mach/debug-macro.S
arch/arm/mach-lpc32xx/include/mach/debug-macro.S
+1
-1
arch/arm/mach-lpc32xx/include/mach/memory.h
arch/arm/mach-lpc32xx/include/mach/memory.h
+0
-27
arch/arm/mach-mmp/include/mach/debug-macro.S
arch/arm/mach-mmp/include/mach/debug-macro.S
+1
-1
arch/arm/mach-mmp/include/mach/memory.h
arch/arm/mach-mmp/include/mach/memory.h
+0
-14
arch/arm/mach-msm/board-msm7x30.c
arch/arm/mach-msm/board-msm7x30.c
+22
-0
arch/arm/mach-msm/board-msm8960.c
arch/arm/mach-msm/board-msm8960.c
+22
-0
arch/arm/mach-msm/board-msm8x60.c
arch/arm/mach-msm/board-msm8x60.c
+25
-0
arch/arm/mach-msm/include/mach/debug-macro.S
arch/arm/mach-msm/include/mach/debug-macro.S
+2
-2
arch/arm/mach-msm/include/mach/memory.h
arch/arm/mach-msm/include/mach/memory.h
+0
-35
arch/arm/mach-mv78xx0/include/mach/debug-macro.S
arch/arm/mach-mv78xx0/include/mach/debug-macro.S
+1
-1
arch/arm/mach-mv78xx0/include/mach/memory.h
arch/arm/mach-mv78xx0/include/mach/memory.h
+0
-10
arch/arm/mach-mxs/include/mach/debug-macro.S
arch/arm/mach-mxs/include/mach/debug-macro.S
+1
-1
arch/arm/mach-mxs/include/mach/memory.h
arch/arm/mach-mxs/include/mach/memory.h
+0
-24
arch/arm/mach-netx/include/mach/debug-macro.S
arch/arm/mach-netx/include/mach/debug-macro.S
+1
-1
arch/arm/mach-netx/include/mach/memory.h
arch/arm/mach-netx/include/mach/memory.h
+0
-26
arch/arm/mach-nomadik/include/mach/debug-macro.S
arch/arm/mach-nomadik/include/mach/debug-macro.S
+1
-1
arch/arm/mach-nomadik/include/mach/memory.h
arch/arm/mach-nomadik/include/mach/memory.h
+0
-28
arch/arm/mach-nuc93x/include/mach/memory.h
arch/arm/mach-nuc93x/include/mach/memory.h
+0
-21
arch/arm/mach-omap1/include/mach/debug-macro.S
arch/arm/mach-omap1/include/mach/debug-macro.S
+21
-27
arch/arm/mach-omap1/include/mach/memory.h
arch/arm/mach-omap1/include/mach/memory.h
+52
-1
arch/arm/mach-omap2/include/mach/debug-macro.S
arch/arm/mach-omap2/include/mach/debug-macro.S
+36
-45
arch/arm/mach-omap2/include/mach/memory.h
arch/arm/mach-omap2/include/mach/memory.h
+0
-5
arch/arm/mach-orion5x/include/mach/debug-macro.S
arch/arm/mach-orion5x/include/mach/debug-macro.S
+1
-1
arch/arm/mach-orion5x/include/mach/memory.h
arch/arm/mach-orion5x/include/mach/memory.h
+0
-12
arch/arm/mach-pnx4008/include/mach/debug-macro.S
arch/arm/mach-pnx4008/include/mach/debug-macro.S
+1
-1
arch/arm/mach-pnx4008/include/mach/memory.h
arch/arm/mach-pnx4008/include/mach/memory.h
+0
-21
arch/arm/mach-prima2/include/mach/debug-macro.S
arch/arm/mach-prima2/include/mach/debug-macro.S
+1
-1
arch/arm/mach-prima2/include/mach/memory.h
arch/arm/mach-prima2/include/mach/memory.h
+0
-21
arch/arm/mach-prima2/l2x0.c
arch/arm/mach-prima2/l2x0.c
+2
-3
arch/arm/mach-prima2/prima2.c
arch/arm/mach-prima2/prima2.c
+1
-0
arch/arm/mach-pxa/include/mach/debug-macro.S
arch/arm/mach-pxa/include/mach/debug-macro.S
+1
-1
arch/arm/mach-pxa/include/mach/memory.h
arch/arm/mach-pxa/include/mach/memory.h
+0
-20
arch/arm/mach-pxa/z2.c
arch/arm/mach-pxa/z2.c
+1
-1
arch/arm/mach-realview/include/mach/debug-macro.S
arch/arm/mach-realview/include/mach/debug-macro.S
+1
-1
arch/arm/mach-rpc/include/mach/debug-macro.S
arch/arm/mach-rpc/include/mach/debug-macro.S
+1
-1
arch/arm/mach-s3c2400/include/mach/memory.h
arch/arm/mach-s3c2400/include/mach/memory.h
+0
-20
arch/arm/mach-s3c2410/include/mach/debug-macro.S
arch/arm/mach-s3c2410/include/mach/debug-macro.S
+1
-1
arch/arm/mach-s3c2410/include/mach/memory.h
arch/arm/mach-s3c2410/include/mach/memory.h
+0
-16
arch/arm/mach-s3c64xx/include/mach/debug-macro.S
arch/arm/mach-s3c64xx/include/mach/debug-macro.S
+1
-1
arch/arm/mach-s3c64xx/include/mach/memory.h
arch/arm/mach-s3c64xx/include/mach/memory.h
+0
-18
arch/arm/mach-s5p64x0/include/mach/debug-macro.S
arch/arm/mach-s5p64x0/include/mach/debug-macro.S
+1
-1
arch/arm/mach-s5p64x0/include/mach/memory.h
arch/arm/mach-s5p64x0/include/mach/memory.h
+0
-18
arch/arm/mach-s5pc100/include/mach/debug-macro.S
arch/arm/mach-s5pc100/include/mach/debug-macro.S
+1
-1
arch/arm/mach-s5pc100/include/mach/memory.h
arch/arm/mach-s5pc100/include/mach/memory.h
+0
-18
arch/arm/mach-s5pv210/include/mach/debug-macro.S
arch/arm/mach-s5pv210/include/mach/debug-macro.S
+1
-1
arch/arm/mach-sa1100/include/mach/debug-macro.S
arch/arm/mach-sa1100/include/mach/debug-macro.S
+1
-1
arch/arm/mach-shark/include/mach/debug-macro.S
arch/arm/mach-shark/include/mach/debug-macro.S
+1
-1
arch/arm/mach-spear3xx/include/mach/memory.h
arch/arm/mach-spear3xx/include/mach/memory.h
+0
-19
arch/arm/mach-spear6xx/include/mach/memory.h
arch/arm/mach-spear6xx/include/mach/memory.h
+0
-19
arch/arm/mach-tegra/include/mach/debug-macro.S
arch/arm/mach-tegra/include/mach/debug-macro.S
+1
-1
arch/arm/mach-tegra/include/mach/memory.h
arch/arm/mach-tegra/include/mach/memory.h
+0
-28
arch/arm/mach-u300/include/mach/debug-macro.S
arch/arm/mach-u300/include/mach/debug-macro.S
+1
-1
arch/arm/mach-ux500/include/mach/debug-macro.S
arch/arm/mach-ux500/include/mach/debug-macro.S
+1
-1
arch/arm/mach-ux500/include/mach/memory.h
arch/arm/mach-ux500/include/mach/memory.h
+0
-18
arch/arm/mach-versatile/include/mach/debug-macro.S
arch/arm/mach-versatile/include/mach/debug-macro.S
+1
-1
arch/arm/mach-versatile/include/mach/memory.h
arch/arm/mach-versatile/include/mach/memory.h
+0
-28
arch/arm/mach-vexpress/include/mach/debug-macro.S
arch/arm/mach-vexpress/include/mach/debug-macro.S
+1
-1
arch/arm/mach-vexpress/include/mach/memory.h
arch/arm/mach-vexpress/include/mach/memory.h
+0
-25
arch/arm/mach-vt8500/include/mach/debug-macro.S
arch/arm/mach-vt8500/include/mach/debug-macro.S
+1
-1
arch/arm/mach-vt8500/include/mach/memory.h
arch/arm/mach-vt8500/include/mach/memory.h
+0
-28
arch/arm/mach-w90x900/include/mach/memory.h
arch/arm/mach-w90x900/include/mach/memory.h
+0
-23
arch/arm/mach-zynq/include/mach/debug-macro.S
arch/arm/mach-zynq/include/mach/debug-macro.S
+1
-1
arch/arm/mach-zynq/include/mach/memory.h
arch/arm/mach-zynq/include/mach/memory.h
+0
-22
arch/arm/plat-mxc/include/mach/debug-macro.S
arch/arm/plat-mxc/include/mach/debug-macro.S
+1
-1
arch/arm/plat-mxc/include/mach/memory.h
arch/arm/plat-mxc/include/mach/memory.h
+0
-43
arch/arm/plat-omap/Kconfig
arch/arm/plat-omap/Kconfig
+1
-0
arch/arm/plat-omap/include/plat/memory.h
arch/arm/plat-omap/include/plat/memory.h
+0
-89
arch/arm/plat-omap/include/plat/serial.h
arch/arm/plat-omap/include/plat/serial.h
+3
-3
arch/arm/plat-omap/include/plat/uncompress.h
arch/arm/plat-omap/include/plat/uncompress.h
+7
-1
arch/arm/plat-spear/include/plat/debug-macro.S
arch/arm/plat-spear/include/plat/debug-macro.S
+1
-1
arch/arm/plat-spear/include/plat/memory.h
arch/arm/plat-spear/include/plat/memory.h
+0
-20
arch/arm/plat-tcc/include/mach/debug-macro.S
arch/arm/plat-tcc/include/mach/debug-macro.S
+1
-1
arch/arm/plat-tcc/include/mach/memory.h
arch/arm/plat-tcc/include/mach/memory.h
+0
-18
drivers/usb/musb/musb_debugfs.c
drivers/usb/musb/musb_debugfs.c
+0
-6
No files found.
arch/arm/Kconfig
View file @
cefd3e71
...
@@ -196,7 +196,8 @@ config VECTORS_BASE
...
@@ -196,7 +196,8 @@ config VECTORS_BASE
The base address of exception vectors.
The base address of exception vectors.
config ARM_PATCH_PHYS_VIRT
config ARM_PATCH_PHYS_VIRT
bool "Patch physical to virtual translations at runtime"
bool "Patch physical to virtual translations at runtime" if EMBEDDED
default y
depends on !XIP_KERNEL && MMU
depends on !XIP_KERNEL && MMU
depends on !ARCH_REALVIEW || !SPARSEMEM
depends on !ARCH_REALVIEW || !SPARSEMEM
help
help
...
@@ -205,16 +206,25 @@ config ARM_PATCH_PHYS_VIRT
...
@@ -205,16 +206,25 @@ config ARM_PATCH_PHYS_VIRT
kernel in system memory.
kernel in system memory.
This can only be used with non-XIP MMU kernels where the base
This can only be used with non-XIP MMU kernels where the base
of physical memory is at a 16MB boundary, or theoretically 64K
of physical memory is at a 16MB boundary.
for the MSM machine class.
config ARM_PATCH_PHYS_VIRT_16BIT
Only disable this option if you know that you do not require
def_bool y
this feature (eg, building a kernel for a single machine) and
depends on ARM_PATCH_PHYS_VIRT && ARCH_MSM
you need to shrink the kernel to the minimal size.
config NEED_MACH_MEMORY_H
bool
help
Select this when mach/memory.h is required to provide special
definitions for this platform. The need for mach/memory.h should
be avoided when possible.
config PHYS_OFFSET
hex "Physical address of main memory"
depends on !ARM_PATCH_PHYS_VIRT && !NEED_MACH_MEMORY_H
help
help
This option extends the physical to virtual translation patching
Please provide the physical address corresponding to the
to allow physical memory down to a theoretical minimum of 64K
location of main memory in your system.
boundaries.
source "init/Kconfig"
source "init/Kconfig"
...
@@ -247,6 +257,7 @@ config ARCH_INTEGRATOR
...
@@ -247,6 +257,7 @@ config ARCH_INTEGRATOR
select GENERIC_CLOCKEVENTS
select GENERIC_CLOCKEVENTS
select PLAT_VERSATILE
select PLAT_VERSATILE
select PLAT_VERSATILE_FPGA_IRQ
select PLAT_VERSATILE_FPGA_IRQ
select NEED_MACH_MEMORY_H
help
help
Support for ARM's Integrator platform.
Support for ARM's Integrator platform.
...
@@ -262,6 +273,7 @@ config ARCH_REALVIEW
...
@@ -262,6 +273,7 @@ config ARCH_REALVIEW
select PLAT_VERSATILE_CLCD
select PLAT_VERSATILE_CLCD
select ARM_TIMER_SP804
select ARM_TIMER_SP804
select GPIO_PL061 if GPIOLIB
select GPIO_PL061 if GPIOLIB
select NEED_MACH_MEMORY_H
help
help
This enables support for ARM Ltd RealView boards.
This enables support for ARM Ltd RealView boards.
...
@@ -302,7 +314,6 @@ config ARCH_AT91
...
@@ -302,7 +314,6 @@ config ARCH_AT91
select ARCH_REQUIRE_GPIOLIB
select ARCH_REQUIRE_GPIOLIB
select HAVE_CLK
select HAVE_CLK
select CLKDEV_LOOKUP
select CLKDEV_LOOKUP
select ARM_PATCH_PHYS_VIRT if MMU
help
help
This enables support for systems based on the Atmel AT91RM9200,
This enables support for systems based on the Atmel AT91RM9200,
AT91SAM9 and AT91CAP9 processors.
AT91SAM9 and AT91CAP9 processors.
...
@@ -323,6 +334,7 @@ config ARCH_CLPS711X
...
@@ -323,6 +334,7 @@ config ARCH_CLPS711X
bool "Cirrus Logic CLPS711x/EP721x-based"
bool "Cirrus Logic CLPS711x/EP721x-based"
select CPU_ARM720T
select CPU_ARM720T
select ARCH_USES_GETTIMEOFFSET
select ARCH_USES_GETTIMEOFFSET
select NEED_MACH_MEMORY_H
help
help
Support for Cirrus Logic 711x/721x based boards.
Support for Cirrus Logic 711x/721x based boards.
...
@@ -363,6 +375,7 @@ config ARCH_EBSA110
...
@@ -363,6 +375,7 @@ config ARCH_EBSA110
select ISA
select ISA
select NO_IOPORT
select NO_IOPORT
select ARCH_USES_GETTIMEOFFSET
select ARCH_USES_GETTIMEOFFSET
select NEED_MACH_MEMORY_H
help
help
This is an evaluation board for the StrongARM processor available
This is an evaluation board for the StrongARM processor available
from Digital. It has limited hardware on-board, including an
from Digital. It has limited hardware on-board, including an
...
@@ -378,6 +391,7 @@ config ARCH_EP93XX
...
@@ -378,6 +391,7 @@ config ARCH_EP93XX
select ARCH_REQUIRE_GPIOLIB
select ARCH_REQUIRE_GPIOLIB
select ARCH_HAS_HOLES_MEMORYMODEL
select ARCH_HAS_HOLES_MEMORYMODEL
select ARCH_USES_GETTIMEOFFSET
select ARCH_USES_GETTIMEOFFSET
select NEED_MEMORY_H
help
help
This enables support for the Cirrus EP93xx series of CPUs.
This enables support for the Cirrus EP93xx series of CPUs.
...
@@ -386,6 +400,7 @@ config ARCH_FOOTBRIDGE
...
@@ -386,6 +400,7 @@ config ARCH_FOOTBRIDGE
select CPU_SA110
select CPU_SA110
select FOOTBRIDGE
select FOOTBRIDGE
select GENERIC_CLOCKEVENTS
select GENERIC_CLOCKEVENTS
select NEED_MACH_MEMORY_H
help
help
Support for systems based on the DC21285 companion chip
Support for systems based on the DC21285 companion chip
("FootBridge"), such as the Simtec CATS and the Rebel NetWinder.
("FootBridge"), such as the Simtec CATS and the Rebel NetWinder.
...
@@ -435,6 +450,7 @@ config ARCH_IOP13XX
...
@@ -435,6 +450,7 @@ config ARCH_IOP13XX
select PCI
select PCI
select ARCH_SUPPORTS_MSI
select ARCH_SUPPORTS_MSI
select VMSPLIT_1G
select VMSPLIT_1G
select NEED_MACH_MEMORY_H
help
help
Support for Intel's IOP13XX (XScale) family of processors.
Support for Intel's IOP13XX (XScale) family of processors.
...
@@ -465,6 +481,7 @@ config ARCH_IXP23XX
...
@@ -465,6 +481,7 @@ config ARCH_IXP23XX
select CPU_XSC3
select CPU_XSC3
select PCI
select PCI
select ARCH_USES_GETTIMEOFFSET
select ARCH_USES_GETTIMEOFFSET
select NEED_MACH_MEMORY_H
help
help
Support for Intel's IXP23xx (XScale) family of processors.
Support for Intel's IXP23xx (XScale) family of processors.
...
@@ -474,6 +491,7 @@ config ARCH_IXP2000
...
@@ -474,6 +491,7 @@ config ARCH_IXP2000
select CPU_XSCALE
select CPU_XSCALE
select PCI
select PCI
select ARCH_USES_GETTIMEOFFSET
select ARCH_USES_GETTIMEOFFSET
select NEED_MACH_MEMORY_H
help
help
Support for Intel's IXP2400/2800 (XScale) family of processors.
Support for Intel's IXP2400/2800 (XScale) family of processors.
...
@@ -567,6 +585,7 @@ config ARCH_KS8695
...
@@ -567,6 +585,7 @@ config ARCH_KS8695
select CPU_ARM922T
select CPU_ARM922T
select ARCH_REQUIRE_GPIOLIB
select ARCH_REQUIRE_GPIOLIB
select ARCH_USES_GETTIMEOFFSET
select ARCH_USES_GETTIMEOFFSET
select NEED_MACH_MEMORY_H
help
help
Support for Micrel/Kendin KS8695 "Centaur" (ARM922T) based
Support for Micrel/Kendin KS8695 "Centaur" (ARM922T) based
System-on-Chip devices.
System-on-Chip devices.
...
@@ -658,6 +677,7 @@ config ARCH_SHMOBILE
...
@@ -658,6 +677,7 @@ config ARCH_SHMOBILE
select SPARSE_IRQ
select SPARSE_IRQ
select MULTI_IRQ_HANDLER
select MULTI_IRQ_HANDLER
select PM_GENERIC_DOMAINS if PM
select PM_GENERIC_DOMAINS if PM
select NEED_MACH_MEMORY_H
help
help
Support for Renesas's SH-Mobile and R-Mobile ARM platforms.
Support for Renesas's SH-Mobile and R-Mobile ARM platforms.
...
@@ -672,6 +692,7 @@ config ARCH_RPC
...
@@ -672,6 +692,7 @@ config ARCH_RPC
select NO_IOPORT
select NO_IOPORT
select ARCH_SPARSEMEM_ENABLE
select ARCH_SPARSEMEM_ENABLE
select ARCH_USES_GETTIMEOFFSET
select ARCH_USES_GETTIMEOFFSET
select NEED_MACH_MEMORY_H
help
help
On the Acorn Risc-PC, Linux can support the internal IDE disk and
On the Acorn Risc-PC, Linux can support the internal IDE disk and
CD-ROM interface, serial and parallel port, and the floppy drive.
CD-ROM interface, serial and parallel port, and the floppy drive.
...
@@ -690,6 +711,7 @@ config ARCH_SA1100
...
@@ -690,6 +711,7 @@ config ARCH_SA1100
select HAVE_SCHED_CLOCK
select HAVE_SCHED_CLOCK
select TICK_ONESHOT
select TICK_ONESHOT
select ARCH_REQUIRE_GPIOLIB
select ARCH_REQUIRE_GPIOLIB
select NEED_MACH_MEMORY_H
help
help
Support for StrongARM 11x0 based boards.
Support for StrongARM 11x0 based boards.
...
@@ -782,6 +804,7 @@ config ARCH_S5PV210
...
@@ -782,6 +804,7 @@ config ARCH_S5PV210
select HAVE_S3C2410_I2C if I2C
select HAVE_S3C2410_I2C if I2C
select HAVE_S3C_RTC if RTC_CLASS
select HAVE_S3C_RTC if RTC_CLASS
select HAVE_S3C2410_WATCHDOG if WATCHDOG
select HAVE_S3C2410_WATCHDOG if WATCHDOG
select NEED_MACH_MEMORY_H
help
help
Samsung S5PV210/S5PC110 series based systems
Samsung S5PV210/S5PC110 series based systems
...
@@ -798,6 +821,7 @@ config ARCH_EXYNOS4
...
@@ -798,6 +821,7 @@ config ARCH_EXYNOS4
select HAVE_S3C_RTC if RTC_CLASS
select HAVE_S3C_RTC if RTC_CLASS
select HAVE_S3C2410_I2C if I2C
select HAVE_S3C2410_I2C if I2C
select HAVE_S3C2410_WATCHDOG if WATCHDOG
select HAVE_S3C2410_WATCHDOG if WATCHDOG
select NEED_MACH_MEMORY_H
help
help
Samsung EXYNOS4 series based systems
Samsung EXYNOS4 series based systems
...
@@ -809,6 +833,7 @@ config ARCH_SHARK
...
@@ -809,6 +833,7 @@ config ARCH_SHARK
select ZONE_DMA
select ZONE_DMA
select PCI
select PCI
select ARCH_USES_GETTIMEOFFSET
select ARCH_USES_GETTIMEOFFSET
select NEED_MACH_MEMORY_H
help
help
Support for the StrongARM based Digital DNARD machine, also known
Support for the StrongARM based Digital DNARD machine, also known
as "Shark" (<http://www.shark-linux.de/shark.html>).
as "Shark" (<http://www.shark-linux.de/shark.html>).
...
@@ -836,6 +861,7 @@ config ARCH_U300
...
@@ -836,6 +861,7 @@ config ARCH_U300
select CLKDEV_LOOKUP
select CLKDEV_LOOKUP
select HAVE_MACH_CLKDEV
select HAVE_MACH_CLKDEV
select GENERIC_GPIO
select GENERIC_GPIO
select NEED_MACH_MEMORY_H
help
help
Support for ST-Ericsson U300 series mobile platforms.
Support for ST-Ericsson U300 series mobile platforms.
...
...
arch/arm/Makefile
View file @
cefd3e71
...
@@ -128,6 +128,9 @@ textofs-$(CONFIG_PM_H1940) := 0x00108000
...
@@ -128,6 +128,9 @@ textofs-$(CONFIG_PM_H1940) := 0x00108000
ifeq
($(CONFIG_ARCH_SA1100),y)
ifeq
($(CONFIG_ARCH_SA1100),y)
textofs-$(CONFIG_SA1111)
:=
0x00208000
textofs-$(CONFIG_SA1111)
:=
0x00208000
endif
endif
textofs-$(CONFIG_ARCH_MSM7X30)
:=
0x00208000
textofs-$(CONFIG_ARCH_MSM8X60)
:=
0x00208000
textofs-$(CONFIG_ARCH_MSM8960)
:=
0x00208000
# Machine directory name. This list is sorted alphanumerically
# Machine directory name. This list is sorted alphanumerically
# by CONFIG_* macro name.
# by CONFIG_* macro name.
...
...
arch/arm/include/asm/memory.h
View file @
cefd3e71
...
@@ -16,9 +16,12 @@
...
@@ -16,9 +16,12 @@
#include <linux/compiler.h>
#include <linux/compiler.h>
#include <linux/const.h>
#include <linux/const.h>
#include <linux/types.h>
#include <linux/types.h>
#include <mach/memory.h>
#include <asm/sizes.h>
#include <asm/sizes.h>
#ifdef CONFIG_NEED_MACH_MEMORY_H
#include <mach/memory.h>
#endif
/*
/*
* Allow for constants defined here to be used from assembly code
* Allow for constants defined here to be used from assembly code
* by prepending the UL suffix only with actual C code compilation.
* by prepending the UL suffix only with actual C code compilation.
...
@@ -151,7 +154,6 @@
...
@@ -151,7 +154,6 @@
* so that all we need to do is modify the 8-bit constant field.
* so that all we need to do is modify the 8-bit constant field.
*/
*/
#define __PV_BITS_31_24 0x81000000
#define __PV_BITS_31_24 0x81000000
#define __PV_BITS_23_16 0x00810000
extern
unsigned
long
__pv_phys_offset
;
extern
unsigned
long
__pv_phys_offset
;
#define PHYS_OFFSET __pv_phys_offset
#define PHYS_OFFSET __pv_phys_offset
...
@@ -169,9 +171,6 @@ static inline unsigned long __virt_to_phys(unsigned long x)
...
@@ -169,9 +171,6 @@ static inline unsigned long __virt_to_phys(unsigned long x)
{
{
unsigned
long
t
;
unsigned
long
t
;
__pv_stub
(
x
,
t
,
"add"
,
__PV_BITS_31_24
);
__pv_stub
(
x
,
t
,
"add"
,
__PV_BITS_31_24
);
#ifdef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT
__pv_stub
(
t
,
t
,
"add"
,
__PV_BITS_23_16
);
#endif
return
t
;
return
t
;
}
}
...
@@ -179,9 +178,6 @@ static inline unsigned long __phys_to_virt(unsigned long x)
...
@@ -179,9 +178,6 @@ static inline unsigned long __phys_to_virt(unsigned long x)
{
{
unsigned
long
t
;
unsigned
long
t
;
__pv_stub
(
x
,
t
,
"sub"
,
__PV_BITS_31_24
);
__pv_stub
(
x
,
t
,
"sub"
,
__PV_BITS_31_24
);
#ifdef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT
__pv_stub
(
t
,
t
,
"sub"
,
__PV_BITS_23_16
);
#endif
return
t
;
return
t
;
}
}
#else
#else
...
@@ -191,7 +187,11 @@ static inline unsigned long __phys_to_virt(unsigned long x)
...
@@ -191,7 +187,11 @@ static inline unsigned long __phys_to_virt(unsigned long x)
#endif
#endif
#ifndef PHYS_OFFSET
#ifndef PHYS_OFFSET
#ifdef PLAT_PHYS_OFFSET
#define PHYS_OFFSET PLAT_PHYS_OFFSET
#define PHYS_OFFSET PLAT_PHYS_OFFSET
#else
#define PHYS_OFFSET UL(CONFIG_PHYS_OFFSET)
#endif
#endif
#endif
/*
/*
...
...
arch/arm/include/asm/module.h
View file @
cefd3e71
...
@@ -31,11 +31,7 @@ struct mod_arch_specific {
...
@@ -31,11 +31,7 @@ struct mod_arch_specific {
/* Add __virt_to_phys patching state as well */
/* Add __virt_to_phys patching state as well */
#ifdef CONFIG_ARM_PATCH_PHYS_VIRT
#ifdef CONFIG_ARM_PATCH_PHYS_VIRT
#ifdef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT
#define MODULE_ARCH_VERMAGIC_P2V "p2v16 "
#else
#define MODULE_ARCH_VERMAGIC_P2V "p2v8 "
#define MODULE_ARCH_VERMAGIC_P2V "p2v8 "
#endif
#else
#else
#define MODULE_ARCH_VERMAGIC_P2V ""
#define MODULE_ARCH_VERMAGIC_P2V ""
#endif
#endif
...
...
arch/arm/kernel/debug.S
View file @
cefd3e71
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#if defined(CONFIG_DEBUG_ICEDCC)
#if defined(CONFIG_DEBUG_ICEDCC)
@@
debug
using
ARM
EmbeddedICE
DCC
channel
@@
debug
using
ARM
EmbeddedICE
DCC
channel
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
.
endm
.
endm
#if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K) || defined(CONFIG_CPU_V7)
#if defined(CONFIG_CPU_V6) || defined(CONFIG_CPU_V6K) || defined(CONFIG_CPU_V7)
...
@@ -106,7 +106,7 @@
...
@@ -106,7 +106,7 @@
#ifdef CONFIG_MMU
#ifdef CONFIG_MMU
.
macro
addruart_current
,
rx
,
tmp1
,
tmp2
.
macro
addruart_current
,
rx
,
tmp1
,
tmp2
addruart
\
tmp1
,
\
tmp2
addruart
\
tmp1
,
\
tmp2
,
\
rx
mrc
p15
,
0
,
\
rx
,
c1
,
c0
mrc
p15
,
0
,
\
rx
,
c1
,
c0
tst
\
rx
,
#
1
tst
\
rx
,
#
1
moveq
\
rx
,
\
tmp1
moveq
\
rx
,
\
tmp1
...
...
arch/arm/kernel/head.S
View file @
cefd3e71
...
@@ -95,7 +95,7 @@ ENTRY(stext)
...
@@ -95,7 +95,7 @@ ENTRY(stext)
sub
r4
,
r3
,
r4
@
(
PHYS_OFFSET
-
PAGE_OFFSET
)
sub
r4
,
r3
,
r4
@
(
PHYS_OFFSET
-
PAGE_OFFSET
)
add
r8
,
r8
,
r4
@
PHYS_OFFSET
add
r8
,
r8
,
r4
@
PHYS_OFFSET
#else
#else
ldr
r8
,
=
P
LAT_PHYS_OFFSET
ldr
r8
,
=
P
HYS_OFFSET
@
always
constant
in
this
case
#endif
#endif
/
*
/
*
...
@@ -234,7 +234,7 @@ __create_page_tables:
...
@@ -234,7 +234,7 @@ __create_page_tables:
*
This
allows
debug
messages
to
be
output
*
This
allows
debug
messages
to
be
output
*
via
a
serial
console
before
paging_init
.
*
via
a
serial
console
before
paging_init
.
*/
*/
addruart
r7
,
r3
addruart
r7
,
r3
,
r0
mov
r3
,
r3
,
lsr
#
20
mov
r3
,
r3
,
lsr
#
20
mov
r3
,
r3
,
lsl
#
2
mov
r3
,
r3
,
lsl
#
2
...
@@ -488,13 +488,8 @@ __fixup_pv_table:
...
@@ -488,13 +488,8 @@ __fixup_pv_table:
add
r5
,
r5
,
r3
@
adjust
table
end
address
add
r5
,
r5
,
r3
@
adjust
table
end
address
add
r7
,
r7
,
r3
@
adjust
__pv_phys_offset
address
add
r7
,
r7
,
r3
@
adjust
__pv_phys_offset
address
str
r8
,
[
r7
]
@
save
computed
PHYS_OFFSET
to
__pv_phys_offset
str
r8
,
[
r7
]
@
save
computed
PHYS_OFFSET
to
__pv_phys_offset
#ifndef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT
mov
r6
,
r3
,
lsr
#
24
@
constant
for
add
/
sub
instructions
mov
r6
,
r3
,
lsr
#
24
@
constant
for
add
/
sub
instructions
teq
r3
,
r6
,
lsl
#
24
@
must
be
16
MiB
aligned
teq
r3
,
r6
,
lsl
#
24
@
must
be
16
MiB
aligned
#else
mov
r6
,
r3
,
lsr
#
16
@
constant
for
add
/
sub
instructions
teq
r3
,
r6
,
lsl
#
16
@
must
be
64
kiB
aligned
#endif
THUMB
(
it
ne
@
cross
section
branch
)
THUMB
(
it
ne
@
cross
section
branch
)
bne
__error
bne
__error
str
r6
,
[
r7
,
#
4
]
@
save
to
__pv_offset
str
r6
,
[
r7
,
#
4
]
@
save
to
__pv_offset
...
@@ -510,20 +505,8 @@ ENDPROC(__fixup_pv_table)
...
@@ -510,20 +505,8 @@ ENDPROC(__fixup_pv_table)
.
text
.
text
__fixup_a_pv_table
:
__fixup_a_pv_table
:
#ifdef CONFIG_THUMB2_KERNEL
#ifdef CONFIG_THUMB2_KERNEL
#ifdef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT
lsls
r6
,
#
24
lsls
r0
,
r6
,
#
24
beq
2
f
lsr
r6
,
#
8
beq
1
f
clz
r7
,
r0
lsr
r0
,
#
24
lsl
r0
,
r7
bic
r0
,
0x0080
lsrs
r7
,
#
1
orrcs
r0
,
#
0x0080
orr
r0
,
r0
,
r7
,
lsl
#
12
#endif
1
:
lsls
r6
,
#
24
beq
4
f
clz
r7
,
r6
clz
r7
,
r6
lsr
r6
,
#
24
lsr
r6
,
#
24
lsl
r6
,
r7
lsl
r6
,
r7
...
@@ -532,43 +515,25 @@ __fixup_a_pv_table:
...
@@ -532,43 +515,25 @@ __fixup_a_pv_table:
orrcs
r6
,
#
0x0080
orrcs
r6
,
#
0x0080
orr
r6
,
r6
,
r7
,
lsl
#
12
orr
r6
,
r6
,
r7
,
lsl
#
12
orr
r6
,
#
0x4000
orr
r6
,
#
0x4000
b
4
f
b
2
f
2
:
@
at
this
point
the
C
flag
is
always
clear
1
:
add
r7
,
r3
add
r7
,
r3
ldrh
ip
,
[
r7
,
#
2
]
#ifdef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT
ldrh
ip
,
[
r7
]
tst
ip
,
0x0400
@
the
i
bit
tells
us
LS
or
MS
byte
beq
3
f
cmp
r0
,
#
0
@
set
C
flag
,
and
...
biceq
ip
,
0x0400
@
immediate
zero
value
has
a
special
encoding
streqh
ip
,
[
r7
]
@
that
requires
the
i
bit
cleared
#endif
3
:
ldrh
ip
,
[
r7
,
#
2
]
and
ip
,
0x8f00
and
ip
,
0x8f00
orrcc
ip
,
r6
@
mask
in
offset
bits
31
-
24
orr
ip
,
r6
@
mask
in
offset
bits
31
-
24
orrcs
ip
,
r0
@
mask
in
offset
bits
23
-
16
strh
ip
,
[
r7
,
#
2
]
strh
ip
,
[
r7
,
#
2
]
4
:
cmp
r4
,
r5
2
:
cmp
r4
,
r5
ldrcc
r7
,
[
r4
],
#
4
@
use
branch
for
delay
slot
ldrcc
r7
,
[
r4
],
#
4
@
use
branch
for
delay
slot
bcc
2
b
bcc
1
b
bx
lr
bx
lr
#else
#else
#ifdef CONFIG_ARM_PATCH_PHYS_VIRT_16BIT
b
2
f
and
r0
,
r6
,
#
255
@
offset
bits
23
-
16
1
:
ldr
ip
,
[
r7
,
r3
]
mov
r6
,
r6
,
lsr
#
8
@
offset
bits
31
-
24
#else
mov
r0
,
#
0
@
just
in
case
...
#endif
b
3
f
2
:
ldr
ip
,
[
r7
,
r3
]
bic
ip
,
ip
,
#
0x000000ff
bic
ip
,
ip
,
#
0x000000ff
tst
ip
,
#
0x400
@
rotate
shift
tells
us
LS
or
MS
byte
orr
ip
,
ip
,
r6
@
mask
in
offset
bits
31
-
24
orrne
ip
,
ip
,
r6
@
mask
in
offset
bits
31
-
24
orreq
ip
,
ip
,
r0
@
mask
in
offset
bits
23
-
16
str
ip
,
[
r7
,
r3
]
str
ip
,
[
r7
,
r3
]
3
:
cmp
r4
,
r5
2
:
cmp
r4
,
r5
ldrcc
r7
,
[
r4
],
#
4
@
use
branch
for
delay
slot
ldrcc
r7
,
[
r4
],
#
4
@
use
branch
for
delay
slot
bcc
2
b
bcc
1
b
mov
pc
,
lr
mov
pc
,
lr
#endif
#endif
ENDPROC
(
__fixup_a_pv_table
)
ENDPROC
(
__fixup_a_pv_table
)
...
...
arch/arm/mach-at91/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
#include <mach/hardware.h>
#include <mach/hardware.h>
#include <mach/at91_dbgu.h>
#include <mach/at91_dbgu.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=(
AT91_BASE_SYS
+
AT91_DBGU
)
@
System
peripherals
(
phys
address
)
ldr
\
rp
,
=(
AT91_BASE_SYS
+
AT91_DBGU
)
@
System
peripherals
(
phys
address
)
ldr
\
rv
,
=(
AT91_VA_BASE_SYS
+
AT91_DBGU
)
@
System
peripherals
(
virt
address
)
ldr
\
rv
,
=(
AT91_VA_BASE_SYS
+
AT91_DBGU
)
@
System
peripherals
(
virt
address
)
.
endm
.
endm
...
...
arch/arm/mach-bcmring/include/mach/hardware.h
View file @
cefd3e71
...
@@ -22,7 +22,6 @@
...
@@ -22,7 +22,6 @@
#define __ASM_ARCH_HARDWARE_H
#define __ASM_ARCH_HARDWARE_H
#include <asm/sizes.h>
#include <asm/sizes.h>
#include <mach/memory.h>
#include <cfg_global.h>
#include <cfg_global.h>
#include <mach/csp/mm_io.h>
#include <mach/csp/mm_io.h>
...
@@ -31,7 +30,7 @@
...
@@ -31,7 +30,7 @@
* *_SIZE is the size of the region
* *_SIZE is the size of the region
* *_BASE is the virtual address
* *_BASE is the virtual address
*/
*/
#define RAM_START P
LAT_P
HYS_OFFSET
#define RAM_START PHYS_OFFSET
#define RAM_SIZE (CFG_GLOBAL_RAM_SIZE-CFG_GLOBAL_RAM_SIZE_RESERVED)
#define RAM_SIZE (CFG_GLOBAL_RAM_SIZE-CFG_GLOBAL_RAM_SIZE_RESERVED)
#define RAM_BASE PAGE_OFFSET
#define RAM_BASE PAGE_OFFSET
...
...
arch/arm/mach-bcmring/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*****************************************************************************
* Copyright 2005 - 2008 Broadcom Corporation. All rights reserved.
*
* Unless you and Broadcom execute a separate written software license
* agreement governing use of this software, this software is licensed to you
* under the terms of the GNU General Public License version 2, available at
* http://www.broadcom.com/licenses/GPLv2.php (the "GPL").
*
* Notwithstanding the above, under no circumstances may you combine this
* software in any way with any other Broadcom software provided under a
* license other than the GPL, without Broadcom's express prior written
* consent.
*****************************************************************************/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#include <cfg_global.h>
/*
* Physical vs virtual RAM address space conversion. These are
* private definitions which should NOT be used outside memory.h
* files. Use virt_to_phys/phys_to_virt/__pa/__va instead.
*/
#define PLAT_PHYS_OFFSET CFG_GLOBAL_RAM_BASE
#endif
arch/arm/mach-clps711x/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
#include <mach/hardware.h>
#include <mach/hardware.h>
#include <asm/hardware/clps7111.h>
#include <asm/hardware/clps7111.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
#ifndef CONFIG_DEBUG_CLPS711X_UART2
#ifndef CONFIG_DEBUG_CLPS711X_UART2
mov
\
rp
,
#
0x0000
@
UART1
mov
\
rp
,
#
0x0000
@
UART1
#else
#else
...
...
arch/arm/mach-cns3xxx/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
*
published
by
the
Free
Software
Foundation
.
*
published
by
the
Free
Software
Foundation
.
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x00009000
mov
\
rp
,
#
0x00009000
orr
\
rv
,
\
rp
,
#
0xf0000000
@
virtual
base
orr
\
rv
,
\
rp
,
#
0xf0000000
@
virtual
base
orr
\
rp
,
\
rp
,
#
0x10000000
orr
\
rp
,
\
rp
,
#
0x10000000
...
...
arch/arm/mach-cns3xxx/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* Copyright 2003 ARM Limited
* Copyright 2008 Cavium Networks
*
* This file is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License, Version 2, as
* published by the Free Software Foundation.
*/
#ifndef __MACH_MEMORY_H
#define __MACH_MEMORY_H
/*
* Physical DRAM offset.
*/
#define PLAT_PHYS_OFFSET UL(0x00000000)
#define __phys_to_bus(x) ((x) + PHYS_OFFSET)
#define __bus_to_phys(x) ((x) - PHYS_OFFSET)
#define __virt_to_bus(v) __phys_to_bus(__virt_to_phys(v))
#define __bus_to_virt(b) __phys_to_virt(__bus_to_phys(b))
#define __pfn_to_bus(p) __phys_to_bus(__pfn_to_phys(p))
#define __bus_to_pfn(b) __phys_to_pfn(__bus_to_phys(b))
#endif
arch/arm/mach-davinci/cpuidle.c
View file @
cefd3e71
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#include <asm/proc-fns.h>
#include <asm/proc-fns.h>
#include <mach/cpuidle.h>
#include <mach/cpuidle.h>
#include <mach/
memory
.h>
#include <mach/
ddr2
.h>
#define DAVINCI_CPUIDLE_MAX_STATES 2
#define DAVINCI_CPUIDLE_MAX_STATES 2
...
...
arch/arm/mach-davinci/include/mach/ddr2.h
0 → 100644
View file @
cefd3e71
#define DDR2_SDRCR_OFFSET 0xc
#define DDR2_SRPD_BIT (1 << 23)
#define DDR2_MCLKSTOPEN_BIT (1 << 30)
#define DDR2_LPMODEN_BIT (1 << 31)
arch/arm/mach-davinci/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -18,56 +18,50 @@
...
@@ -18,56 +18,50 @@
#include <linux/serial_reg.h>
#include <linux/serial_reg.h>
#include <asm/memory.h>
#include <mach/serial.h>
#include <mach/serial.h>
#define UART_SHIFT 2
#define UART_SHIFT 2
#define davinci_uart_v2p(x) ((x) - PAGE_OFFSET + PLAT_PHYS_OFFSET)
#define davinci_uart_p2v(x) ((x) - PLAT_PHYS_OFFSET + PAGE_OFFSET)
.
pushsection
.
data
.
pushsection
.
data
davinci_uart_phys
:
.
word
0
davinci_uart_phys
:
.
word
0
davinci_uart_virt
:
.
word
0
davinci_uart_virt
:
.
word
0
.
popsection
.
popsection
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
/
*
Use
davinci_uart_phys
/
virt
if
already
configured
*/
/
*
Use
davinci_uart_phys
/
virt
if
already
configured
*/
10
:
mrc
p15
,
0
,
\
rp
,
c1
,
c0
10
:
adr
\
rp
,
99
f
@
get
effective
addr
of
99
f
tst
\
rp
,
#
1
@
MMU
enabled
?
ldr
\
rv
,
[
\
rp
]
@
get
absolute
addr
of
99
f
ldreq
\
rp
,
=
davinci_uart_v2p
(
davinci_uart_phys
)
sub
\
rv
,
\
rv
,
\
rp
@
offset
between
the
two
ldr
ne
\
rp
,
=
davinci
_uart_phys
ldr
\
rp
,
[
\
rp
,
#
4
]
@
abs
addr
of
omap
_uart_phys
add
\
rv
,
\
rp
,
#
4
@
davinci_uart_virt
sub
\
tmp
,
\
rp
,
\
rv
@
make
it
effective
ldr
\
rp
,
[
\
rp
,
#
0
]
ldr
\
rp
,
[
\
tmp
,
#
0
]
@
davinci_uart_phys
ldr
\
rv
,
[
\
rv
,
#
0
]
ldr
\
rv
,
[
\
tmp
,
#
4
]
@
davinci_uart_virt
cmp
\
rp
,
#
0
@
is
port
configured
?
cmp
\
rp
,
#
0
@
is
port
configured
?
cmpne
\
rv
,
#
0
cmpne
\
rv
,
#
0
bne
99
f
@
already
configured
bne
100
f
@
already
configured
/
*
Check
the
debug
UART
address
set
in
uncompress
.
h
*/
/
*
Check
the
debug
UART
address
set
in
uncompress
.
h
*/
mrc
p15
,
0
,
\
rp
,
c1
,
c0
and
\
rp
,
pc
,
#
0xff000000
tst
\
rp
,
#
1
@
MMU
enabled
?
ldr
\
rv
,
=
DAVINCI_UART_INFO_OFS
add
\
rp
,
\
rp
,
\
rv
/
*
Copy
uart
phys
address
from
decompressor
uart
info
*/
/
*
Copy
uart
phys
address
from
decompressor
uart
info
*/
ldreq
\
rv
,
=
davinci_uart_v2p
(
davinci_uart_phys
)
ldr
\
rv
,
[
\
rp
,
#
0
]
ldrne
\
rv
,
=
davinci_uart_phys
str
\
rv
,
[
\
tmp
,
#
0
]
ldreq
\
rp
,
=
DAVINCI_UART_INFO
ldrne
\
rp
,
=
davinci_uart_p2v
(
DAVINCI_UART_INFO
)
ldr
\
rp
,
[
\
rp
,
#
0
]
str
\
rp
,
[
\
rv
]
/
*
Copy
uart
virt
address
from
decompressor
uart
info
*/
/
*
Copy
uart
virt
address
from
decompressor
uart
info
*/
ldreq
\
rv
,
=
davinci_uart_v2p
(
davinci_uart_virt
)
ldr
\
rv
,
[
\
rp
,
#
4
]
ldrne
\
rv
,
=
davinci_uart_virt
str
\
rv
,
[
\
tmp
,
#
4
]
ldreq
\
rp
,
=
DAVINCI_UART_INFO
ldrne
\
rp
,
=
davinci_uart_p2v
(
DAVINCI_UART_INFO
)
ldr
\
rp
,
[
\
rp
,
#
4
]
str
\
rp
,
[
\
rv
]
b
10
b
b
10
b
99
:
.
align
99
:
.
word
.
.
word
davinci_uart_phys
.
ltorg
100
:
.
endm
.
endm
.
macro
senduart
,
rd
,
rx
.
macro
senduart
,
rd
,
rx
...
...
arch/arm/mach-davinci/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* DaVinci memory space definitions
*
* Author: Kevin Hilman, MontaVista Software, Inc. <source@mvista.com>
*
* 2007 (c) MontaVista Software, Inc. This file is licensed under
* the terms of the GNU General Public License version 2. This program
* is licensed "as is" without any warranty of any kind, whether express
* or implied.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
/**************************************************************************
* Included Files
**************************************************************************/
#include <asm/page.h>
#include <asm/sizes.h>
/**************************************************************************
* Definitions
**************************************************************************/
#define DAVINCI_DDR_BASE 0x80000000
#define DA8XX_DDR_BASE 0xc0000000
#if defined(CONFIG_ARCH_DAVINCI_DA8XX) && defined(CONFIG_ARCH_DAVINCI_DMx)
#error Cannot enable DaVinci and DA8XX platforms concurrently
#elif defined(CONFIG_ARCH_DAVINCI_DA8XX)
#define PLAT_PHYS_OFFSET DA8XX_DDR_BASE
#else
#define PLAT_PHYS_OFFSET DAVINCI_DDR_BASE
#endif
#define DDR2_SDRCR_OFFSET 0xc
#define DDR2_SRPD_BIT BIT(23)
#define DDR2_MCLKSTOPEN_BIT BIT(30)
#define DDR2_LPMODEN_BIT BIT(31)
#endif
/* __ASM_ARCH_MEMORY_H */
arch/arm/mach-davinci/include/mach/serial.h
View file @
cefd3e71
...
@@ -21,8 +21,9 @@
...
@@ -21,8 +21,9 @@
* macros in debug-macro.S.
* macros in debug-macro.S.
*
*
* This area sits just below the page tables (see arch/arm/kernel/head.S).
* This area sits just below the page tables (see arch/arm/kernel/head.S).
* We define it as a relative offset from start of usable RAM.
*/
*/
#define DAVINCI_UART_INFO
(PLAT_PHYS_OFFSET + 0x3ff8)
#define DAVINCI_UART_INFO
_OFS 0x3ff8
#define DAVINCI_UART0_BASE (IO_PHYS + 0x20000)
#define DAVINCI_UART0_BASE (IO_PHYS + 0x20000)
#define DAVINCI_UART1_BASE (IO_PHYS + 0x20400)
#define DAVINCI_UART1_BASE (IO_PHYS + 0x20400)
...
...
arch/arm/mach-davinci/include/mach/uncompress.h
View file @
cefd3e71
...
@@ -43,7 +43,12 @@ static inline void flush(void)
...
@@ -43,7 +43,12 @@ static inline void flush(void)
static
inline
void
set_uart_info
(
u32
phys
,
void
*
__iomem
virt
)
static
inline
void
set_uart_info
(
u32
phys
,
void
*
__iomem
virt
)
{
{
u32
*
uart_info
=
(
u32
*
)(
DAVINCI_UART_INFO
);
/*
* Get address of some.bss variable and round it down
* a la CONFIG_AUTO_ZRELADDR.
*/
u32
ram_start
=
(
u32
)
&
uart
&
0xf8000000
;
u32
*
uart_info
=
(
u32
*
)(
ram_start
+
DAVINCI_UART_INFO_OFS
);
uart
=
(
u32
*
)
phys
;
uart
=
(
u32
*
)
phys
;
uart_info
[
0
]
=
phys
;
uart_info
[
0
]
=
phys
;
...
...
arch/arm/mach-davinci/sleep.S
View file @
cefd3e71
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
#include <linux/linkage.h>
#include <linux/linkage.h>
#include <asm/assembler.h>
#include <asm/assembler.h>
#include <mach/psc.h>
#include <mach/psc.h>
#include <mach/
memory
.h>
#include <mach/
ddr2
.h>
#include "clock.h"
#include "clock.h"
...
...
arch/arm/mach-dove/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#include <mach/bridge-regs.h>
#include <mach/bridge-regs.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
DOVE_SB_REGS_PHYS_BASE
ldr
\
rp
,
=
DOVE_SB_REGS_PHYS_BASE
ldr
\
rv
,
=
DOVE_SB_REGS_VIRT_BASE
ldr
\
rv
,
=
DOVE_SB_REGS_VIRT_BASE
orr
\
rp
,
\
rp
,
#
0x00012000
orr
\
rp
,
\
rp
,
#
0x00012000
...
...
arch/arm/mach-dove/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-dove/include/mach/memory.h
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x00000000)
#endif
arch/arm/mach-ebsa110/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
**/
**/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0xf0000000
mov
\
rp
,
#
0xf0000000
orr
\
rp
,
\
rp
,
#
0x00000be0
orr
\
rp
,
\
rp
,
#
0x00000be0
mov
\
rp
,
\
rv
mov
\
rp
,
\
rv
...
...
arch/arm/mach-ep93xx/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*/
*/
#include <mach/ep93xx-regs.h>
#include <mach/ep93xx-regs.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
EP93XX_APB_PHYS_BASE
@
Physical
base
ldr
\
rp
,
=
EP93XX_APB_PHYS_BASE
@
Physical
base
ldr
\
rv
,
=
EP93XX_APB_VIRT_BASE
@
virtual
base
ldr
\
rv
,
=
EP93XX_APB_VIRT_BASE
@
virtual
base
orr
\
rp
,
\
rp
,
#
0x000c0000
orr
\
rp
,
\
rp
,
#
0x000c0000
...
...
arch/arm/mach-exynos4/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
*
aligned
and
add
in
the
offset
when
we
load
the
value
here
.
*
aligned
and
add
in
the
offset
when
we
load
the
value
here
.
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
S3C_PA_UART
ldr
\
rp
,
=
S3C_PA_UART
ldr
\
rv
,
=
S3C_VA_UART
ldr
\
rv
,
=
S3C_VA_UART
#if CONFIG_DEBUG_S3C_UART != 0
#if CONFIG_DEBUG_S3C_UART != 0
...
...
arch/arm/mach-footbridge/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
#ifndef CONFIG_DEBUG_DC21285_PORT
#ifndef CONFIG_DEBUG_DC21285_PORT
/
*
For
NetWinder
debugging
*/
/
*
For
NetWinder
debugging
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x000003f8
mov
\
rp
,
#
0x000003f8
orr
\
rv
,
\
rp
,
#
0xff000000
@
virtual
orr
\
rv
,
\
rp
,
#
0xff000000
@
virtual
orr
\
rp
,
\
rp
,
#
0x7c000000
@
physical
orr
\
rp
,
\
rp
,
#
0x7c000000
@
physical
...
@@ -31,7 +31,7 @@
...
@@ -31,7 +31,7 @@
.
equ
dc21285_high
,
ARMCSR_BASE
&
0xff000000
.
equ
dc21285_high
,
ARMCSR_BASE
&
0xff000000
.
equ
dc21285_low
,
ARMCSR_BASE
&
0x00ffffff
.
equ
dc21285_low
,
ARMCSR_BASE
&
0x00ffffff
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
.
if
dc21285_low
.
if
dc21285_low
mov
\
rp
,
#
dc21285_low
mov
\
rp
,
#
dc21285_low
.
else
.
else
...
...
arch/arm/mach-gemini/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*/
*/
#include <mach/hardware.h>
#include <mach/hardware.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
GEMINI_UART_BASE
@
physical
ldr
\
rp
,
=
GEMINI_UART_BASE
@
physical
ldr
\
rv
,
=
IO_ADDRESS
(
GEMINI_UART_BASE
)
@
virtual
ldr
\
rv
,
=
IO_ADDRESS
(
GEMINI_UART_BASE
)
@
virtual
.
endm
.
endm
...
...
arch/arm/mach-gemini/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* Copyright (C) 2001-2006 Storlink, Corp.
* Copyright (C) 2008-2009 Paulius Zaleckas <paulius.zaleckas@teltonika.lt>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef __MACH_MEMORY_H
#define __MACH_MEMORY_H
#ifdef CONFIG_GEMINI_MEM_SWAP
# define PLAT_PHYS_OFFSET UL(0x00000000)
#else
# define PLAT_PHYS_OFFSET UL(0x10000000)
#endif
#endif
/* __MACH_MEMORY_H */
arch/arm/mach-h720x/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
.
equ
io_virt
,
IO_VIRT
.
equ
io_virt
,
IO_VIRT
.
equ
io_phys
,
IO_PHYS
.
equ
io_phys
,
IO_PHYS
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x00020000
@
UART1
mov
\
rp
,
#
0x00020000
@
UART1
add
\
rv
,
\
rp
,
#
io_virt
@
virtual
address
add
\
rv
,
\
rp
,
#
io_virt
@
virtual
address
add
\
rp
,
\
rp
,
#
io_phys
@
physical
base
address
add
\
rp
,
\
rp
,
#
io_phys
@
physical
base
address
...
...
arch/arm/mach-h720x/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-h720x/include/mach/memory.h
*
* Copyright (c) 2000 Jungjun Kim
*
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x40000000)
#endif
arch/arm/mach-integrator/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x16000000
@
physical
base
address
mov
\
rp
,
#
0x16000000
@
physical
base
address
mov
\
rv
,
#
0xf0000000
@
virtual
base
mov
\
rv
,
#
0xf0000000
@
virtual
base
add
\
rv
,
\
rv
,
#
0x16000000
>>
4
add
\
rv
,
\
rv
,
#
0x16000000
>>
4
...
...
arch/arm/mach-iop13xx/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
published
by
the
Free
Software
Foundation
.
*
published
by
the
Free
Software
Foundation
.
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x00002300
mov
\
rp
,
#
0x00002300
orr
\
rp
,
\
rp
,
#
0x00000040
orr
\
rp
,
\
rp
,
#
0x00000040
orr
\
rv
,
\
rp
,
#
0xfe000000
@
virtual
orr
\
rv
,
\
rp
,
#
0xfe000000
@
virtual
...
...
arch/arm/mach-iop32x/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
published
by
the
Free
Software
Foundation
.
*
published
by
the
Free
Software
Foundation
.
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0xfe000000
@
physical
as
well
as
virtual
mov
\
rp
,
#
0xfe000000
@
physical
as
well
as
virtual
orr
\
rp
,
\
rp
,
#
0x00800000
@
location
of
the
UART
orr
\
rp
,
\
rp
,
#
0x00800000
@
location
of
the
UART
mov
\
rv
,
\
rp
mov
\
rv
,
\
rp
...
...
arch/arm/mach-iop32x/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-iop32x/include/mach/memory.h
*/
#ifndef __MEMORY_H
#define __MEMORY_H
/*
* Physical DRAM offset.
*/
#define PLAT_PHYS_OFFSET UL(0xa0000000)
#endif
arch/arm/mach-iop33x/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
published
by
the
Free
Software
Foundation
.
*
published
by
the
Free
Software
Foundation
.
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x00ff0000
mov
\
rp
,
#
0x00ff0000
orr
\
rp
,
\
rp
,
#
0x0000f700
orr
\
rp
,
\
rp
,
#
0x0000f700
orr
\
rv
,
#
0xfe000000
@
virtual
orr
\
rv
,
#
0xfe000000
@
virtual
...
...
arch/arm/mach-iop33x/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-iop33x/include/mach/memory.h
*/
#ifndef __MEMORY_H
#define __MEMORY_H
/*
* Physical DRAM offset.
*/
#define PLAT_PHYS_OFFSET UL(0x00000000)
#endif
arch/arm/mach-ixp2000/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x00030000
mov
\
rp
,
#
0x00030000
#ifdef __ARMEB__
#ifdef __ARMEB__
orr
\
rp
,
\
rp
,
#
0x00000003
orr
\
rp
,
\
rp
,
#
0x00000003
...
...
arch/arm/mach-ixp23xx/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
*/
*/
#include <mach/ixp23xx.h>
#include <mach/ixp23xx.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
IXP23XX_PERIPHERAL_PHYS
@
physical
ldr
\
rp
,
=
IXP23XX_PERIPHERAL_PHYS
@
physical
ldr
\
rv
,
=
IXP23XX_PERIPHERAL_VIRT
@
virtual
ldr
\
rv
,
=
IXP23XX_PERIPHERAL_VIRT
@
virtual
#ifdef __ARMEB__
#ifdef __ARMEB__
...
...
arch/arm/mach-ixp4xx/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
*
published
by
the
Free
Software
Foundation
.
*
published
by
the
Free
Software
Foundation
.
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
#ifdef __ARMEB__
#ifdef __ARMEB__
mov
\
rp
,
#
3
@
Uart
regs
are
at
off
set
of
3
if
mov
\
rp
,
#
3
@
Uart
regs
are
at
off
set
of
3
if
@
byte
writes
used
-
Big
Endian
.
@
byte
writes
used
-
Big
Endian
.
...
...
arch/arm/mach-ixp4xx/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-ixp4xx/include/mach/memory.h
*
* Copyright (c) 2001-2004 MontaVista Software, Inc.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#include <asm/sizes.h>
/*
* Physical DRAM offset.
*/
#define PLAT_PHYS_OFFSET UL(0x00000000)
#endif
arch/arm/mach-kirkwood/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#include <mach/bridge-regs.h>
#include <mach/bridge-regs.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
KIRKWOOD_REGS_PHYS_BASE
ldr
\
rp
,
=
KIRKWOOD_REGS_PHYS_BASE
ldr
\
rv
,
=
KIRKWOOD_REGS_VIRT_BASE
ldr
\
rv
,
=
KIRKWOOD_REGS_VIRT_BASE
orr
\
rp
,
\
rp
,
#
0x00012000
orr
\
rp
,
\
rp
,
#
0x00012000
...
...
arch/arm/mach-kirkwood/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-kirkwood/include/mach/memory.h
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x00000000)
#endif
arch/arm/mach-ks8695/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
#include <mach/hardware.h>
#include <mach/hardware.h>
#include <mach/regs-uart.h>
#include <mach/regs-uart.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
KS8695_UART_PA
@
physical
base
address
ldr
\
rp
,
=
KS8695_UART_PA
@
physical
base
address
ldr
\
rv
,
=
KS8695_UART_VA
@
virtual
base
address
ldr
\
rv
,
=
KS8695_UART_VA
@
virtual
base
address
.
endm
.
endm
...
...
arch/arm/mach-l7200/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
.
equ
io_virt
,
IO_BASE
.
equ
io_virt
,
IO_BASE
.
equ
io_phys
,
IO_START
.
equ
io_phys
,
IO_START
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x00044000
@
UART1
mov
\
rp
,
#
0x00044000
@
UART1
@
mov
\
rp
,
#
0x00045000
@
UART2
@
mov
\
rp
,
#
0x00045000
@
UART2
add
\
rv
,
\
rp
,
#
io_virt
@
virtual
address
add
\
rv
,
\
rp
,
#
io_virt
@
virtual
address
...
...
arch/arm/mach-lpc32xx/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
*
Debug
output
is
hardcoded
to
standard
UART
5
*
Debug
output
is
hardcoded
to
standard
UART
5
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldreq
\
rp
,
=
0x40090000
ldreq
\
rp
,
=
0x40090000
ldrne
\
rv
,
=
0xF4090000
ldrne
\
rv
,
=
0xF4090000
.
endm
.
endm
...
...
arch/arm/mach-lpc32xx/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-lpc32xx/include/mach/memory.h
*
* Author: Kevin Wells <kevin.wells@nxp.com>
*
* Copyright (C) 2010 NXP Semiconductors
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
/*
* Physical DRAM offset of bank 0
*/
#define PLAT_PHYS_OFFSET UL(0x80000000)
#endif
arch/arm/mach-mmp/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
#include <mach/addr-map.h>
#include <mach/addr-map.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
APB_PHYS_BASE
@
physical
ldr
\
rp
,
=
APB_PHYS_BASE
@
physical
ldr
\
rv
,
=
APB_VIRT_BASE
@
virtual
ldr
\
rv
,
=
APB_VIRT_BASE
@
virtual
orr
\
rp
,
\
rp
,
#
0x00017000
orr
\
rp
,
\
rp
,
#
0x00017000
...
...
arch/arm/mach-mmp/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* linux/arch/arm/mach-mmp/include/mach/memory.h
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_MACH_MEMORY_H
#define __ASM_MACH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x00000000)
#endif
/* __ASM_MACH_MEMORY_H */
arch/arm/mach-msm/board-msm7x30.c
View file @
cefd3e71
...
@@ -24,6 +24,7 @@
...
@@ -24,6 +24,7 @@
#include <linux/smsc911x.h>
#include <linux/smsc911x.h>
#include <linux/usb/msm_hsusb.h>
#include <linux/usb/msm_hsusb.h>
#include <linux/clkdev.h>
#include <linux/clkdev.h>
#include <linux/memblock.h>
#include <asm/mach-types.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/arch.h>
...
@@ -42,6 +43,21 @@
...
@@ -42,6 +43,21 @@
extern
struct
sys_timer
msm_timer
;
extern
struct
sys_timer
msm_timer
;
static
void
__init
msm7x30_fixup
(
struct
machine_desc
*
desc
,
struct
tag
*
tag
,
char
**
cmdline
,
struct
meminfo
*
mi
)
{
for
(;
tag
->
hdr
.
size
;
tag
=
tag_next
(
tag
))
if
(
tag
->
hdr
.
tag
==
ATAG_MEM
&&
tag
->
u
.
mem
.
start
==
0x200000
)
{
tag
->
u
.
mem
.
start
=
0
;
tag
->
u
.
mem
.
size
+=
SZ_2M
;
}
}
static
void
__init
msm7x30_reserve
(
void
)
{
memblock_remove
(
0x0
,
SZ_2M
);
}
static
int
hsusb_phy_init_seq
[]
=
{
static
int
hsusb_phy_init_seq
[]
=
{
0x30
,
0x32
,
/* Enable and set Pre-Emphasis Depth to 20% */
0x30
,
0x32
,
/* Enable and set Pre-Emphasis Depth to 20% */
0x02
,
0x36
,
/* Disable CDR Auto Reset feature */
0x02
,
0x36
,
/* Disable CDR Auto Reset feature */
...
@@ -107,6 +123,8 @@ static void __init msm7x30_map_io(void)
...
@@ -107,6 +123,8 @@ static void __init msm7x30_map_io(void)
MACHINE_START
(
MSM7X30_SURF
,
"QCT MSM7X30 SURF"
)
MACHINE_START
(
MSM7X30_SURF
,
"QCT MSM7X30 SURF"
)
.
atag_offset
=
0x100
,
.
atag_offset
=
0x100
,
.
fixup
=
msm7x30_fixup
,
.
reserve
=
msm7x30_reserve
,
.
map_io
=
msm7x30_map_io
,
.
map_io
=
msm7x30_map_io
,
.
init_irq
=
msm7x30_init_irq
,
.
init_irq
=
msm7x30_init_irq
,
.
init_machine
=
msm7x30_init
,
.
init_machine
=
msm7x30_init
,
...
@@ -115,6 +133,8 @@ MACHINE_END
...
@@ -115,6 +133,8 @@ MACHINE_END
MACHINE_START
(
MSM7X30_FFA
,
"QCT MSM7X30 FFA"
)
MACHINE_START
(
MSM7X30_FFA
,
"QCT MSM7X30 FFA"
)
.
atag_offset
=
0x100
,
.
atag_offset
=
0x100
,
.
fixup
=
msm7x30_fixup
,
.
reserve
=
msm7x30_reserve
,
.
map_io
=
msm7x30_map_io
,
.
map_io
=
msm7x30_map_io
,
.
init_irq
=
msm7x30_init_irq
,
.
init_irq
=
msm7x30_init_irq
,
.
init_machine
=
msm7x30_init
,
.
init_machine
=
msm7x30_init
,
...
@@ -123,6 +143,8 @@ MACHINE_END
...
@@ -123,6 +143,8 @@ MACHINE_END
MACHINE_START
(
MSM7X30_FLUID
,
"QCT MSM7X30 FLUID"
)
MACHINE_START
(
MSM7X30_FLUID
,
"QCT MSM7X30 FLUID"
)
.
atag_offset
=
0x100
,
.
atag_offset
=
0x100
,
.
fixup
=
msm7x30_fixup
,
.
reserve
=
msm7x30_reserve
,
.
map_io
=
msm7x30_map_io
,
.
map_io
=
msm7x30_map_io
,
.
init_irq
=
msm7x30_init_irq
,
.
init_irq
=
msm7x30_init_irq
,
.
init_machine
=
msm7x30_init
,
.
init_machine
=
msm7x30_init
,
...
...
arch/arm/mach-msm/board-msm8960.c
View file @
cefd3e71
...
@@ -20,16 +20,34 @@
...
@@ -20,16 +20,34 @@
#include <linux/io.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/irq.h>
#include <linux/clkdev.h>
#include <linux/clkdev.h>
#include <linux/memblock.h>
#include <asm/mach-types.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/arch.h>
#include <asm/hardware/gic.h>
#include <asm/hardware/gic.h>
#include <asm/setup.h>
#include <mach/board.h>
#include <mach/board.h>
#include <mach/msm_iomap.h>
#include <mach/msm_iomap.h>
#include "devices.h"
#include "devices.h"
static
void
__init
msm8960_fixup
(
struct
machine_desc
*
desc
,
struct
tag
*
tag
,
char
**
cmdline
,
struct
meminfo
*
mi
)
{
for
(;
tag
->
hdr
.
size
;
tag
=
tag_next
(
tag
))
if
(
tag
->
hdr
.
tag
==
ATAG_MEM
&&
tag
->
u
.
mem
.
start
==
0x40200000
)
{
tag
->
u
.
mem
.
start
=
0x40000000
;
tag
->
u
.
mem
.
size
+=
SZ_2M
;
}
}
static
void
__init
msm8960_reserve
(
void
)
{
memblock_remove
(
0x40000000
,
SZ_2M
);
}
static
void
__init
msm8960_map_io
(
void
)
static
void
__init
msm8960_map_io
(
void
)
{
{
msm_map_msm8960_io
();
msm_map_msm8960_io
();
...
@@ -76,6 +94,8 @@ static void __init msm8960_rumi3_init(void)
...
@@ -76,6 +94,8 @@ static void __init msm8960_rumi3_init(void)
}
}
MACHINE_START
(
MSM8960_SIM
,
"QCT MSM8960 SIMULATOR"
)
MACHINE_START
(
MSM8960_SIM
,
"QCT MSM8960 SIMULATOR"
)
.
fixup
=
msm8960_fixup
,
.
reserve
=
msm8960_reserve
,
.
map_io
=
msm8960_map_io
,
.
map_io
=
msm8960_map_io
,
.
init_irq
=
msm8960_init_irq
,
.
init_irq
=
msm8960_init_irq
,
.
timer
=
&
msm_timer
,
.
timer
=
&
msm_timer
,
...
@@ -83,6 +103,8 @@ MACHINE_START(MSM8960_SIM, "QCT MSM8960 SIMULATOR")
...
@@ -83,6 +103,8 @@ MACHINE_START(MSM8960_SIM, "QCT MSM8960 SIMULATOR")
MACHINE_END
MACHINE_END
MACHINE_START
(
MSM8960_RUMI3
,
"QCT MSM8960 RUMI3"
)
MACHINE_START
(
MSM8960_RUMI3
,
"QCT MSM8960 RUMI3"
)
.
fixup
=
msm8960_fixup
,
.
reserve
=
msm8960_reserve
,
.
map_io
=
msm8960_map_io
,
.
map_io
=
msm8960_map_io
,
.
init_irq
=
msm8960_init_irq
,
.
init_irq
=
msm8960_init_irq
,
.
timer
=
&
msm_timer
,
.
timer
=
&
msm_timer
,
...
...
arch/arm/mach-msm/board-msm8x60.c
View file @
cefd3e71
...
@@ -20,14 +20,31 @@
...
@@ -20,14 +20,31 @@
#include <linux/platform_device.h>
#include <linux/platform_device.h>
#include <linux/io.h>
#include <linux/io.h>
#include <linux/irq.h>
#include <linux/irq.h>
#include <linux/memblock.h>
#include <asm/mach-types.h>
#include <asm/mach-types.h>
#include <asm/mach/arch.h>
#include <asm/mach/arch.h>
#include <asm/hardware/gic.h>
#include <asm/hardware/gic.h>
#include <asm/setup.h>
#include <mach/board.h>
#include <mach/board.h>
#include <mach/msm_iomap.h>
#include <mach/msm_iomap.h>
static
void
__init
msm8x60_fixup
(
struct
machine_desc
*
desc
,
struct
tag
*
tag
,
char
**
cmdline
,
struct
meminfo
*
mi
)
{
for
(;
tag
->
hdr
.
size
;
tag
=
tag_next
(
tag
))
if
(
tag
->
hdr
.
tag
==
ATAG_MEM
&&
tag
->
u
.
mem
.
start
==
0x40200000
)
{
tag
->
u
.
mem
.
start
=
0x40000000
;
tag
->
u
.
mem
.
size
+=
SZ_2M
;
}
}
static
void
__init
msm8x60_reserve
(
void
)
{
memblock_remove
(
0x40000000
,
SZ_2M
);
}
static
void
__init
msm8x60_map_io
(
void
)
static
void
__init
msm8x60_map_io
(
void
)
{
{
...
@@ -65,6 +82,8 @@ static void __init msm8x60_init(void)
...
@@ -65,6 +82,8 @@ static void __init msm8x60_init(void)
}
}
MACHINE_START
(
MSM8X60_RUMI3
,
"QCT MSM8X60 RUMI3"
)
MACHINE_START
(
MSM8X60_RUMI3
,
"QCT MSM8X60 RUMI3"
)
.
fixup
=
msm8x60_fixup
,
.
reserve
=
msm8x60_reserve
,
.
map_io
=
msm8x60_map_io
,
.
map_io
=
msm8x60_map_io
,
.
init_irq
=
msm8x60_init_irq
,
.
init_irq
=
msm8x60_init_irq
,
.
init_machine
=
msm8x60_init
,
.
init_machine
=
msm8x60_init
,
...
@@ -72,6 +91,8 @@ MACHINE_START(MSM8X60_RUMI3, "QCT MSM8X60 RUMI3")
...
@@ -72,6 +91,8 @@ MACHINE_START(MSM8X60_RUMI3, "QCT MSM8X60 RUMI3")
MACHINE_END
MACHINE_END
MACHINE_START
(
MSM8X60_SURF
,
"QCT MSM8X60 SURF"
)
MACHINE_START
(
MSM8X60_SURF
,
"QCT MSM8X60 SURF"
)
.
fixup
=
msm8x60_fixup
,
.
reserve
=
msm8x60_reserve
,
.
map_io
=
msm8x60_map_io
,
.
map_io
=
msm8x60_map_io
,
.
init_irq
=
msm8x60_init_irq
,
.
init_irq
=
msm8x60_init_irq
,
.
init_machine
=
msm8x60_init
,
.
init_machine
=
msm8x60_init
,
...
@@ -79,6 +100,8 @@ MACHINE_START(MSM8X60_SURF, "QCT MSM8X60 SURF")
...
@@ -79,6 +100,8 @@ MACHINE_START(MSM8X60_SURF, "QCT MSM8X60 SURF")
MACHINE_END
MACHINE_END
MACHINE_START
(
MSM8X60_SIM
,
"QCT MSM8X60 SIMULATOR"
)
MACHINE_START
(
MSM8X60_SIM
,
"QCT MSM8X60 SIMULATOR"
)
.
fixup
=
msm8x60_fixup
,
.
reserve
=
msm8x60_reserve
,
.
map_io
=
msm8x60_map_io
,
.
map_io
=
msm8x60_map_io
,
.
init_irq
=
msm8x60_init_irq
,
.
init_irq
=
msm8x60_init_irq
,
.
init_machine
=
msm8x60_init
,
.
init_machine
=
msm8x60_init
,
...
@@ -86,6 +109,8 @@ MACHINE_START(MSM8X60_SIM, "QCT MSM8X60 SIMULATOR")
...
@@ -86,6 +109,8 @@ MACHINE_START(MSM8X60_SIM, "QCT MSM8X60 SIMULATOR")
MACHINE_END
MACHINE_END
MACHINE_START
(
MSM8X60_FFA
,
"QCT MSM8X60 FFA"
)
MACHINE_START
(
MSM8X60_FFA
,
"QCT MSM8X60 FFA"
)
.
fixup
=
msm8x60_fixup
,
.
reserve
=
msm8x60_reserve
,
.
map_io
=
msm8x60_map_io
,
.
map_io
=
msm8x60_map_io
,
.
init_irq
=
msm8x60_init_irq
,
.
init_irq
=
msm8x60_init_irq
,
.
init_machine
=
msm8x60_init
,
.
init_machine
=
msm8x60_init
,
...
...
arch/arm/mach-msm/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -20,7 +20,7 @@
...
@@ -20,7 +20,7 @@
#include <mach/msm_iomap.h>
#include <mach/msm_iomap.h>
#if defined(CONFIG_HAS_MSM_DEBUG_UART_PHYS) && !defined(CONFIG_MSM_DEBUG_UART_NONE)
#if defined(CONFIG_HAS_MSM_DEBUG_UART_PHYS) && !defined(CONFIG_MSM_DEBUG_UART_NONE)
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
MSM_DEBUG_UART_PHYS
ldr
\
rp
,
=
MSM_DEBUG_UART_PHYS
ldr
\
rv
,
=
MSM_DEBUG_UART_BASE
ldr
\
rv
,
=
MSM_DEBUG_UART_BASE
.
endm
.
endm
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
beq
1001
b
beq
1001
b
.
endm
.
endm
#else
#else
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rv
,
#
0xff000000
mov
\
rv
,
#
0xff000000
orr
\
rv
,
\
rv
,
#
0x00f00000
orr
\
rv
,
\
rv
,
#
0x00f00000
.
endm
.
endm
...
...
arch/arm/mach-msm/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/* arch/arm/mach-msm/include/mach/memory.h
*
* Copyright (C) 2007 Google, Inc.
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
/* physical offset of RAM */
#if defined(CONFIG_ARCH_QSD8X50) && defined(CONFIG_MSM_SOC_REV_A)
#define PLAT_PHYS_OFFSET UL(0x00000000)
#elif defined(CONFIG_ARCH_QSD8X50)
#define PLAT_PHYS_OFFSET UL(0x20000000)
#elif defined(CONFIG_ARCH_MSM7X30)
#define PLAT_PHYS_OFFSET UL(0x00200000)
#elif defined(CONFIG_ARCH_MSM8X60)
#define PLAT_PHYS_OFFSET UL(0x40200000)
#elif defined(CONFIG_ARCH_MSM8960)
#define PLAT_PHYS_OFFSET UL(0x40200000)
#else
#define PLAT_PHYS_OFFSET UL(0x10000000)
#endif
#endif
arch/arm/mach-mv78xx0/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
#include <mach/mv78xx0.h>
#include <mach/mv78xx0.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
MV78XX0_REGS_PHYS_BASE
ldr
\
rp
,
=
MV78XX0_REGS_PHYS_BASE
ldr
\
rv
,
=
MV78XX0_REGS_VIRT_BASE
ldr
\
rv
,
=
MV78XX0_REGS_VIRT_BASE
orr
\
rp
,
\
rp
,
#
0x00012000
orr
\
rp
,
\
rp
,
#
0x00012000
...
...
arch/arm/mach-mv78xx0/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-mv78xx0/include/mach/memory.h
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x00000000)
#endif
arch/arm/mach-mxs/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
#define UART_VADDR MXS_IO_ADDRESS(UART_PADDR)
#define UART_VADDR MXS_IO_ADDRESS(UART_PADDR)
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
UART_PADDR
@
physical
ldr
\
rp
,
=
UART_PADDR
@
physical
ldr
\
rv
,
=
UART_VADDR
@
virtual
ldr
\
rv
,
=
UART_VADDR
@
virtual
.
endm
.
endm
...
...
arch/arm/mach-mxs/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* Copyright (C) 2009-2010 Freescale Semiconductor, Inc. All Rights Reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef __MACH_MXS_MEMORY_H__
#define __MACH_MXS_MEMORY_H__
#define PHYS_OFFSET UL(0x40000000)
#endif
/* __MACH_MXS_MEMORY_H__ */
arch/arm/mach-netx/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
#include "hardware.h"
#include "hardware.h"
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x00000a00
mov
\
rp
,
#
0x00000a00
orr
\
rv
,
\
rp
,
#
io_p2v
(
0x00100000
)
@
virtual
orr
\
rv
,
\
rp
,
#
io_p2v
(
0x00100000
)
@
virtual
orr
\
rp
,
\
rp
,
#
0x00100000
@
physical
orr
\
rp
,
\
rp
,
#
0x00100000
@
physical
...
...
arch/arm/mach-netx/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-netx/include/mach/memory.h
*
* Copyright (C) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2
* as published by the Free Software Foundation.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x80000000)
#endif
arch/arm/mach-nomadik/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
*
*
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x00100000
mov
\
rp
,
#
0x00100000
add
\
rp
,
\
rp
,
#
0x000fb000
add
\
rp
,
\
rp
,
#
0x000fb000
add
\
rv
,
\
rp
,
#
0xf0000000
@
virtual
base
add
\
rv
,
\
rp
,
#
0xf0000000
@
virtual
base
...
...
arch/arm/mach-nomadik/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* mach-nomadik/include/mach/memory.h
*
* Copyright (C) 1999 ARM Limited
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
/*
* Physical DRAM offset.
*/
#define PLAT_PHYS_OFFSET UL(0x00000000)
#endif
arch/arm/mach-nuc93x/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-nuc93x/include/mach/memory.h
*
* Copyright (c) 2008 Nuvoton technology corporation
* All rights reserved.
*
* Wan ZongShun <mcuos.com@gmail.com>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x00000000)
#endif
arch/arm/mach-omap1/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -13,13 +13,8 @@
...
@@ -13,13 +13,8 @@
#include <linux/serial_reg.h>
#include <linux/serial_reg.h>
#include <asm/memory.h>
#include <plat/serial.h>
#include <plat/serial.h>
#define omap_uart_v2p(x) ((x) - PAGE_OFFSET + PLAT_PHYS_OFFSET)
#define omap_uart_p2v(x) ((x) - PLAT_PHYS_OFFSET + PAGE_OFFSET)
.
pushsection
.
data
.
pushsection
.
data
omap_uart_phys
:
.
word
0x0
omap_uart_phys
:
.
word
0x0
omap_uart_virt
:
.
word
0x0
omap_uart_virt
:
.
word
0x0
...
@@ -31,26 +26,24 @@ omap_uart_virt: .word 0x0
...
@@ -31,26 +26,24 @@ omap_uart_virt: .word 0x0
*
the
desired
UART
phys
and
virt
addresses
temporarily
into
*
the
desired
UART
phys
and
virt
addresses
temporarily
into
*
the
omap_uart_phys
and
omap_uart_virt
above
.
*
the
omap_uart_phys
and
omap_uart_virt
above
.
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
/
*
Use
omap_uart_phys
/
virt
if
already
configured
*/
/
*
Use
omap_uart_phys
/
virt
if
already
configured
*/
9
:
mrc
p15
,
0
,
\
rp
,
c1
,
c0
9
:
adr
\
rp
,
99
f
@
get
effective
addr
of
99
f
tst
\
rp
,
#
1
@
MMU
enabled
?
ldr
\
rv
,
[
\
rp
]
@
get
absolute
addr
of
99
f
ldreq
\
rp
,
=
omap_uart_v2p
(
omap_uart_phys
)
@
MMU
disabled
sub
\
rv
,
\
rv
,
\
rp
@
offset
between
the
two
ldr
ne
\
rp
,
=
omap_uart_phys
@
MMU
enabled
ldr
\
rp
,
[
\
rp
,
#
4
]
@
abs
addr
of
omap_uart_phys
add
\
rv
,
\
rp
,
#
4
@
omap_uart_virt
sub
\
tmp
,
\
rp
,
\
rv
@
make
it
effective
ldr
\
rp
,
[
\
rp
,
#
0
]
ldr
\
rp
,
[
\
tmp
,
#
0
]
@
omap_uart_phys
ldr
\
rv
,
[
\
rv
,
#
0
]
ldr
\
rv
,
[
\
tmp
,
#
4
]
@
omap_uart_virt
cmp
\
rp
,
#
0
@
is
port
configured
?
cmp
\
rp
,
#
0
@
is
port
configured
?
cmpne
\
rv
,
#
0
cmpne
\
rv
,
#
0
bne
99
f
@
already
configured
bne
100
f
@
already
configured
/
*
Check
the
debug
UART
configuration
set
in
uncompress
.
h
*/
/
*
Check
the
debug
UART
configuration
set
in
uncompress
.
h
*/
mrc
p15
,
0
,
\
rp
,
c1
,
c0
and
\
rp
,
pc
,
#
0xff000000
tst
\
rp
,
#
1
@
MMU
enabled
?
ldr
\
rv
,
=
OMAP_UART_INFO_OFS
ldreq
\
rp
,
=
OMAP_UART_INFO
@
MMU
not
enabled
ldr
\
rp
,
[
\
rp
,
\
rv
]
ldrne
\
rp
,
=
omap_uart_p2v
(
OMAP_UART_INFO
)
@
MMU
enabled
ldr
\
rp
,
[
\
rp
,
#
0
]
/
*
Select
the
UART
to
use
based
on
the
UART1
scratchpad
value
*/
/
*
Select
the
UART
to
use
based
on
the
UART1
scratchpad
value
*/
10
:
cmp
\
rp
,
#
0
@
no
port
configured
?
10
:
cmp
\
rp
,
#
0
@
no
port
configured
?
...
@@ -74,17 +67,18 @@ omap_uart_virt: .word 0x0
...
@@ -74,17 +67,18 @@ omap_uart_virt: .word 0x0
/
*
Store
both
phys
and
virt
address
for
the
uart
*/
/
*
Store
both
phys
and
virt
address
for
the
uart
*/
98
:
add
\
rp
,
\
rp
,
#
0xff000000
@
phys
base
98
:
add
\
rp
,
\
rp
,
#
0xff000000
@
phys
base
mrc
p15
,
0
,
\
rv
,
c1
,
c0
str
\
rp
,
[
\
tmp
,
#
0
]
@
omap_uart_phys
tst
\
rv
,
#
1
@
MMU
enabled
?
ldreq
\
rv
,
=
omap_uart_v2p
(
omap_uart_phys
)
@
MMU
disabled
ldrne
\
rv
,
=
omap_uart_phys
@
MMU
enabled
str
\
rp
,
[
\
rv
,
#
0
]
sub
\
rp
,
\
rp
,
#
0xff000000
@
phys
base
sub
\
rp
,
\
rp
,
#
0xff000000
@
phys
base
add
\
rp
,
\
rp
,
#
0xfe000000
@
virt
base
add
\
rp
,
\
rp
,
#
0xfe000000
@
virt
base
add
\
rv
,
\
rv
,
#
4
@
omap_uart_lsr
str
\
rp
,
[
\
tmp
,
#
4
]
@
omap_uart_virt
str
\
rp
,
[
\
rv
,
#
0
]
b
9
b
b
9
b
99
:
.
align
99
:
.
word
.
.
word
omap_uart_phys
.
ltorg
100
:
.
endm
.
endm
.
macro
senduart
,
rd
,
rx
.
macro
senduart
,
rd
,
rx
...
...
arch/arm/mach-omap1/include/mach/memory.h
View file @
cefd3e71
...
@@ -2,4 +2,55 @@
...
@@ -2,4 +2,55 @@
* arch/arm/mach-omap1/include/mach/memory.h
* arch/arm/mach-omap1/include/mach/memory.h
*/
*/
#include <plat/memory.h>
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
/*
* Physical DRAM offset.
*/
#define PLAT_PHYS_OFFSET UL(0x10000000)
/*
* Bus address is physical address, except for OMAP-1510 Local Bus.
* OMAP-1510 bus address is translated into a Local Bus address if the
* OMAP bus type is lbus. We do the address translation based on the
* device overriding the defaults used in the dma-mapping API.
* Note that the is_lbus_device() test is not very efficient on 1510
* because of the strncmp().
*/
#ifdef CONFIG_ARCH_OMAP15XX
/*
* OMAP-1510 Local Bus address offset
*/
#define OMAP1510_LB_OFFSET UL(0x30000000)
#define virt_to_lbus(x) ((x) - PAGE_OFFSET + OMAP1510_LB_OFFSET)
#define lbus_to_virt(x) ((x) - OMAP1510_LB_OFFSET + PAGE_OFFSET)
#define is_lbus_device(dev) (cpu_is_omap15xx() && dev && (strncmp(dev_name(dev), "ohci", 4) == 0))
#define __arch_pfn_to_dma(dev, pfn) \
({ dma_addr_t __dma = __pfn_to_phys(pfn); \
if (is_lbus_device(dev)) \
__dma = __dma - PHYS_OFFSET + OMAP1510_LB_OFFSET; \
__dma; })
#define __arch_dma_to_pfn(dev, addr) \
({ dma_addr_t __dma = addr; \
if (is_lbus_device(dev)) \
__dma += PHYS_OFFSET - OMAP1510_LB_OFFSET; \
__phys_to_pfn(__dma); \
})
#define __arch_dma_to_virt(dev, addr) ({ (void *) (is_lbus_device(dev) ? \
lbus_to_virt(addr) : \
__phys_to_virt(addr)); })
#define __arch_virt_to_dma(dev, addr) ({ unsigned long __addr = (unsigned long)(addr); \
(dma_addr_t) (is_lbus_device(dev) ? \
virt_to_lbus(__addr) : \
__virt_to_phys(__addr)); })
#endif
/* CONFIG_ARCH_OMAP15XX */
#endif
arch/arm/mach-omap2/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -13,15 +13,10 @@
...
@@ -13,15 +13,10 @@
#include <linux/serial_reg.h>
#include <linux/serial_reg.h>
#include <asm/memory.h>
#include <plat/serial.h>
#include <plat/serial.h>
#define UART_OFFSET(addr) ((addr) & 0x00ffffff)
#define UART_OFFSET(addr) ((addr) & 0x00ffffff)
#define omap_uart_v2p(x) ((x) - PAGE_OFFSET + PLAT_PHYS_OFFSET)
#define omap_uart_p2v(x) ((x) - PLAT_PHYS_OFFSET + PAGE_OFFSET)
.
pushsection
.
data
.
pushsection
.
data
omap_uart_phys
:
.
word
0
omap_uart_phys
:
.
word
0
omap_uart_virt
:
.
word
0
omap_uart_virt
:
.
word
0
...
@@ -34,26 +29,25 @@ omap_uart_lsr: .word 0
...
@@ -34,26 +29,25 @@ omap_uart_lsr: .word 0
*
the
desired
UART
phys
and
virt
addresses
temporarily
into
*
the
desired
UART
phys
and
virt
addresses
temporarily
into
*
the
omap_uart_phys
and
omap_uart_virt
above
.
*
the
omap_uart_phys
and
omap_uart_virt
above
.
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
/
*
Use
omap_uart_phys
/
virt
if
already
configured
*/
/
*
Use
omap_uart_phys
/
virt
if
already
configured
*/
10
:
mrc
p15
,
0
,
\
rp
,
c1
,
c0
10
:
adr
\
rp
,
99
f
@
get
effective
addr
of
99
f
tst
\
rp
,
#
1
@
MMU
enabled
?
ldr
\
rv
,
[
\
rp
]
@
get
absolute
addr
of
99
f
ldreq
\
rp
,
=
omap_uart_v2p
(
omap_uart_phys
)
@
MMU
disabled
sub
\
rv
,
\
rv
,
\
rp
@
offset
between
the
two
ldr
ne
\
rp
,
=
omap_uart_phys
@
MMU
enabled
ldr
\
rp
,
[
\
rp
,
#
4
]
@
abs
addr
of
omap_uart_phys
add
\
rv
,
\
rp
,
#
4
@
omap_uart_virt
sub
\
tmp
,
\
rp
,
\
rv
@
make
it
effective
ldr
\
rp
,
[
\
rp
,
#
0
]
ldr
\
rp
,
[
\
tmp
,
#
0
]
@
omap_uart_phys
ldr
\
rv
,
[
\
rv
,
#
0
]
ldr
\
rv
,
[
\
tmp
,
#
4
]
@
omap_uart_virt
cmp
\
rp
,
#
0
@
is
port
configured
?
cmp
\
rp
,
#
0
@
is
port
configured
?
cmpne
\
rv
,
#
0
cmpne
\
rv
,
#
0
bne
99
f
@
already
configured
bne
100
f
@
already
configured
/
*
Check
the
debug
UART
configuration
set
in
uncompress
.
h
*/
/
*
Check
the
debug
UART
configuration
set
in
uncompress
.
h
*/
mrc
p15
,
0
,
\
rp
,
c1
,
c0
mov
\
rp
,
pc
tst
\
rp
,
#
1
@
MMU
enabled
?
ldr
\
rv
,
=
OMAP_UART_INFO_OFS
ldreq
\
rp
,
=
OMAP_UART_INFO
@
MMU
not
enabled
and
\
rp
,
\
rp
,
#
0xff000000
ldrne
\
rp
,
=
omap_uart_p2v
(
OMAP_UART_INFO
)
@
MMU
enabled
ldr
\
rp
,
[
\
rp
,
\
rv
]
ldr
\
rp
,
[
\
rp
,
#
0
]
/
*
Select
the
UART
to
use
based
on
the
UART1
scratchpad
value
*/
/
*
Select
the
UART
to
use
based
on
the
UART1
scratchpad
value
*/
cmp
\
rp
,
#
0
@
no
port
configured
?
cmp
\
rp
,
#
0
@
no
port
configured
?
...
@@ -106,50 +100,47 @@ omap_uart_lsr: .word 0
...
@@ -106,50 +100,47 @@ omap_uart_lsr: .word 0
b
98
f
b
98
f
83
:
mov
\
rp
,
#
UART_OFFSET
(
TI816X_UART3_BASE
)
83
:
mov
\
rp
,
#
UART_OFFSET
(
TI816X_UART3_BASE
)
b
98
f
b
98
f
95
:
ldr
\
rp
,
=
ZOOM_UART_BASE
95
:
ldr
\
rp
,
=
ZOOM_UART_BASE
mrc
p15
,
0
,
\
rv
,
c1
,
c0
str
\
rp
,
[
\
tmp
,
#
0
]
@
omap_uart_phys
tst
\
rv
,
#
1
@
MMU
enabled
?
ldreq
\
rv
,
=
omap_uart_v2p
(
omap_uart_phys
)
@
MMU
disabled
ldrne
\
rv
,
=
omap_uart_phys
@
MMU
enabled
str
\
rp
,
[
\
rv
,
#
0
]
ldr
\
rp
,
=
ZOOM_UART_VIRT
ldr
\
rp
,
=
ZOOM_UART_VIRT
add
\
rv
,
\
rv
,
#
4
@
omap_uart_virt
str
\
rp
,
[
\
tmp
,
#
4
]
@
omap_uart_virt
str
\
rp
,
[
\
rv
,
#
0
]
mov
\
rp
,
#(
UART_LSR
<<
ZOOM_PORT_SHIFT
)
mov
\
rp
,
#(
UART_LSR
<<
ZOOM_PORT_SHIFT
)
add
\
rv
,
\
rv
,
#
4
@
omap_uart_lsr
str
\
rp
,
[
\
tmp
,
#
8
]
@
omap_uart_lsr
str
\
rp
,
[
\
rv
,
#
0
]
b
10
b
b
10
b
/
*
Store
both
phys
and
virt
address
for
the
uart
*/
/
*
Store
both
phys
and
virt
address
for
the
uart
*/
98
:
add
\
rp
,
\
rp
,
#
0x48000000
@
phys
base
98
:
add
\
rp
,
\
rp
,
#
0x48000000
@
phys
base
mrc
p15
,
0
,
\
rv
,
c1
,
c0
str
\
rp
,
[
\
tmp
,
#
0
]
@
omap_uart_phys
tst
\
rv
,
#
1
@
MMU
enabled
?
ldreq
\
rv
,
=
omap_uart_v2p
(
omap_uart_phys
)
@
MMU
disabled
ldrne
\
rv
,
=
omap_uart_phys
@
MMU
enabled
str
\
rp
,
[
\
rv
,
#
0
]
sub
\
rp
,
\
rp
,
#
0x48000000
@
phys
base
sub
\
rp
,
\
rp
,
#
0x48000000
@
phys
base
add
\
rp
,
\
rp
,
#
0xfa000000
@
virt
base
add
\
rp
,
\
rp
,
#
0xfa000000
@
virt
base
add
\
rv
,
\
rv
,
#
4
@
omap_uart_virt
str
\
rp
,
[
\
tmp
,
#
4
]
@
omap_uart_virt
str
\
rp
,
[
\
rv
,
#
0
]
mov
\
rp
,
#(
UART_LSR
<<
OMAP_PORT_SHIFT
)
mov
\
rp
,
#(
UART_LSR
<<
OMAP_PORT_SHIFT
)
add
\
rv
,
\
rv
,
#
4
@
omap_uart_lsr
str
\
rp
,
[
\
tmp
,
#
8
]
@
omap_uart_lsr
str
\
rp
,
[
\
rv
,
#
0
]
b
10
b
b
10
b
99
:
.
align
99
:
.
word
.
.
word
omap_uart_phys
.
ltorg
100
:
/
*
Pass
the
UART_LSR
reg
address
*/
ldr
\
tmp
,
[
\
tmp
,
#
8
]
@
omap_uart_lsr
add
\
rp
,
\
rp
,
\
tmp
add
\
rv
,
\
rv
,
\
tmp
.
endm
.
endm
.
macro
senduart
,
rd
,
rx
.
macro
senduart
,
rd
,
rx
strb
\
rd
,
[
\
rx
]
orr
\
rd
,
\
rd
,
\
rx
,
lsl
#
24
@
preserve
LSR
reg
offset
bic
\
rx
,
\
rx
,
#
0xff
@
get
base
(
THR
)
reg
address
strb
\
rd
,
[
\
rx
]
@
send
lower
byte
of
rd
orr
\
rx
,
\
rx
,
\
rd
,
lsr
#
24
@
restore
original
rx
(
LSR
)
bic
\
rd
,
\
rd
,
#(
0xff
<<
24
)
@
restore
original
rd
.
endm
.
endm
.
macro
busyuart
,
rd
,
rx
.
macro
busyuart
,
rd
,
rx
1001
:
mrc
p15
,
0
,
\
rd
,
c1
,
c0
1001
:
ldrb
\
rd
,
[
\
rx
]
@
rx
contains
UART_LSR
address
tst
\
rd
,
#
1
@
MMU
enabled
?
ldreq
\
rd
,
=
omap_uart_v2p
(
omap_uart_lsr
)
@
MMU
disabled
ldrne
\
rd
,
=
omap_uart_lsr
@
MMU
enabled
ldr
\
rd
,
[
\
rd
,
#
0
]
ldrb
\
rd
,
[
\
rx
,
\
rd
]
and
\
rd
,
\
rd
,
#(
UART_LSR_TEMT
|
UART_LSR_THRE
)
and
\
rd
,
\
rd
,
#(
UART_LSR_TEMT
|
UART_LSR_THRE
)
teq
\
rd
,
#(
UART_LSR_TEMT
|
UART_LSR_THRE
)
teq
\
rd
,
#(
UART_LSR_TEMT
|
UART_LSR_THRE
)
bne
1001
b
bne
1001
b
...
...
arch/arm/mach-omap2/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-omap2/include/mach/memory.h
*/
#include <plat/memory.h>
arch/arm/mach-orion5x/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
#include <mach/orion5x.h>
#include <mach/orion5x.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
ORION5X_REGS_PHYS_BASE
ldr
\
rp
,
=
ORION5X_REGS_PHYS_BASE
ldr
\
rv
,
=
ORION5X_REGS_VIRT_BASE
ldr
\
rv
,
=
ORION5X_REGS_VIRT_BASE
orr
\
rp
,
\
rp
,
#
0x00012000
orr
\
rp
,
\
rp
,
#
0x00012000
...
...
arch/arm/mach-orion5x/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-orion5x/include/mach/memory.h
*
* Marvell Orion memory definitions
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x00000000)
#endif
arch/arm/mach-pnx4008/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x00090000
mov
\
rp
,
#
0x00090000
add
\
rv
,
\
rp
,
#
0xf4000000
@
virtual
add
\
rv
,
\
rp
,
#
0xf4000000
@
virtual
add
\
rp
,
\
rp
,
#
0x40000000
@
physical
add
\
rp
,
\
rp
,
#
0x40000000
@
physical
...
...
arch/arm/mach-pnx4008/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-pnx4008/include/mach/memory.h
*
* Copyright (c) 2005 Philips Semiconductors
* Copyright (c) 2005 MontaVista Software, Inc.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
/*
* Physical DRAM offset.
*/
#define PLAT_PHYS_OFFSET UL(0x80000000)
#endif
arch/arm/mach-prima2/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
#include <mach/hardware.h>
#include <mach/hardware.h>
#include <mach/uart.h>
#include <mach/uart.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
SIRFSOC_UART1_PA_BASE
@
physical
ldr
\
rp
,
=
SIRFSOC_UART1_PA_BASE
@
physical
ldr
\
rv
,
=
SIRFSOC_UART1_VA_BASE
@
virtual
ldr
\
rv
,
=
SIRFSOC_UART1_VA_BASE
@
virtual
.
endm
.
endm
...
...
arch/arm/mach-prima2/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-prima2/include/mach/memory.h
*
* Copyright (c) 2010 – 2011 Cambridge Silicon Radio Limited, a CSR plc group company.
*
* Licensed under GPLv2 or later.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x00000000)
/*
* Restrict DMA-able region to workaround silicon limitation.
* The limitation restricts buffers available for DMA to SD/MMC
* hardware to be below 256MB
*/
#define ARM_DMA_ZONE_SIZE (SZ_256M)
#endif
arch/arm/mach-prima2/l2x0.c
View file @
cefd3e71
...
@@ -13,7 +13,6 @@
...
@@ -13,7 +13,6 @@
#include <linux/of.h>
#include <linux/of.h>
#include <linux/of_address.h>
#include <linux/of_address.h>
#include <asm/hardware/cache-l2x0.h>
#include <asm/hardware/cache-l2x0.h>
#include <mach/memory.h>
#define L2X0_ADDR_FILTERING_START 0xC00
#define L2X0_ADDR_FILTERING_START 0xC00
#define L2X0_ADDR_FILTERING_END 0xC04
#define L2X0_ADDR_FILTERING_END 0xC04
...
@@ -41,9 +40,9 @@ static int __init sirfsoc_of_l2x_init(void)
...
@@ -41,9 +40,9 @@ static int __init sirfsoc_of_l2x_init(void)
/*
/*
* set the physical memory windows L2 cache will cover
* set the physical memory windows L2 cache will cover
*/
*/
writel_relaxed
(
P
LAT_P
HYS_OFFSET
+
1024
*
1024
*
1024
,
writel_relaxed
(
PHYS_OFFSET
+
1024
*
1024
*
1024
,
sirfsoc_l2x_base
+
L2X0_ADDR_FILTERING_END
);
sirfsoc_l2x_base
+
L2X0_ADDR_FILTERING_END
);
writel_relaxed
(
P
LAT_P
HYS_OFFSET
|
0x1
,
writel_relaxed
(
PHYS_OFFSET
|
0x1
,
sirfsoc_l2x_base
+
L2X0_ADDR_FILTERING_START
);
sirfsoc_l2x_base
+
L2X0_ADDR_FILTERING_START
);
writel_relaxed
(
0
,
writel_relaxed
(
0
,
...
...
arch/arm/mach-prima2/prima2.c
View file @
cefd3e71
...
@@ -36,6 +36,7 @@ MACHINE_START(PRIMA2_EVB, "prima2cb")
...
@@ -36,6 +36,7 @@ MACHINE_START(PRIMA2_EVB, "prima2cb")
.
map_io
=
sirfsoc_map_lluart
,
.
map_io
=
sirfsoc_map_lluart
,
.
init_irq
=
sirfsoc_of_irq_init
,
.
init_irq
=
sirfsoc_of_irq_init
,
.
timer
=
&
sirfsoc_timer
,
.
timer
=
&
sirfsoc_timer
,
.
dma_zone_size
=
SZ_256M
,
.
init_machine
=
sirfsoc_mach_init
,
.
init_machine
=
sirfsoc_mach_init
,
.
dt_compat
=
prima2cb_dt_match
,
.
dt_compat
=
prima2cb_dt_match
,
MACHINE_END
MACHINE_END
arch/arm/mach-pxa/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -13,7 +13,7 @@
...
@@ -13,7 +13,7 @@
#include "hardware.h"
#include "hardware.h"
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x00100000
mov
\
rp
,
#
0x00100000
orr
\
rv
,
\
rp
,
#
io_p2v
(
0x40000000
)
@
virtual
orr
\
rv
,
\
rp
,
#
io_p2v
(
0x40000000
)
@
virtual
orr
\
rp
,
\
rp
,
#
0x40000000
@
physical
orr
\
rp
,
\
rp
,
#
0x40000000
@
physical
...
...
arch/arm/mach-pxa/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-pxa/include/mach/memory.h
*
* Author: Nicolas Pitre
* Copyright: (C) 2001 MontaVista Software Inc.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
/*
* Physical DRAM offset.
*/
#define PLAT_PHYS_OFFSET UL(0xa0000000)
#endif
arch/arm/mach-pxa/z2.c
View file @
cefd3e71
...
@@ -686,7 +686,7 @@ static void z2_power_off(void)
...
@@ -686,7 +686,7 @@ static void z2_power_off(void)
*/
*/
PSPR
=
0x0
;
PSPR
=
0x0
;
local_irq_disable
();
local_irq_disable
();
pxa27x_cpu_suspend
(
PWRMODE_DEEPSLEEP
,
P
LAT_P
HYS_OFFSET
-
PAGE_OFFSET
);
pxa27x_cpu_suspend
(
PWRMODE_DEEPSLEEP
,
PHYS_OFFSET
-
PAGE_OFFSET
);
}
}
#else
#else
#define z2_power_off NULL
#define z2_power_off NULL
...
...
arch/arm/mach-realview/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -33,7 +33,7 @@
...
@@ -33,7 +33,7 @@
#error "Unknown RealView platform"
#error "Unknown RealView platform"
#endif
#endif
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
DEBUG_LL_UART_OFFSET
mov
\
rp
,
#
DEBUG_LL_UART_OFFSET
orr
\
rv
,
\
rp
,
#
0xfb000000
@
virtual
base
orr
\
rv
,
\
rp
,
#
0xfb000000
@
virtual
base
orr
\
rp
,
\
rp
,
#
0x10000000
@
physical
base
orr
\
rp
,
\
rp
,
#
0x10000000
@
physical
base
...
...
arch/arm/mach-rpc/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x00010000
mov
\
rp
,
#
0x00010000
orr
\
rp
,
\
rp
,
#
0x00000fe0
orr
\
rp
,
\
rp
,
#
0x00000fe0
orr
\
rv
,
\
rp
,
#
0xe0000000
@
virtual
orr
\
rv
,
\
rp
,
#
0xe0000000
@
virtual
...
...
arch/arm/mach-s3c2400/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/* arch/arm/mach-s3c2400/include/mach/memory.h
* from arch/arm/mach-rpc/include/mach/memory.h
*
* Copyright 2007 Simtec Electronics
* http://armlinux.simtec.co.uk/
* Ben Dooks <ben@simtec.co.uk>
*
* Copyright (C) 1996,1997,1998 Russell King.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x0C000000)
#endif
arch/arm/mach-s3c2410/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -19,7 +19,7 @@
...
@@ -19,7 +19,7 @@
#define S3C2410_UART1_OFF (0x4000)
#define S3C2410_UART1_OFF (0x4000)
#define SHIFT_2440TXF (14-9)
#define SHIFT_2440TXF (14-9)
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
S3C24XX_PA_UART
ldr
\
rp
,
=
S3C24XX_PA_UART
ldr
\
rv
,
=
S3C24XX_VA_UART
ldr
\
rv
,
=
S3C24XX_VA_UART
#if CONFIG_DEBUG_S3C_UART != 0
#if CONFIG_DEBUG_S3C_UART != 0
...
...
arch/arm/mach-s3c2410/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/* arch/arm/mach-s3c2410/include/mach/memory.h
* from arch/arm/mach-rpc/include/mach/memory.h
*
* Copyright (C) 1996,1997,1998 Russell King.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x30000000)
#endif
arch/arm/mach-s3c64xx/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
*
aligned
and
add
in
the
offset
when
we
load
the
value
here
.
*
aligned
and
add
in
the
offset
when
we
load
the
value
here
.
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
S3C_PA_UART
ldr
\
rp
,
=
S3C_PA_UART
ldr
\
rv
,
=
(
S3C_VA_UART
+
S3C_PA_UART
&
0xfffff
)
ldr
\
rv
,
=
(
S3C_VA_UART
+
S3C_PA_UART
&
0xfffff
)
#if CONFIG_DEBUG_S3C_UART != 0
#if CONFIG_DEBUG_S3C_UART != 0
...
...
arch/arm/mach-s3c64xx/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/* arch/arm/mach-s3c6400/include/mach/memory.h
*
* Copyright 2008 Openmoko, Inc.
* Copyright 2008 Simtec Electronics
* Ben Dooks <ben@simtec.co.uk>
* http://armlinux.simtec.co.uk/
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x50000000)
#endif
arch/arm/mach-s5p64x0/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -15,7 +15,7 @@
...
@@ -15,7 +15,7 @@
#include <plat/regs-serial.h>
#include <plat/regs-serial.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0xE0000000
mov
\
rp
,
#
0xE0000000
orr
\
rp
,
\
rp
,
#
0x00100000
orr
\
rp
,
\
rp
,
#
0x00100000
ldr
\
rp
,
[
\
rp
,
#
0x118
]
ldr
\
rp
,
[
\
rp
,
#
0x118
]
...
...
arch/arm/mach-s5p64x0/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/* linux/arch/arm/mach-s5p64x0/include/mach/memory.h
*
* Copyright (c) 2009-2010 Samsung Electronics Co., Ltd.
* http://www.samsung.com
*
* S5P64X0 - Memory definitions
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H __FILE__
#define PLAT_PHYS_OFFSET UL(0x20000000)
#endif
/* __ASM_ARCH_MEMORY_H */
arch/arm/mach-s5pc100/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -22,7 +22,7 @@
...
@@ -22,7 +22,7 @@
*
aligned
and
add
in
the
offset
when
we
load
the
value
here
.
*
aligned
and
add
in
the
offset
when
we
load
the
value
here
.
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
S3C_PA_UART
ldr
\
rp
,
=
S3C_PA_UART
ldr
\
rv
,
=
S3C_VA_UART
ldr
\
rv
,
=
S3C_VA_UART
#if CONFIG_DEBUG_S3C_UART != 0
#if CONFIG_DEBUG_S3C_UART != 0
...
...
arch/arm/mach-s5pc100/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/* arch/arm/mach-s5pc100/include/mach/memory.h
*
* Copyright 2008 Samsung Electronics Co.
* Byungho Min <bhmin@samsung.com>
*
* Based on mach-s3c6400/include/mach/memory.h
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x20000000)
#endif
arch/arm/mach-s5pv210/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
*
aligned
and
add
in
the
offset
when
we
load
the
value
here
.
*
aligned
and
add
in
the
offset
when
we
load
the
value
here
.
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
S3C_PA_UART
ldr
\
rp
,
=
S3C_PA_UART
ldr
\
rv
,
=
S3C_VA_UART
ldr
\
rv
,
=
S3C_VA_UART
#if CONFIG_DEBUG_S3C_UART != 0
#if CONFIG_DEBUG_S3C_UART != 0
...
...
arch/arm/mach-sa1100/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
*/
*/
#include <mach/hardware.h>
#include <mach/hardware.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mrc
p15
,
0
,
\
rp
,
c1
,
c0
mrc
p15
,
0
,
\
rp
,
c1
,
c0
tst
\
rp
,
#
1
@
MMU
enabled
?
tst
\
rp
,
#
1
@
MMU
enabled
?
moveq
\
rp
,
#
0x80000000
@
physical
base
address
moveq
\
rp
,
#
0x80000000
@
physical
base
address
...
...
arch/arm/mach-shark/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0xe0000000
mov
\
rp
,
#
0xe0000000
orr
\
rp
,
\
rp
,
#
0x000003f8
orr
\
rp
,
\
rp
,
#
0x000003f8
mov
\
rv
,
\
rp
mov
\
rv
,
\
rp
...
...
arch/arm/mach-spear3xx/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-spear3xx/include/mach/memory.h
*
* Memory map for SPEAr3xx machine family
*
* Copyright (C) 2009 ST Microelectronics
* Viresh Kumar<viresh.kumar@st.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
#ifndef __MACH_MEMORY_H
#define __MACH_MEMORY_H
#include <plat/memory.h>
#endif
/* __MACH_MEMORY_H */
arch/arm/mach-spear6xx/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-spear6xx/include/mach/memory.h
*
* Memory map for SPEAr6xx machine family
*
* Copyright (C) 2009 ST Microelectronics
* Rajeev Kumar<rajeev-dlh.kumar@st.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
#ifndef __MACH_MEMORY_H
#define __MACH_MEMORY_H
#include <plat/memory.h>
#endif
/* __MACH_MEMORY_H */
arch/arm/mach-tegra/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -21,7 +21,7 @@
...
@@ -21,7 +21,7 @@
#include <mach/io.h>
#include <mach/io.h>
#include <mach/iomap.h>
#include <mach/iomap.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
IO_APB_PHYS
@
physical
ldr
\
rp
,
=
IO_APB_PHYS
@
physical
ldr
\
rv
,
=
IO_APB_VIRT
@
virtual
ldr
\
rv
,
=
IO_APB_VIRT
@
virtual
orr
\
rp
,
\
rp
,
#(
TEGRA_DEBUG_UART_BASE
&
0xFF
)
orr
\
rp
,
\
rp
,
#(
TEGRA_DEBUG_UART_BASE
&
0xFF
)
...
...
arch/arm/mach-tegra/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-tegra/include/mach/memory.h
*
* Copyright (C) 2010 Google, Inc.
*
* Author:
* Colin Cross <ccross@google.com>
* Erik Gilling <konkers@google.com>
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
*/
#ifndef __MACH_TEGRA_MEMORY_H
#define __MACH_TEGRA_MEMORY_H
/* physical offset of RAM */
#define PLAT_PHYS_OFFSET UL(0)
#endif
arch/arm/mach-u300/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -10,7 +10,7 @@
...
@@ -10,7 +10,7 @@
*/
*/
#include <mach/hardware.h>
#include <mach/hardware.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
/
*
If
we
move
the
address
using
MMU
,
use
this
.
*/
/
*
If
we
move
the
address
using
MMU
,
use
this
.
*/
ldr
\
rp
,
=
U300_SLOW_PER_PHYS_BASE
@
MMU
off
,
physical
address
ldr
\
rp
,
=
U300_SLOW_PER_PHYS_BASE
@
MMU
off
,
physical
address
ldr
\
rv
,
=
U300_SLOW_PER_VIRT_BASE
@
MMU
on
,
virtual
address
ldr
\
rv
,
=
U300_SLOW_PER_VIRT_BASE
@
MMU
on
,
virtual
address
...
...
arch/arm/mach-ux500/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
#define UX500_UART(n) __UX500_UART(n)
#define UX500_UART(n) __UX500_UART(n)
#define UART_BASE UX500_UART(CONFIG_UX500_DEBUG_UART)
#define UART_BASE UX500_UART(CONFIG_UX500_DEBUG_UART)
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
UART_BASE
@
no
,
physical
address
ldr
\
rp
,
=
UART_BASE
@
no
,
physical
address
ldr
\
rv
,
=
IO_ADDRESS
(
UART_BASE
)
@
yes
,
virtual
address
ldr
\
rv
,
=
IO_ADDRESS
(
UART_BASE
)
@
yes
,
virtual
address
.
endm
.
endm
...
...
arch/arm/mach-ux500/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* Copyright (C) 2009 ST-Ericsson
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
/*
* Physical DRAM offset.
*/
#define PLAT_PHYS_OFFSET UL(0x00000000)
#define BUS_OFFSET UL(0x00000000)
#endif
arch/arm/mach-versatile/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x001F0000
mov
\
rp
,
#
0x001F0000
orr
\
rp
,
\
rp
,
#
0x00001000
orr
\
rp
,
\
rp
,
#
0x00001000
orr
\
rv
,
\
rp
,
#
0xf1000000
@
virtual
base
orr
\
rv
,
\
rp
,
#
0xf1000000
@
virtual
base
...
...
arch/arm/mach-versatile/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-versatile/include/mach/memory.h
*
* Copyright (C) 2003 ARM Limited
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
/*
* Physical DRAM offset.
*/
#define PLAT_PHYS_OFFSET UL(0x00000000)
#endif
arch/arm/mach-vexpress/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
#define DEBUG_LL_UART_OFFSET 0x00009000
#define DEBUG_LL_UART_OFFSET 0x00009000
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
DEBUG_LL_UART_OFFSET
mov
\
rp
,
#
DEBUG_LL_UART_OFFSET
orr
\
rv
,
\
rp
,
#
0xf8000000
@
virtual
base
orr
\
rv
,
\
rp
,
#
0xf8000000
@
virtual
base
orr
\
rp
,
\
rp
,
#
0x10000000
@
physical
base
orr
\
rp
,
\
rp
,
#
0x10000000
@
physical
base
...
...
arch/arm/mach-vexpress/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-vexpress/include/mach/memory.h
*
* Copyright (C) 2003 ARM Limited
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x60000000)
#endif
arch/arm/mach-vt8500/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -11,7 +11,7 @@
...
@@ -11,7 +11,7 @@
*
*
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
0x00200000
mov
\
rp
,
#
0x00200000
orr
\
rv
,
\
rp
,
#
0xf8000000
orr
\
rv
,
\
rp
,
#
0xf8000000
orr
\
rp
,
\
rp
,
#
0xd8000000
orr
\
rp
,
\
rp
,
#
0xd8000000
...
...
arch/arm/mach-vt8500/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-vt8500/include/mach/memory.h
*
* Copyright (C) 2003 ARM Limited
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
/*
* Physical DRAM offset.
*/
#define PHYS_OFFSET UL(0x00000000)
#endif
arch/arm/mach-w90x900/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/mach-w90x900/include/mach/memory.h
*
* Copyright (c) 2008 Nuvoton technology corporation
* All rights reserved.
*
* Wan ZongShun <mcuos.com@gmail.com>
*
* Based on arch/arm/mach-s3c2410/include/mach/memory.h
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
#define PLAT_PHYS_OFFSET UL(0x00000000)
#endif
arch/arm/mach-zynq/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -17,7 +17,7 @@
...
@@ -17,7 +17,7 @@
#include <mach/zynq_soc.h>
#include <mach/zynq_soc.h>
#include <mach/uart.h>
#include <mach/uart.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
LL_UART_PADDR
@
physical
ldr
\
rp
,
=
LL_UART_PADDR
@
physical
ldr
\
rv
,
=
LL_UART_VADDR
@
virtual
ldr
\
rv
,
=
LL_UART_VADDR
@
virtual
.
endm
.
endm
...
...
arch/arm/mach-zynq/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/* arch/arm/mach-zynq/include/mach/memory.h
*
* Copyright (C) 2011 Xilinx
*
* This software is licensed under the terms of the GNU General Public
* License version 2, as published by the Free Software Foundation, and
* may be copied, distributed, and modified under those terms.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*/
#ifndef __MACH_MEMORY_H__
#define __MACH_MEMORY_H__
#include <asm/sizes.h>
#define PLAT_PHYS_OFFSET UL(0x0)
#endif
arch/arm/plat-mxc/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -54,7 +54,7 @@
...
@@ -54,7 +54,7 @@
#define UART_VADDR IMX_IO_ADDRESS(UART_PADDR)
#define UART_VADDR IMX_IO_ADDRESS(UART_PADDR)
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
ldr
\
rp
,
=
UART_PADDR
@
physical
ldr
\
rp
,
=
UART_PADDR
@
physical
ldr
\
rv
,
=
UART_VADDR
@
virtual
ldr
\
rv
,
=
UART_VADDR
@
virtual
.
endm
.
endm
...
...
arch/arm/plat-mxc/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* Copyright 2004-2007 Freescale Semiconductor, Inc. All Rights Reserved.
*/
/*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License version 2 as
* published by the Free Software Foundation.
*/
#ifndef __ASM_ARCH_MXC_MEMORY_H__
#define __ASM_ARCH_MXC_MEMORY_H__
#define MX1_PHYS_OFFSET UL(0x08000000)
#define MX21_PHYS_OFFSET UL(0xc0000000)
#define MX25_PHYS_OFFSET UL(0x80000000)
#define MX27_PHYS_OFFSET UL(0xa0000000)
#define MX3x_PHYS_OFFSET UL(0x80000000)
#define MX50_PHYS_OFFSET UL(0x70000000)
#define MX51_PHYS_OFFSET UL(0x90000000)
#define MX53_PHYS_OFFSET UL(0x70000000)
#if !defined(CONFIG_RUNTIME_PHYS_OFFSET)
# if defined CONFIG_ARCH_MX1
# define PLAT_PHYS_OFFSET MX1_PHYS_OFFSET
# elif defined CONFIG_MACH_MX21
# define PLAT_PHYS_OFFSET MX21_PHYS_OFFSET
# elif defined CONFIG_ARCH_MX25
# define PLAT_PHYS_OFFSET MX25_PHYS_OFFSET
# elif defined CONFIG_MACH_MX27
# define PLAT_PHYS_OFFSET MX27_PHYS_OFFSET
# elif defined CONFIG_ARCH_MX3
# define PLAT_PHYS_OFFSET MX3x_PHYS_OFFSET
# elif defined CONFIG_ARCH_MX50
# define PLAT_PHYS_OFFSET MX50_PHYS_OFFSET
# elif defined CONFIG_ARCH_MX51
# define PLAT_PHYS_OFFSET MX51_PHYS_OFFSET
# elif defined CONFIG_ARCH_MX53
# define PLAT_PHYS_OFFSET MX53_PHYS_OFFSET
# endif
#endif
#endif
/* __ASM_ARCH_MXC_MEMORY_H__ */
arch/arm/plat-omap/Kconfig
View file @
cefd3e71
...
@@ -14,6 +14,7 @@ config ARCH_OMAP1
...
@@ -14,6 +14,7 @@ config ARCH_OMAP1
select CLKDEV_LOOKUP
select CLKDEV_LOOKUP
select CLKSRC_MMIO
select CLKSRC_MMIO
select GENERIC_IRQ_CHIP
select GENERIC_IRQ_CHIP
select NEED_MACH_MEMORY_H
help
help
"Systems based on omap7xx, omap15xx or omap16xx"
"Systems based on omap7xx, omap15xx or omap16xx"
...
...
arch/arm/plat-omap/include/plat/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/plat-omap/include/mach/memory.h
*
* Memory map for OMAP-1510 and 1610
*
* Copyright (C) 2000 RidgeRun, Inc.
* Author: Greg Lonnon <glonnon@ridgerun.com>
*
* This file was derived from arch/arm/mach-intergrator/include/mach/memory.h
* Copyright (C) 1999 ARM Limited
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the
* Free Software Foundation; either version 2 of the License, or (at your
* option) any later version.
*
* THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESS OR IMPLIED
* WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN
* NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
* INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
* NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
* USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
* ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* You should have received a copy of the GNU General Public License along
* with this program; if not, write to the Free Software Foundation, Inc.,
* 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
/*
* Physical DRAM offset.
*/
#if defined(CONFIG_ARCH_OMAP1)
#define PLAT_PHYS_OFFSET UL(0x10000000)
#else
#define PLAT_PHYS_OFFSET UL(0x80000000)
#endif
/*
* Bus address is physical address, except for OMAP-1510 Local Bus.
* OMAP-1510 bus address is translated into a Local Bus address if the
* OMAP bus type is lbus. We do the address translation based on the
* device overriding the defaults used in the dma-mapping API.
* Note that the is_lbus_device() test is not very efficient on 1510
* because of the strncmp().
*/
#ifdef CONFIG_ARCH_OMAP15XX
/*
* OMAP-1510 Local Bus address offset
*/
#define OMAP1510_LB_OFFSET UL(0x30000000)
#define virt_to_lbus(x) ((x) - PAGE_OFFSET + OMAP1510_LB_OFFSET)
#define lbus_to_virt(x) ((x) - OMAP1510_LB_OFFSET + PAGE_OFFSET)
#define is_lbus_device(dev) (cpu_is_omap15xx() && dev && (strncmp(dev_name(dev), "ohci", 4) == 0))
#define __arch_pfn_to_dma(dev, pfn) \
({ dma_addr_t __dma = __pfn_to_phys(pfn); \
if (is_lbus_device(dev)) \
__dma = __dma - PHYS_OFFSET + OMAP1510_LB_OFFSET; \
__dma; })
#define __arch_dma_to_pfn(dev, addr) \
({ dma_addr_t __dma = addr; \
if (is_lbus_device(dev)) \
__dma += PHYS_OFFSET - OMAP1510_LB_OFFSET; \
__phys_to_pfn(__dma); \
})
#define __arch_dma_to_virt(dev, addr) ({ (void *) (is_lbus_device(dev) ? \
lbus_to_virt(addr) : \
__phys_to_virt(addr)); })
#define __arch_virt_to_dma(dev, addr) ({ unsigned long __addr = (unsigned long)(addr); \
(dma_addr_t) (is_lbus_device(dev) ? \
virt_to_lbus(__addr) : \
__virt_to_phys(__addr)); })
#endif
/* CONFIG_ARCH_OMAP15XX */
#endif
arch/arm/plat-omap/include/plat/serial.h
View file @
cefd3e71
...
@@ -16,8 +16,8 @@
...
@@ -16,8 +16,8 @@
#include <linux/init.h>
#include <linux/init.h>
/*
/*
* Memory entry used for the DEBUG_LL UART configuration
. See als
o
* Memory entry used for the DEBUG_LL UART configuration
, relative t
o
* uncompress.h and debug-macro.S.
*
start of RAM. See also
uncompress.h and debug-macro.S.
*
*
* Note that using a memory location for storing the UART configuration
* Note that using a memory location for storing the UART configuration
* has at least two limitations:
* has at least two limitations:
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
* 2. We assume printascii is called at least once before paging_init,
* 2. We assume printascii is called at least once before paging_init,
* and addruart has a chance to read OMAP_UART_INFO
* and addruart has a chance to read OMAP_UART_INFO
*/
*/
#define OMAP_UART_INFO
(PLAT_PHYS_OFFSET + 0x3ffc)
#define OMAP_UART_INFO
_OFS 0x3ffc
/* OMAP1 serial ports */
/* OMAP1 serial ports */
#define OMAP1_UART1_BASE 0xfffb0000
#define OMAP1_UART1_BASE 0xfffb0000
...
...
arch/arm/plat-omap/include/plat/uncompress.h
View file @
cefd3e71
...
@@ -36,7 +36,13 @@ int uart_shift;
...
@@ -36,7 +36,13 @@ int uart_shift;
*/
*/
static
void
set_omap_uart_info
(
unsigned
char
port
)
static
void
set_omap_uart_info
(
unsigned
char
port
)
{
{
*
(
volatile
u32
*
)
OMAP_UART_INFO
=
port
;
/*
* Get address of some.bss variable and round it down
* a la CONFIG_AUTO_ZRELADDR.
*/
u32
ram_start
=
(
u32
)
&
uart_shift
&
0xf8000000
;
u32
*
uart_info
=
(
u32
*
)(
ram_start
+
OMAP_UART_INFO_OFS
);
*
uart_info
=
port
;
}
}
static
void
putc
(
int
c
)
static
void
putc
(
int
c
)
...
...
arch/arm/plat-spear/include/plat/debug-macro.S
View file @
cefd3e71
...
@@ -14,7 +14,7 @@
...
@@ -14,7 +14,7 @@
#include <linux/amba/serial.h>
#include <linux/amba/serial.h>
#include <mach/hardware.h>
#include <mach/hardware.h>
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
mov
\
rp
,
#
SPEAR_DBG_UART_BASE
@
Physical
base
mov
\
rp
,
#
SPEAR_DBG_UART_BASE
@
Physical
base
mov
\
rv
,
#
VA_SPEAR_DBG_UART_BASE
@
Virtual
base
mov
\
rv
,
#
VA_SPEAR_DBG_UART_BASE
@
Virtual
base
.
endm
.
endm
...
...
arch/arm/plat-spear/include/plat/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* arch/arm/plat-spear/include/plat/memory.h
*
* Memory map for SPEAr platform
*
* Copyright (C) 2009 ST Microelectronics
* Viresh Kumar<viresh.kumar@st.com>
*
* This file is licensed under the terms of the GNU General Public
* License version 2. This program is licensed "as is" without any
* warranty of any kind, whether express or implied.
*/
#ifndef __PLAT_MEMORY_H
#define __PLAT_MEMORY_H
/* Physical DRAM offset */
#define PLAT_PHYS_OFFSET UL(0x00000000)
#endif
/* __PLAT_MEMORY_H */
arch/arm/plat-tcc/include/mach/debug-macro.S
View file @
cefd3e71
...
@@ -9,7 +9,7 @@
...
@@ -9,7 +9,7 @@
*
*
*/
*/
.
macro
addruart
,
rp
,
rv
.
macro
addruart
,
rp
,
rv
,
tmp
moveq
\
rp
,
#
0x90000000
@
physical
base
address
moveq
\
rp
,
#
0x90000000
@
physical
base
address
movne
\
rv
,
#
0xF1000000
@
virtual
base
movne
\
rv
,
#
0xF1000000
@
virtual
base
orr
\
rp
,
\
rp
,
#
0x00007000
@
UART0
orr
\
rp
,
\
rp
,
#
0x00007000
@
UART0
...
...
arch/arm/plat-tcc/include/mach/memory.h
deleted
100644 → 0
View file @
a26bce12
/*
* Copyright (C) 1999 ARM Limited
* Copyright (C) 2000 RidgeRun, Inc.
* Copyright (C) 2008-2009 Telechips
* Copyright (C) 2010 Hans J. Koch <hjk@linutronix.de>
*
* Licensed under the terms of the GPL v2.
*/
#ifndef __ASM_ARCH_MEMORY_H
#define __ASM_ARCH_MEMORY_H
/*
* Physical DRAM offset.
*/
#define PLAT_PHYS_OFFSET UL(0x20000000)
#endif
drivers/usb/musb/musb_debugfs.c
View file @
cefd3e71
...
@@ -41,12 +41,6 @@
...
@@ -41,12 +41,6 @@
#include <linux/debugfs.h>
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/seq_file.h>
#ifdef CONFIG_ARM
#include <mach/hardware.h>
#include <mach/memory.h>
#include <asm/mach-types.h>
#endif
#include <asm/uaccess.h>
#include <asm/uaccess.h>
#include "musb_core.h"
#include "musb_core.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment