Skip to content

Commit 67e0b15

Browse files
committed
Merge from steward-fu/miyoo@b891e84
0 parents  commit 67e0b15

File tree

12,844 files changed

+2437133
-0
lines changed

Some content is hidden

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

12,844 files changed

+2437133
-0
lines changed
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
NOP PHY driver
2+
3+
This driver is used to stub PHY operations in a driver (USB, SATA).
4+
This is useful when the 'client' driver (USB, SATA, ...) uses the PHY framework
5+
and there is no actual PHY harwdare to drive.
6+
7+
Required properties:
8+
- compatible : must contain "nop-phy"
9+
- #phy-cells : must contain <0>
10+
11+
Example:
12+
13+
nop_phy {
14+
compatible = "nop-phy";
15+
#phy-cells = <0>;
16+
};
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Broadcom STB wake-up Timer
2+
3+
The Broadcom STB wake-up timer provides a 27Mhz resolution timer, with the
4+
ability to wake up the system from low-power suspend/standby modes.
5+
6+
Required properties:
7+
- compatible : should contain "brcm,brcmstb-waketimer"
8+
- reg : the register start and length for the WKTMR block
9+
- interrupts : The TIMER interrupt
10+
- interrupt-parent: The phandle to the Always-On (AON) Power Management (PM) L2
11+
interrupt controller node
12+
- clocks : The phandle to the UPG fixed clock (27Mhz domain)
13+
14+
Example:
15+
16+
waketimer@f0411580 {
17+
compatible = "brcm,brcmstb-waketimer";
18+
reg = <0xf0411580 0x14>;
19+
interrupts = <0x3>;
20+
interrupt-parent = <&aon_pm_l2_intc>;
21+
clocks = <&upg_fixed>;
22+
};

Kbuild

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
#
2+
# Kbuild for top-level directory of U-Boot
3+
# This file takes care of the following:
4+
# 1) Generate generic-asm-offsets.h
5+
# 2) Generate asm-offsets.h
6+
7+
# Default sed regexp - multiline due to syntax constraints
8+
define sed-y
9+
"s:[[:space:]]*\.ascii[[:space:]]*\"\(.*\)\":\1:; \
10+
/^->/{s:->#\(.*\):/* \1 */:; \
11+
s:^->\([^ ]*\) [\$$#]*\([-0-9]*\) \(.*\):#define \1 \2 /* \3 */:; \
12+
s:^->\([^ ]*\) [\$$#]*\([^ ]*\) \(.*\):#define \1 \2 /* \3 */:; \
13+
s:->::; p;}"
14+
endef
15+
16+
# Use filechk to avoid rebuilds when a header changes, but the resulting file
17+
# does not
18+
define filechk_offsets
19+
(set -e; \
20+
echo "#ifndef $2"; \
21+
echo "#define $2"; \
22+
echo "/*"; \
23+
echo " * DO NOT MODIFY."; \
24+
echo " *"; \
25+
echo " * This file was generated by Kbuild"; \
26+
echo " */"; \
27+
echo ""; \
28+
sed -ne $(sed-y); \
29+
echo ""; \
30+
echo "#endif" )
31+
endef
32+
33+
#####
34+
# 1) Generate generic-asm-offsets.h
35+
36+
generic-offsets-file := include/generated/generic-asm-offsets.h
37+
38+
always := $(generic-offsets-file)
39+
targets := lib/asm-offsets.s
40+
41+
# We use internal kbuild rules to avoid the "is up to date" message from make
42+
lib/asm-offsets.s: lib/asm-offsets.c FORCE
43+
$(Q)mkdir -p $(dir $@)
44+
$(call if_changed_dep,cc_s_c)
45+
46+
$(obj)/$(generic-offsets-file): lib/asm-offsets.s FORCE
47+
$(call filechk,offsets,__GENERIC_ASM_OFFSETS_H__)
48+
49+
#####
50+
# 2) Generate asm-offsets.h
51+
#
52+
53+
ifneq ($(wildcard $(srctree)/arch/$(ARCH)/lib/asm-offsets.c),)
54+
offsets-file := include/generated/asm-offsets.h
55+
endif
56+
57+
always += $(offsets-file)
58+
targets += arch/$(ARCH)/lib/asm-offsets.s
59+
60+
CFLAGS_asm-offsets.o := -DDO_DEPS_ONLY
61+
62+
# We use internal kbuild rules to avoid the "is up to date" message from make
63+
arch/$(ARCH)/lib/asm-offsets.s: arch/$(ARCH)/lib/asm-offsets.c FORCE
64+
$(Q)mkdir -p $(dir $@)
65+
$(call if_changed_dep,cc_s_c)
66+
67+
$(obj)/$(offsets-file): arch/$(ARCH)/lib/asm-offsets.s FORCE
68+
$(call filechk,offsets,__ASM_OFFSETS_H__)

0 commit comments

Comments
 (0)