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
nexedi
linux
Commits
3132f623
Commit
3132f623
authored
May 07, 2013
by
Grant Likely
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-next' of
git://sources.calxeda.com/kernel/linux
into HEAD
parents
b855f16b
a2b9ea73
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
133 additions
and
47 deletions
+133
-47
Documentation/devicetree/usage-model.txt
Documentation/devicetree/usage-model.txt
+5
-3
arch/arm/boot/dts/include/dt-bindings
arch/arm/boot/dts/include/dt-bindings
+1
-0
include/dt-bindings/gpio/gpio.h
include/dt-bindings/gpio/gpio.h
+15
-0
include/dt-bindings/interrupt-controller/arm-gic.h
include/dt-bindings/interrupt-controller/arm-gic.h
+22
-0
include/dt-bindings/interrupt-controller/irq.h
include/dt-bindings/interrupt-controller/irq.h
+19
-0
include/linux/of_platform.h
include/linux/of_platform.h
+3
-2
scripts/Makefile.lib
scripts/Makefile.lib
+7
-10
scripts/basic/fixdep.c
scripts/basic/fixdep.c
+61
-32
No files found.
Documentation/devicetree/usage-model.txt
View file @
3132f623
...
@@ -191,9 +191,11 @@ Linux it will look something like this:
...
@@ -191,9 +191,11 @@ Linux it will look something like this:
};
};
The bootargs property contains the kernel arguments, and the initrd-*
The bootargs property contains the kernel arguments, and the initrd-*
properties define the address and size of an initrd blob. The
properties define the address and size of an initrd blob. Note that
chosen node may also optionally contain an arbitrary number of
initrd-end is the first address after the initrd image, so this doesn't
additional properties for platform-specific configuration data.
match the usual semantic of struct resource. The chosen node may also
optionally contain an arbitrary number of additional properties for
platform-specific configuration data.
During early boot, the architecture setup code calls of_scan_flat_dt()
During early boot, the architecture setup code calls of_scan_flat_dt()
several times with different helper callbacks to parse device tree
several times with different helper callbacks to parse device tree
...
...
arch/arm/boot/dts/include/dt-bindings
0 → 120000
View file @
3132f623
../../../../../include/dt-bindings
\ No newline at end of file
include/dt-bindings/gpio/gpio.h
0 → 100644
View file @
3132f623
/*
* This header provides constants for most GPIO bindings.
*
* Most GPIO bindings include a flags cell as part of the GPIO specifier.
* In most cases, the format of the flags cell uses the standard values
* defined in this header.
*/
#ifndef _DT_BINDINGS_GPIO_GPIO_H
#define _DT_BINDINGS_GPIO_GPIO_H
#define GPIO_ACTIVE_HIGH 0
#define GPIO_ACTIVE_LOW 1
#endif
include/dt-bindings/interrupt-controller/arm-gic.h
0 → 100644
View file @
3132f623
/*
* This header provides constants for the ARM GIC.
*/
#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
#define _DT_BINDINGS_INTERRUPT_CONTROLLER_ARM_GIC_H
#include <dt-bindings/interrupt-controller/irq.h>
/* interrupt specific cell 0 */
#define GIC_SPI 0
#define GIC_PPI 1
/*
* Interrupt specifier cell 2.
* The flaggs in irq.h are valid, plus those below.
*/
#define GIC_CPU_MASK_RAW(x) ((x) << 8)
#define GIC_CPU_MASK_SIMPLE(num) GIC_CPU_MASK_RAW((1 << (num)) - 1)
#endif
include/dt-bindings/interrupt-controller/irq.h
0 → 100644
View file @
3132f623
/*
* This header provides constants for most IRQ bindings.
*
* Most IRQ bindings include a flags cell as part of the IRQ specifier.
* In most cases, the format of the flags cell uses the standard values
* defined in this header.
*/
#ifndef _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H
#define _DT_BINDINGS_INTERRUPT_CONTROLLER_IRQ_H
#define IRQ_TYPE_NONE 0
#define IRQ_TYPE_EDGE_RISING 1
#define IRQ_TYPE_EDGE_FALLING 2
#define IRQ_TYPE_EDGE_BOTH (IRQ_TYPE_EDGE_FALLING | IRQ_TYPE_EDGE_RISING)
#define IRQ_TYPE_LEVEL_HIGH 4
#define IRQ_TYPE_LEVEL_LOW 8
#endif
include/linux/of_platform.h
View file @
3132f623
...
@@ -11,9 +11,10 @@
...
@@ -11,9 +11,10 @@
*
*
*/
*/
#ifdef CONFIG_OF_DEVICE
#include <linux/device.h>
#include <linux/device.h>
#include <linux/mod_devicetable.h>
#include <linux/mod_devicetable.h>
#ifdef CONFIG_OF_DEVICE
#include <linux/pm.h>
#include <linux/pm.h>
#include <linux/of_device.h>
#include <linux/of_device.h>
#include <linux/platform_device.h>
#include <linux/platform_device.h>
...
@@ -100,7 +101,7 @@ extern int of_platform_populate(struct device_node *root,
...
@@ -100,7 +101,7 @@ extern int of_platform_populate(struct device_node *root,
#if !defined(CONFIG_OF_ADDRESS)
#if !defined(CONFIG_OF_ADDRESS)
struct
of_dev_auxdata
;
struct
of_dev_auxdata
;
struct
device
;
struct
device
_node
;
static
inline
int
of_platform_populate
(
struct
device_node
*
root
,
static
inline
int
of_platform_populate
(
struct
device_node
*
root
,
const
struct
of_device_id
*
matches
,
const
struct
of_device_id
*
matches
,
const
struct
of_dev_auxdata
*
lookup
,
const
struct
of_dev_auxdata
*
lookup
,
...
...
scripts/Makefile.lib
View file @
3132f623
...
@@ -156,9 +156,9 @@ cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \
...
@@ -156,9 +156,9 @@ cpp_flags = -Wp,-MD,$(depfile) $(NOSTDINC_FLAGS) $(LINUXINCLUDE) \
ld_flags
=
$(LDFLAGS)
$
(
ldflags-y
)
ld_flags
=
$(LDFLAGS)
$
(
ldflags-y
)
dtc_cpp_flags
=
-Wp
,-MD,
$(depfile)
-nostdinc
\
dtc_cpp_flags
=
-Wp
,-MD,
$(depfile)
.pre
-nostdinc
\
-I
$(srctree)
/arch/
$(SRCARCH)
/boot/dts
\
-I
$(srctree)
/arch/
$(SRCARCH)
/boot/dts
\
-I
$(srctree)
/arch/
$(SRCARCH)
/
include/dts
\
-I
$(srctree)
/arch/
$(SRCARCH)
/
boot/dts/include
\
-undef
-D__DTS__
-undef
-D__DTS__
# Finds the multi-part object the current object will be linked into
# Finds the multi-part object the current object will be linked into
...
@@ -269,20 +269,17 @@ $(obj)/%.dtb.S: $(obj)/%.dtb
...
@@ -269,20 +269,17 @@ $(obj)/%.dtb.S: $(obj)/%.dtb
$(
call
cmd,dt_S_dtb
)
$(
call
cmd,dt_S_dtb
)
quiet_cmd_dtc
=
DTC
$@
quiet_cmd_dtc
=
DTC
$@
cmd_dtc
=
$(objtree)
/scripts/dtc/dtc
-O
dtb
-o
$@
-b
0
$(DTC_FLAGS)
-d
$(depfile)
$<
cmd_dtc
=
$(CPP)
$(dtc_cpp_flags)
-x
assembler-with-cpp
-o
$
(
dtc-tmp
)
$<
;
\
$(objtree)
/scripts/dtc/dtc
-O
dtb
-o
$@
-b
0
\
-i
$(srctree)
/arch/
$(SRCARCH)
/boot/dts
$(DTC_FLAGS)
\
-d
$(depfile)
.dtc
$
(
dtc-tmp
)
;
\
cat
$(depfile)
.pre
$(depfile)
.dtc
>
$(depfile)
$(obj)/%.dtb
:
$(src)/%.dts FORCE
$(obj)/%.dtb
:
$(src)/%.dts FORCE
$(
call
if_changed_dep,dtc
)
$(
call
if_changed_dep,dtc
)
dtc-tmp
=
$(
subst
$(comma)
,_,
$
(
dot-target
)
.dts
)
dtc-tmp
=
$(
subst
$(comma)
,_,
$
(
dot-target
)
.dts
)
quiet_cmd_dtc_cpp
=
DTC+CPP
$@
cmd_dtc_cpp
=
$(CPP)
$(dtc_cpp_flags)
-x
assembler-with-cpp
-o
$
(
dtc-tmp
)
$<
;
\
$(objtree)
/scripts/dtc/dtc
-O
dtb
-o
$@
-b
0
$(DTC_FLAGS)
$
(
dtc-tmp
)
$(obj)/%.dtb
:
$(src)/%.dtsp FORCE
$(
call
if_changed_dep,dtc_cpp
)
# Bzip2
# Bzip2
# ---------------------------------------------------------------------------
# ---------------------------------------------------------------------------
...
...
scripts/basic/fixdep.c
View file @
3132f623
...
@@ -320,49 +320,78 @@ static void parse_dep_file(void *map, size_t len)
...
@@ -320,49 +320,78 @@ static void parse_dep_file(void *map, size_t len)
char
*
end
=
m
+
len
;
char
*
end
=
m
+
len
;
char
*
p
;
char
*
p
;
char
s
[
PATH_MAX
];
char
s
[
PATH_MAX
];
int
first
;
int
is_target
;
int
saw_any_target
=
0
;
p
=
strchr
(
m
,
':'
);
int
is_first_dep
=
0
;
if
(
!
p
)
{
fprintf
(
stderr
,
"fixdep: parse error
\n
"
);
exit
(
1
);
}
memcpy
(
s
,
m
,
p
-
m
);
s
[
p
-
m
]
=
0
;
m
=
p
+
1
;
clear_config
();
clear_config
();
first
=
1
;
while
(
m
<
end
)
{
while
(
m
<
end
)
{
/* Skip any "white space" */
while
(
m
<
end
&&
(
*
m
==
' '
||
*
m
==
'\\'
||
*
m
==
'\n'
))
while
(
m
<
end
&&
(
*
m
==
' '
||
*
m
==
'\\'
||
*
m
==
'\n'
))
m
++
;
m
++
;
/* Find next "white space" */
p
=
m
;
p
=
m
;
while
(
p
<
end
&&
*
p
!=
' '
)
p
++
;
while
(
p
<
end
&&
*
p
!=
' '
&&
*
p
!=
'\\'
&&
*
p
!=
'\n'
)
if
(
p
==
end
)
{
do
p
--
;
while
(
!
isalnum
(
*
p
));
p
++
;
p
++
;
/* Is the token we found a target name? */
is_target
=
(
*
(
p
-
1
)
==
':'
);
/* Don't write any target names into the dependency file */
if
(
is_target
)
{
/* The /next/ file is the first dependency */
is_first_dep
=
1
;
}
else
{
/* Save this token/filename */
memcpy
(
s
,
m
,
p
-
m
);
s
[
p
-
m
]
=
0
;
/* Ignore certain dependencies */
if
(
strrcmp
(
s
,
"include/generated/autoconf.h"
)
&&
strrcmp
(
s
,
"arch/um/include/uml-config.h"
)
&&
strrcmp
(
s
,
"include/linux/kconfig.h"
)
&&
strrcmp
(
s
,
".ver"
))
{
/*
* Do not list the source file as dependency,
* so that kbuild is not confused if a .c file
* is rewritten into .S or vice versa. Storing
* it in source_* is needed for modpost to
* compute srcversions.
*/
if
(
is_first_dep
)
{
/*
* If processing the concatenation of
* multiple dependency files, only
* process the first target name, which
* will be the original source name,
* and ignore any other target names,
* which will be intermediate temporary
* files.
*/
if
(
!
saw_any_target
)
{
saw_any_target
=
1
;
printf
(
"source_%s := %s
\n\n
"
,
target
,
s
);
printf
(
"deps_%s :=
\\\n
"
,
target
);
}
is_first_dep
=
0
;
}
else
printf
(
" %s
\\\n
"
,
s
);
do_config_file
(
s
);
}
}
}
memcpy
(
s
,
m
,
p
-
m
);
s
[
p
-
m
]
=
0
;
/*
if
(
strrcmp
(
s
,
"include/generated/autoconf.h"
)
&&
* Start searching for next token immediately after the first
strrcmp
(
s
,
"arch/um/include/uml-config.h"
)
&&
* "whitespace" character that follows this token.
strrcmp
(
s
,
"include/linux/kconfig.h"
)
&&
*/
strrcmp
(
s
,
".ver"
))
{
/*
* Do not list the source file as dependency, so that
* kbuild is not confused if a .c file is rewritten
* into .S or vice versa. Storing it in source_* is
* needed for modpost to compute srcversions.
*/
if
(
first
)
{
printf
(
"source_%s := %s
\n\n
"
,
target
,
s
);
printf
(
"deps_%s :=
\\\n
"
,
target
);
}
else
printf
(
" %s
\\\n
"
,
s
);
do_config_file
(
s
);
}
first
=
0
;
m
=
p
+
1
;
m
=
p
+
1
;
}
}
if
(
!
saw_any_target
)
{
fprintf
(
stderr
,
"fixdep: parse error; no targets found
\n
"
);
exit
(
1
);
}
printf
(
"
\n
%s: $(deps_%s)
\n\n
"
,
target
,
target
);
printf
(
"
\n
%s: $(deps_%s)
\n\n
"
,
target
,
target
);
printf
(
"$(deps_%s):
\n
"
,
target
);
printf
(
"$(deps_%s):
\n
"
,
target
);
}
}
...
...
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