Skip to content

Commit 239df0f

Browse files
author
Russell King
committed
Merge branches 'devel', 'devel-stable' and 'fixes' into for-linus
3 parents cc780af + ae1d3b9 + 81479c2 commit 239df0f

188 files changed

Lines changed: 1455 additions & 6043 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎Documentation/arm/Booting‎

Lines changed: 29 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -65,13 +65,19 @@ looks at the connected hardware is beyond the scope of this document.
6565
The boot loader must ultimately be able to provide a MACH_TYPE_xxx
6666
value to the kernel. (see linux/arch/arm/tools/mach-types).
6767

68-
69-
4. Setup the kernel tagged list
70-
-------------------------------
68+
4. Setup boot data
69+
------------------
7170

7271
Existing boot loaders: OPTIONAL, HIGHLY RECOMMENDED
7372
New boot loaders: MANDATORY
7473

74+
The boot loader must provide either a tagged list or a dtb image for
75+
passing configuration data to the kernel. The physical address of the
76+
boot data is passed to the kernel in register r2.
77+
78+
4a. Setup the kernel tagged list
79+
--------------------------------
80+
7581
The boot loader must create and initialise the kernel tagged list.
7682
A valid tagged list starts with ATAG_CORE and ends with ATAG_NONE.
7783
The ATAG_CORE tag may or may not be empty. An empty ATAG_CORE tag
@@ -101,6 +107,24 @@ The tagged list must be placed in a region of memory where neither
101107
the kernel decompressor nor initrd 'bootp' program will overwrite
102108
it. The recommended placement is in the first 16KiB of RAM.
103109

110+
4b. Setup the device tree
111+
-------------------------
112+
113+
The boot loader must load a device tree image (dtb) into system ram
114+
at a 64bit aligned address and initialize it with the boot data. The
115+
dtb format is documented in Documentation/devicetree/booting-without-of.txt.
116+
The kernel will look for the dtb magic value of 0xd00dfeed at the dtb
117+
physical address to determine if a dtb has been passed instead of a
118+
tagged list.
119+
120+
The boot loader must pass at a minimum the size and location of the
121+
system memory, and the root filesystem location. The dtb must be
122+
placed in a region of memory where the kernel decompressor will not
123+
overwrite it. The recommended placement is in the first 16KiB of RAM
124+
with the caveat that it may not be located at physical address 0 since
125+
the kernel interprets a value of 0 in r2 to mean neither a tagged list
126+
nor a dtb were passed.
127+
104128
5. Calling the kernel image
105129
---------------------------
106130

@@ -125,7 +149,8 @@ In either case, the following conditions must be met:
125149
- CPU register settings
126150
r0 = 0,
127151
r1 = machine type number discovered in (3) above.
128-
r2 = physical address of tagged list in system RAM.
152+
r2 = physical address of tagged list in system RAM, or
153+
physical address of device tree block (dtb) in system RAM
129154

130155
- CPU mode
131156
All forms of interrupts must be disabled (IRQs and FIQs)

‎Documentation/arm/Samsung/Overview.txt‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Introduction
1414
- S3C24XX: See Documentation/arm/Samsung-S3C24XX/Overview.txt for full list
1515
- S3C64XX: S3C6400 and S3C6410
1616
- S5P6440
17-
- S5P6442
1817
- S5PC100
1918
- S5PC110 / S5PV210
2019

@@ -36,7 +35,6 @@ Configuration
3635
unifying all the SoCs into one kernel.
3736

3837
s5p6440_defconfig - S5P6440 specific default configuration
39-
s5p6442_defconfig - S5P6442 specific default configuration
4038
s5pc100_defconfig - S5PC100 specific default configuration
4139
s5pc110_defconfig - S5PC110 specific default configuration
4240
s5pv210_defconfig - S5PV210 specific default configuration

‎Documentation/devicetree/booting-without-of.txt‎

Lines changed: 44 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ Table of Contents
1212
=================
1313

1414
I - Introduction
15-
1) Entry point for arch/powerpc
16-
2) Entry point for arch/x86
15+
1) Entry point for arch/arm
16+
2) Entry point for arch/powerpc
17+
3) Entry point for arch/x86
1718

1819
II - The DT block format
1920
1) Header
@@ -148,7 +149,46 @@ upgrades without significantly impacting the kernel code or cluttering
148149
it with special cases.
149150

150151

151-
1) Entry point for arch/powerpc
152+
1) Entry point for arch/arm
153+
---------------------------
154+
155+
There is one single entry point to the kernel, at the start
156+
of the kernel image. That entry point supports two calling
157+
conventions. A summary of the interface is described here. A full
158+
description of the boot requirements is documented in
159+
Documentation/arm/Booting
160+
161+
a) ATAGS interface. Minimal information is passed from firmware
162+
to the kernel with a tagged list of predefined parameters.
163+
164+
r0 : 0
165+
166+
r1 : Machine type number
167+
168+
r2 : Physical address of tagged list in system RAM
169+
170+
b) Entry with a flattened device-tree block. Firmware loads the
171+
physical address of the flattened device tree block (dtb) into r2,
172+
r1 is not used, but it is considered good practise to use a valid
173+
machine number as described in Documentation/arm/Booting.
174+
175+
r0 : 0
176+
177+
r1 : Valid machine type number. When using a device tree,
178+
a single machine type number will often be assigned to
179+
represent a class or family of SoCs.
180+
181+
r2 : physical pointer to the device-tree block
182+
(defined in chapter II) in RAM. Device tree can be located
183+
anywhere in system RAM, but it should be aligned on a 64 bit
184+
boundary.
185+
186+
The kernel will differentiate between ATAGS and device tree booting by
187+
reading the memory pointed to by r2 and looking for either the flattened
188+
device tree block magic value (0xd00dfeed) or the ATAG_CORE value at
189+
offset 0x4 from r2 (0x54410001).
190+
191+
2) Entry point for arch/powerpc
152192
-------------------------------
153193

154194
There is one single entry point to the kernel, at the start
@@ -226,7 +266,7 @@ it with special cases.
226266
cannot support both configurations with Book E and configurations
227267
with classic Powerpc architectures.
228268

229-
2) Entry point for arch/x86
269+
3) Entry point for arch/x86
230270
-------------------------------
231271

232272
There is one single 32bit entry point to the kernel at code32_start,

‎arch/arm/Kconfig‎

Lines changed: 14 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ config ARCH_AT91
294294
bool "Atmel AT91"
295295
select ARCH_REQUIRE_GPIOLIB
296296
select HAVE_CLK
297+
select CLKDEV_LOOKUP
298+
select ARM_PATCH_PHYS_VIRT if MMU
297299
help
298300
This enables support for systems based on the Atmel AT91RM9200,
299301
AT91SAM9 and AT91CAP9 processors.
@@ -730,16 +732,6 @@ config ARCH_S5P64X0
730732
Samsung S5P64X0 CPU based systems, such as the Samsung SMDK6440,
731733
SMDK6450.
732734

733-
config ARCH_S5P6442
734-
bool "Samsung S5P6442"
735-
select CPU_V6
736-
select GENERIC_GPIO
737-
select HAVE_CLK
738-
select ARCH_USES_GETTIMEOFFSET
739-
select HAVE_S3C2410_WATCHDOG if WATCHDOG
740-
help
741-
Samsung S5P6442 CPU based systems
742-
743735
config ARCH_S5PC100
744736
bool "Samsung S5PC100"
745737
select GENERIC_GPIO
@@ -991,8 +983,6 @@ endif
991983

992984
source "arch/arm/mach-s5p64x0/Kconfig"
993985

994-
source "arch/arm/mach-s5p6442/Kconfig"
995-
996986
source "arch/arm/mach-s5pc100/Kconfig"
997987

998988
source "arch/arm/mach-s5pv210/Kconfig"
@@ -1399,7 +1389,6 @@ config NR_CPUS
13991389
config HOTPLUG_CPU
14001390
bool "Support for hot-pluggable CPUs (EXPERIMENTAL)"
14011391
depends on SMP && HOTPLUG && EXPERIMENTAL
1402-
depends on !ARCH_MSM
14031392
help
14041393
Say Y here to experiment with turning CPUs off and on. CPUs
14051394
can be controlled through /sys/devices/system/cpu.
@@ -1420,7 +1409,7 @@ source kernel/Kconfig.preempt
14201409
config HZ
14211410
int
14221411
default 200 if ARCH_EBSA110 || ARCH_S3C2410 || ARCH_S5P64X0 || \
1423-
ARCH_S5P6442 || ARCH_S5PV210 || ARCH_EXYNOS4
1412+
ARCH_S5PV210 || ARCH_EXYNOS4
14241413
default OMAP_32K_TIMER_HZ if ARCH_OMAP && OMAP_32K_TIMER
14251414
default AT91_TIMER_HZ if ARCH_AT91
14261415
default SHMOBILE_TIMER_HZ if ARCH_SHMOBILE
@@ -1516,6 +1505,9 @@ config ARCH_SPARSEMEM_DEFAULT
15161505
config ARCH_SELECT_MEMORY_MODEL
15171506
def_bool ARCH_SPARSEMEM_ENABLE
15181507

1508+
config HAVE_ARCH_PFN_VALID
1509+
def_bool ARCH_HAS_HOLES_MEMORYMODEL || !SPARSEMEM
1510+
15191511
config HIGHMEM
15201512
bool "High Memory Support"
15211513
depends on MMU
@@ -1683,6 +1675,13 @@ endmenu
16831675

16841676
menu "Boot options"
16851677

1678+
config USE_OF
1679+
bool "Flattened Device Tree support"
1680+
select OF
1681+
select OF_EARLY_FLATTREE
1682+
help
1683+
Include support for flattened device tree machine descriptions.
1684+
16861685
# Compressed boot loader in ROM. Yes, we really want to ask about
16871686
# TEXT and BSS so we preserve their values in the config files.
16881687
config ZBOOT_ROM_TEXT
@@ -2021,7 +2020,7 @@ menu "Power management options"
20212020
source "kernel/power/Kconfig"
20222021

20232022
config ARCH_SUSPEND_POSSIBLE
2024-
depends on !ARCH_S5P64X0 && !ARCH_S5P6442 && !ARCH_S5PC100
2023+
depends on !ARCH_S5P64X0 && !ARCH_S5PC100
20252024
depends on CPU_ARM920T || CPU_ARM926T || CPU_SA1100 || \
20262025
CPU_V6 || CPU_V6K || CPU_V7 || CPU_XSC3 || CPU_XSCALE
20272026
def_bool y

‎arch/arm/Makefile‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@ machine-$(CONFIG_ARCH_S3C2410) := s3c2410 s3c2400 s3c2412 s3c2416 s3c2440 s3c24
176176
machine-$(CONFIG_ARCH_S3C24A0) := s3c24a0
177177
machine-$(CONFIG_ARCH_S3C64XX) := s3c64xx
178178
machine-$(CONFIG_ARCH_S5P64X0) := s5p64x0
179-
machine-$(CONFIG_ARCH_S5P6442) := s5p6442
180179
machine-$(CONFIG_ARCH_S5PC100) := s5pc100
181180
machine-$(CONFIG_ARCH_S5PV210) := s5pv210
182181
machine-$(CONFIG_ARCH_EXYNOS4) := exynos4

‎arch/arm/common/Kconfig‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ config ARM_VIC
77
config ARM_VIC_NR
88
int
99
default 4 if ARCH_S5PV210
10-
default 3 if ARCH_S5P6442 || ARCH_S5PC100
10+
default 3 if ARCH_S5PC100
1111
default 2
1212
depends on ARM_VIC
1313
help

0 commit comments

Comments
 (0)