mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
synced 2025-01-08 15:04:45 +00:00
Merge branch 'master' of master.kernel.org:/pub/scm/linux/kernel/git/davem/net-2.6
Conflicts: drivers/net/wireless/iwlwifi/iwl-agn-rxon.c drivers/net/wireless/rtlwifi/pci.c net/netfilter/ipvs/ip_vs_core.c
This commit is contained in:
commit
9f6ec8d697
8
CREDITS
8
CREDITS
@ -518,6 +518,14 @@ N: Zach Brown
|
|||||||
E: zab@zabbo.net
|
E: zab@zabbo.net
|
||||||
D: maestro pci sound
|
D: maestro pci sound
|
||||||
|
|
||||||
|
M: David Brownell
|
||||||
|
D: Kernel engineer, mentor, and friend. Maintained USB EHCI and
|
||||||
|
D: gadget layers, SPI subsystem, GPIO subsystem, and more than a few
|
||||||
|
D: device drivers. His encouragement also helped many engineers get
|
||||||
|
D: started working on the Linux kernel. David passed away in early
|
||||||
|
D: 2011, and will be greatly missed.
|
||||||
|
W: https://lkml.org/lkml/2011/4/5/36
|
||||||
|
|
||||||
N: Gary Brubaker
|
N: Gary Brubaker
|
||||||
E: xavyer@ix.netcom.com
|
E: xavyer@ix.netcom.com
|
||||||
D: USB Serial Empeg Empeg-car Mark I/II Driver
|
D: USB Serial Empeg Empeg-car Mark I/II Driver
|
||||||
|
@ -0,0 +1,56 @@
|
|||||||
|
What: /sys/class/backlight/<backlight>/<ambient light zone>_max
|
||||||
|
What: /sys/class/backlight/<backlight>/l1_daylight_max
|
||||||
|
What: /sys/class/backlight/<backlight>/l2_bright_max
|
||||||
|
What: /sys/class/backlight/<backlight>/l3_office_max
|
||||||
|
What: /sys/class/backlight/<backlight>/l4_indoor_max
|
||||||
|
What: /sys/class/backlight/<backlight>/l5_dark_max
|
||||||
|
Date: Mai 2011
|
||||||
|
KernelVersion: 2.6.40
|
||||||
|
Contact: device-drivers-devel@blackfin.uclinux.org
|
||||||
|
Description:
|
||||||
|
Control the maximum brightness for <ambient light zone>
|
||||||
|
on this <backlight>. Values are between 0 and 127. This file
|
||||||
|
will also show the brightness level stored for this
|
||||||
|
<ambient light zone>.
|
||||||
|
|
||||||
|
What: /sys/class/backlight/<backlight>/<ambient light zone>_dim
|
||||||
|
What: /sys/class/backlight/<backlight>/l2_bright_dim
|
||||||
|
What: /sys/class/backlight/<backlight>/l3_office_dim
|
||||||
|
What: /sys/class/backlight/<backlight>/l4_indoor_dim
|
||||||
|
What: /sys/class/backlight/<backlight>/l5_dark_dim
|
||||||
|
Date: Mai 2011
|
||||||
|
KernelVersion: 2.6.40
|
||||||
|
Contact: device-drivers-devel@blackfin.uclinux.org
|
||||||
|
Description:
|
||||||
|
Control the dim brightness for <ambient light zone>
|
||||||
|
on this <backlight>. Values are between 0 and 127, typically
|
||||||
|
set to 0. Full off when the backlight is disabled.
|
||||||
|
This file will also show the dim brightness level stored for
|
||||||
|
this <ambient light zone>.
|
||||||
|
|
||||||
|
What: /sys/class/backlight/<backlight>/ambient_light_level
|
||||||
|
Date: Mai 2011
|
||||||
|
KernelVersion: 2.6.40
|
||||||
|
Contact: device-drivers-devel@blackfin.uclinux.org
|
||||||
|
Description:
|
||||||
|
Get conversion value of the light sensor.
|
||||||
|
This value is updated every 80 ms (when the light sensor
|
||||||
|
is enabled). Returns integer between 0 (dark) and
|
||||||
|
8000 (max ambient brightness)
|
||||||
|
|
||||||
|
What: /sys/class/backlight/<backlight>/ambient_light_zone
|
||||||
|
Date: Mai 2011
|
||||||
|
KernelVersion: 2.6.40
|
||||||
|
Contact: device-drivers-devel@blackfin.uclinux.org
|
||||||
|
Description:
|
||||||
|
Get/Set current ambient light zone. Reading returns
|
||||||
|
integer between 1..5 (1 = daylight, 2 = bright, ..., 5 = dark).
|
||||||
|
Writing a value between 1..5 forces the backlight controller
|
||||||
|
to enter the corresponding ambient light zone.
|
||||||
|
Writing 0 returns to normal/automatic ambient light level
|
||||||
|
operation. The ambient light sensing feature on these devices
|
||||||
|
is an extension to the API documented in
|
||||||
|
Documentation/ABI/stable/sysfs-class-backlight.
|
||||||
|
It can be enabled by writing the value stored in
|
||||||
|
/sys/class/backlight/<backlight>/max_brightness to
|
||||||
|
/sys/class/backlight/<backlight>/brightness.
|
@ -21,7 +21,7 @@ information will not be available.
|
|||||||
To extract cgroup statistics a utility very similar to getdelays.c
|
To extract cgroup statistics a utility very similar to getdelays.c
|
||||||
has been developed, the sample output of the utility is shown below
|
has been developed, the sample output of the utility is shown below
|
||||||
|
|
||||||
~/balbir/cgroupstats # ./getdelays -C "/cgroup/a"
|
~/balbir/cgroupstats # ./getdelays -C "/sys/fs/cgroup/a"
|
||||||
sleeping 1, blocked 0, running 1, stopped 0, uninterruptible 0
|
sleeping 1, blocked 0, running 1, stopped 0, uninterruptible 0
|
||||||
~/balbir/cgroupstats # ./getdelays -C "/cgroup"
|
~/balbir/cgroupstats # ./getdelays -C "/sys/fs/cgroup"
|
||||||
sleeping 155, blocked 0, running 1, stopped 0, uninterruptible 2
|
sleeping 155, blocked 0, running 1, stopped 0, uninterruptible 2
|
||||||
|
@ -28,16 +28,19 @@ cgroups. Here is what you can do.
|
|||||||
- Enable group scheduling in CFQ
|
- Enable group scheduling in CFQ
|
||||||
CONFIG_CFQ_GROUP_IOSCHED=y
|
CONFIG_CFQ_GROUP_IOSCHED=y
|
||||||
|
|
||||||
- Compile and boot into kernel and mount IO controller (blkio).
|
- Compile and boot into kernel and mount IO controller (blkio); see
|
||||||
|
cgroups.txt, Why are cgroups needed?.
|
||||||
|
|
||||||
mount -t cgroup -o blkio none /cgroup
|
mount -t tmpfs cgroup_root /sys/fs/cgroup
|
||||||
|
mkdir /sys/fs/cgroup/blkio
|
||||||
|
mount -t cgroup -o blkio none /sys/fs/cgroup/blkio
|
||||||
|
|
||||||
- Create two cgroups
|
- Create two cgroups
|
||||||
mkdir -p /cgroup/test1/ /cgroup/test2
|
mkdir -p /sys/fs/cgroup/blkio/test1/ /sys/fs/cgroup/blkio/test2
|
||||||
|
|
||||||
- Set weights of group test1 and test2
|
- Set weights of group test1 and test2
|
||||||
echo 1000 > /cgroup/test1/blkio.weight
|
echo 1000 > /sys/fs/cgroup/blkio/test1/blkio.weight
|
||||||
echo 500 > /cgroup/test2/blkio.weight
|
echo 500 > /sys/fs/cgroup/blkio/test2/blkio.weight
|
||||||
|
|
||||||
- Create two same size files (say 512MB each) on same disk (file1, file2) and
|
- Create two same size files (say 512MB each) on same disk (file1, file2) and
|
||||||
launch two dd threads in different cgroup to read those files.
|
launch two dd threads in different cgroup to read those files.
|
||||||
@ -46,12 +49,12 @@ cgroups. Here is what you can do.
|
|||||||
echo 3 > /proc/sys/vm/drop_caches
|
echo 3 > /proc/sys/vm/drop_caches
|
||||||
|
|
||||||
dd if=/mnt/sdb/zerofile1 of=/dev/null &
|
dd if=/mnt/sdb/zerofile1 of=/dev/null &
|
||||||
echo $! > /cgroup/test1/tasks
|
echo $! > /sys/fs/cgroup/blkio/test1/tasks
|
||||||
cat /cgroup/test1/tasks
|
cat /sys/fs/cgroup/blkio/test1/tasks
|
||||||
|
|
||||||
dd if=/mnt/sdb/zerofile2 of=/dev/null &
|
dd if=/mnt/sdb/zerofile2 of=/dev/null &
|
||||||
echo $! > /cgroup/test2/tasks
|
echo $! > /sys/fs/cgroup/blkio/test2/tasks
|
||||||
cat /cgroup/test2/tasks
|
cat /sys/fs/cgroup/blkio/test2/tasks
|
||||||
|
|
||||||
- At macro level, first dd should finish first. To get more precise data, keep
|
- At macro level, first dd should finish first. To get more precise data, keep
|
||||||
on looking at (with the help of script), at blkio.disk_time and
|
on looking at (with the help of script), at blkio.disk_time and
|
||||||
@ -68,13 +71,13 @@ Throttling/Upper Limit policy
|
|||||||
- Enable throttling in block layer
|
- Enable throttling in block layer
|
||||||
CONFIG_BLK_DEV_THROTTLING=y
|
CONFIG_BLK_DEV_THROTTLING=y
|
||||||
|
|
||||||
- Mount blkio controller
|
- Mount blkio controller (see cgroups.txt, Why are cgroups needed?)
|
||||||
mount -t cgroup -o blkio none /cgroup/blkio
|
mount -t cgroup -o blkio none /sys/fs/cgroup/blkio
|
||||||
|
|
||||||
- Specify a bandwidth rate on particular device for root group. The format
|
- Specify a bandwidth rate on particular device for root group. The format
|
||||||
for policy is "<major>:<minor> <byes_per_second>".
|
for policy is "<major>:<minor> <byes_per_second>".
|
||||||
|
|
||||||
echo "8:16 1048576" > /cgroup/blkio/blkio.read_bps_device
|
echo "8:16 1048576" > /sys/fs/cgroup/blkio/blkio.read_bps_device
|
||||||
|
|
||||||
Above will put a limit of 1MB/second on reads happening for root group
|
Above will put a limit of 1MB/second on reads happening for root group
|
||||||
on device having major/minor number 8:16.
|
on device having major/minor number 8:16.
|
||||||
@ -108,7 +111,7 @@ Hierarchical Cgroups
|
|||||||
CFQ and throttling will practically treat all groups at same level.
|
CFQ and throttling will practically treat all groups at same level.
|
||||||
|
|
||||||
pivot
|
pivot
|
||||||
/ | \ \
|
/ / \ \
|
||||||
root test1 test2 test3
|
root test1 test2 test3
|
||||||
|
|
||||||
Down the line we can implement hierarchical accounting/control support
|
Down the line we can implement hierarchical accounting/control support
|
||||||
@ -149,7 +152,7 @@ Proportional weight policy files
|
|||||||
|
|
||||||
Following is the format.
|
Following is the format.
|
||||||
|
|
||||||
#echo dev_maj:dev_minor weight > /path/to/cgroup/blkio.weight_device
|
# echo dev_maj:dev_minor weight > blkio.weight_device
|
||||||
Configure weight=300 on /dev/sdb (8:16) in this cgroup
|
Configure weight=300 on /dev/sdb (8:16) in this cgroup
|
||||||
# echo 8:16 300 > blkio.weight_device
|
# echo 8:16 300 > blkio.weight_device
|
||||||
# cat blkio.weight_device
|
# cat blkio.weight_device
|
||||||
|
@ -138,11 +138,11 @@ With the ability to classify tasks differently for different resources
|
|||||||
the admin can easily set up a script which receives exec notifications
|
the admin can easily set up a script which receives exec notifications
|
||||||
and depending on who is launching the browser he can
|
and depending on who is launching the browser he can
|
||||||
|
|
||||||
# echo browser_pid > /mnt/<restype>/<userclass>/tasks
|
# echo browser_pid > /sys/fs/cgroup/<restype>/<userclass>/tasks
|
||||||
|
|
||||||
With only a single hierarchy, he now would potentially have to create
|
With only a single hierarchy, he now would potentially have to create
|
||||||
a separate cgroup for every browser launched and associate it with
|
a separate cgroup for every browser launched and associate it with
|
||||||
approp network and other resource class. This may lead to
|
appropriate network and other resource class. This may lead to
|
||||||
proliferation of such cgroups.
|
proliferation of such cgroups.
|
||||||
|
|
||||||
Also lets say that the administrator would like to give enhanced network
|
Also lets say that the administrator would like to give enhanced network
|
||||||
@ -153,9 +153,9 @@ apps enhanced CPU power,
|
|||||||
With ability to write pids directly to resource classes, it's just a
|
With ability to write pids directly to resource classes, it's just a
|
||||||
matter of :
|
matter of :
|
||||||
|
|
||||||
# echo pid > /mnt/network/<new_class>/tasks
|
# echo pid > /sys/fs/cgroup/network/<new_class>/tasks
|
||||||
(after some time)
|
(after some time)
|
||||||
# echo pid > /mnt/network/<orig_class>/tasks
|
# echo pid > /sys/fs/cgroup/network/<orig_class>/tasks
|
||||||
|
|
||||||
Without this ability, he would have to split the cgroup into
|
Without this ability, he would have to split the cgroup into
|
||||||
multiple separate ones and then associate the new cgroups with the
|
multiple separate ones and then associate the new cgroups with the
|
||||||
@ -310,21 +310,24 @@ subsystem, this is the case for the cpuset.
|
|||||||
To start a new job that is to be contained within a cgroup, using
|
To start a new job that is to be contained within a cgroup, using
|
||||||
the "cpuset" cgroup subsystem, the steps are something like:
|
the "cpuset" cgroup subsystem, the steps are something like:
|
||||||
|
|
||||||
1) mkdir /dev/cgroup
|
1) mount -t tmpfs cgroup_root /sys/fs/cgroup
|
||||||
2) mount -t cgroup -ocpuset cpuset /dev/cgroup
|
2) mkdir /sys/fs/cgroup/cpuset
|
||||||
3) Create the new cgroup by doing mkdir's and write's (or echo's) in
|
3) mount -t cgroup -ocpuset cpuset /sys/fs/cgroup/cpuset
|
||||||
the /dev/cgroup virtual file system.
|
4) Create the new cgroup by doing mkdir's and write's (or echo's) in
|
||||||
4) Start a task that will be the "founding father" of the new job.
|
the /sys/fs/cgroup virtual file system.
|
||||||
5) Attach that task to the new cgroup by writing its pid to the
|
5) Start a task that will be the "founding father" of the new job.
|
||||||
/dev/cgroup tasks file for that cgroup.
|
6) Attach that task to the new cgroup by writing its pid to the
|
||||||
6) fork, exec or clone the job tasks from this founding father task.
|
/sys/fs/cgroup/cpuset/tasks file for that cgroup.
|
||||||
|
7) fork, exec or clone the job tasks from this founding father task.
|
||||||
|
|
||||||
For example, the following sequence of commands will setup a cgroup
|
For example, the following sequence of commands will setup a cgroup
|
||||||
named "Charlie", containing just CPUs 2 and 3, and Memory Node 1,
|
named "Charlie", containing just CPUs 2 and 3, and Memory Node 1,
|
||||||
and then start a subshell 'sh' in that cgroup:
|
and then start a subshell 'sh' in that cgroup:
|
||||||
|
|
||||||
mount -t cgroup cpuset -ocpuset /dev/cgroup
|
mount -t tmpfs cgroup_root /sys/fs/cgroup
|
||||||
cd /dev/cgroup
|
mkdir /sys/fs/cgroup/cpuset
|
||||||
|
mount -t cgroup cpuset -ocpuset /sys/fs/cgroup/cpuset
|
||||||
|
cd /sys/fs/cgroup/cpuset
|
||||||
mkdir Charlie
|
mkdir Charlie
|
||||||
cd Charlie
|
cd Charlie
|
||||||
/bin/echo 2-3 > cpuset.cpus
|
/bin/echo 2-3 > cpuset.cpus
|
||||||
@ -345,7 +348,7 @@ Creating, modifying, using the cgroups can be done through the cgroup
|
|||||||
virtual filesystem.
|
virtual filesystem.
|
||||||
|
|
||||||
To mount a cgroup hierarchy with all available subsystems, type:
|
To mount a cgroup hierarchy with all available subsystems, type:
|
||||||
# mount -t cgroup xxx /dev/cgroup
|
# mount -t cgroup xxx /sys/fs/cgroup
|
||||||
|
|
||||||
The "xxx" is not interpreted by the cgroup code, but will appear in
|
The "xxx" is not interpreted by the cgroup code, but will appear in
|
||||||
/proc/mounts so may be any useful identifying string that you like.
|
/proc/mounts so may be any useful identifying string that you like.
|
||||||
@ -354,23 +357,32 @@ Note: Some subsystems do not work without some user input first. For instance,
|
|||||||
if cpusets are enabled the user will have to populate the cpus and mems files
|
if cpusets are enabled the user will have to populate the cpus and mems files
|
||||||
for each new cgroup created before that group can be used.
|
for each new cgroup created before that group can be used.
|
||||||
|
|
||||||
|
As explained in section `1.2 Why are cgroups needed?' you should create
|
||||||
|
different hierarchies of cgroups for each single resource or group of
|
||||||
|
resources you want to control. Therefore, you should mount a tmpfs on
|
||||||
|
/sys/fs/cgroup and create directories for each cgroup resource or resource
|
||||||
|
group.
|
||||||
|
|
||||||
|
# mount -t tmpfs cgroup_root /sys/fs/cgroup
|
||||||
|
# mkdir /sys/fs/cgroup/rg1
|
||||||
|
|
||||||
To mount a cgroup hierarchy with just the cpuset and memory
|
To mount a cgroup hierarchy with just the cpuset and memory
|
||||||
subsystems, type:
|
subsystems, type:
|
||||||
# mount -t cgroup -o cpuset,memory hier1 /dev/cgroup
|
# mount -t cgroup -o cpuset,memory hier1 /sys/fs/cgroup/rg1
|
||||||
|
|
||||||
To change the set of subsystems bound to a mounted hierarchy, just
|
To change the set of subsystems bound to a mounted hierarchy, just
|
||||||
remount with different options:
|
remount with different options:
|
||||||
# mount -o remount,cpuset,blkio hier1 /dev/cgroup
|
# mount -o remount,cpuset,blkio hier1 /sys/fs/cgroup/rg1
|
||||||
|
|
||||||
Now memory is removed from the hierarchy and blkio is added.
|
Now memory is removed from the hierarchy and blkio is added.
|
||||||
|
|
||||||
Note this will add blkio to the hierarchy but won't remove memory or
|
Note this will add blkio to the hierarchy but won't remove memory or
|
||||||
cpuset, because the new options are appended to the old ones:
|
cpuset, because the new options are appended to the old ones:
|
||||||
# mount -o remount,blkio /dev/cgroup
|
# mount -o remount,blkio /sys/fs/cgroup/rg1
|
||||||
|
|
||||||
To Specify a hierarchy's release_agent:
|
To Specify a hierarchy's release_agent:
|
||||||
# mount -t cgroup -o cpuset,release_agent="/sbin/cpuset_release_agent" \
|
# mount -t cgroup -o cpuset,release_agent="/sbin/cpuset_release_agent" \
|
||||||
xxx /dev/cgroup
|
xxx /sys/fs/cgroup/rg1
|
||||||
|
|
||||||
Note that specifying 'release_agent' more than once will return failure.
|
Note that specifying 'release_agent' more than once will return failure.
|
||||||
|
|
||||||
@ -379,17 +391,17 @@ when the hierarchy consists of a single (root) cgroup. Supporting
|
|||||||
the ability to arbitrarily bind/unbind subsystems from an existing
|
the ability to arbitrarily bind/unbind subsystems from an existing
|
||||||
cgroup hierarchy is intended to be implemented in the future.
|
cgroup hierarchy is intended to be implemented in the future.
|
||||||
|
|
||||||
Then under /dev/cgroup you can find a tree that corresponds to the
|
Then under /sys/fs/cgroup/rg1 you can find a tree that corresponds to the
|
||||||
tree of the cgroups in the system. For instance, /dev/cgroup
|
tree of the cgroups in the system. For instance, /sys/fs/cgroup/rg1
|
||||||
is the cgroup that holds the whole system.
|
is the cgroup that holds the whole system.
|
||||||
|
|
||||||
If you want to change the value of release_agent:
|
If you want to change the value of release_agent:
|
||||||
# echo "/sbin/new_release_agent" > /dev/cgroup/release_agent
|
# echo "/sbin/new_release_agent" > /sys/fs/cgroup/rg1/release_agent
|
||||||
|
|
||||||
It can also be changed via remount.
|
It can also be changed via remount.
|
||||||
|
|
||||||
If you want to create a new cgroup under /dev/cgroup:
|
If you want to create a new cgroup under /sys/fs/cgroup/rg1:
|
||||||
# cd /dev/cgroup
|
# cd /sys/fs/cgroup/rg1
|
||||||
# mkdir my_cgroup
|
# mkdir my_cgroup
|
||||||
|
|
||||||
Now you want to do something with this cgroup.
|
Now you want to do something with this cgroup.
|
||||||
|
@ -10,26 +10,25 @@ directly present in its group.
|
|||||||
|
|
||||||
Accounting groups can be created by first mounting the cgroup filesystem.
|
Accounting groups can be created by first mounting the cgroup filesystem.
|
||||||
|
|
||||||
# mkdir /cgroups
|
# mount -t cgroup -ocpuacct none /sys/fs/cgroup
|
||||||
# mount -t cgroup -ocpuacct none /cgroups
|
|
||||||
|
|
||||||
With the above step, the initial or the parent accounting group
|
With the above step, the initial or the parent accounting group becomes
|
||||||
becomes visible at /cgroups. At bootup, this group includes all the
|
visible at /sys/fs/cgroup. At bootup, this group includes all the tasks in
|
||||||
tasks in the system. /cgroups/tasks lists the tasks in this cgroup.
|
the system. /sys/fs/cgroup/tasks lists the tasks in this cgroup.
|
||||||
/cgroups/cpuacct.usage gives the CPU time (in nanoseconds) obtained by
|
/sys/fs/cgroup/cpuacct.usage gives the CPU time (in nanoseconds) obtained
|
||||||
this group which is essentially the CPU time obtained by all the tasks
|
by this group which is essentially the CPU time obtained by all the tasks
|
||||||
in the system.
|
in the system.
|
||||||
|
|
||||||
New accounting groups can be created under the parent group /cgroups.
|
New accounting groups can be created under the parent group /sys/fs/cgroup.
|
||||||
|
|
||||||
# cd /cgroups
|
# cd /sys/fs/cgroup
|
||||||
# mkdir g1
|
# mkdir g1
|
||||||
# echo $$ > g1
|
# echo $$ > g1
|
||||||
|
|
||||||
The above steps create a new group g1 and move the current shell
|
The above steps create a new group g1 and move the current shell
|
||||||
process (bash) into it. CPU time consumed by this bash and its children
|
process (bash) into it. CPU time consumed by this bash and its children
|
||||||
can be obtained from g1/cpuacct.usage and the same is accumulated in
|
can be obtained from g1/cpuacct.usage and the same is accumulated in
|
||||||
/cgroups/cpuacct.usage also.
|
/sys/fs/cgroup/cpuacct.usage also.
|
||||||
|
|
||||||
cpuacct.stat file lists a few statistics which further divide the
|
cpuacct.stat file lists a few statistics which further divide the
|
||||||
CPU time obtained by the cgroup into user and system times. Currently
|
CPU time obtained by the cgroup into user and system times. Currently
|
||||||
|
@ -661,21 +661,21 @@ than stress the kernel.
|
|||||||
|
|
||||||
To start a new job that is to be contained within a cpuset, the steps are:
|
To start a new job that is to be contained within a cpuset, the steps are:
|
||||||
|
|
||||||
1) mkdir /dev/cpuset
|
1) mkdir /sys/fs/cgroup/cpuset
|
||||||
2) mount -t cgroup -ocpuset cpuset /dev/cpuset
|
2) mount -t cgroup -ocpuset cpuset /sys/fs/cgroup/cpuset
|
||||||
3) Create the new cpuset by doing mkdir's and write's (or echo's) in
|
3) Create the new cpuset by doing mkdir's and write's (or echo's) in
|
||||||
the /dev/cpuset virtual file system.
|
the /sys/fs/cgroup/cpuset virtual file system.
|
||||||
4) Start a task that will be the "founding father" of the new job.
|
4) Start a task that will be the "founding father" of the new job.
|
||||||
5) Attach that task to the new cpuset by writing its pid to the
|
5) Attach that task to the new cpuset by writing its pid to the
|
||||||
/dev/cpuset tasks file for that cpuset.
|
/sys/fs/cgroup/cpuset tasks file for that cpuset.
|
||||||
6) fork, exec or clone the job tasks from this founding father task.
|
6) fork, exec or clone the job tasks from this founding father task.
|
||||||
|
|
||||||
For example, the following sequence of commands will setup a cpuset
|
For example, the following sequence of commands will setup a cpuset
|
||||||
named "Charlie", containing just CPUs 2 and 3, and Memory Node 1,
|
named "Charlie", containing just CPUs 2 and 3, and Memory Node 1,
|
||||||
and then start a subshell 'sh' in that cpuset:
|
and then start a subshell 'sh' in that cpuset:
|
||||||
|
|
||||||
mount -t cgroup -ocpuset cpuset /dev/cpuset
|
mount -t cgroup -ocpuset cpuset /sys/fs/cgroup/cpuset
|
||||||
cd /dev/cpuset
|
cd /sys/fs/cgroup/cpuset
|
||||||
mkdir Charlie
|
mkdir Charlie
|
||||||
cd Charlie
|
cd Charlie
|
||||||
/bin/echo 2-3 > cpuset.cpus
|
/bin/echo 2-3 > cpuset.cpus
|
||||||
@ -710,14 +710,14 @@ Creating, modifying, using the cpusets can be done through the cpuset
|
|||||||
virtual filesystem.
|
virtual filesystem.
|
||||||
|
|
||||||
To mount it, type:
|
To mount it, type:
|
||||||
# mount -t cgroup -o cpuset cpuset /dev/cpuset
|
# mount -t cgroup -o cpuset cpuset /sys/fs/cgroup/cpuset
|
||||||
|
|
||||||
Then under /dev/cpuset you can find a tree that corresponds to the
|
Then under /sys/fs/cgroup/cpuset you can find a tree that corresponds to the
|
||||||
tree of the cpusets in the system. For instance, /dev/cpuset
|
tree of the cpusets in the system. For instance, /sys/fs/cgroup/cpuset
|
||||||
is the cpuset that holds the whole system.
|
is the cpuset that holds the whole system.
|
||||||
|
|
||||||
If you want to create a new cpuset under /dev/cpuset:
|
If you want to create a new cpuset under /sys/fs/cgroup/cpuset:
|
||||||
# cd /dev/cpuset
|
# cd /sys/fs/cgroup/cpuset
|
||||||
# mkdir my_cpuset
|
# mkdir my_cpuset
|
||||||
|
|
||||||
Now you want to do something with this cpuset.
|
Now you want to do something with this cpuset.
|
||||||
@ -765,12 +765,12 @@ wrapper around the cgroup filesystem.
|
|||||||
|
|
||||||
The command
|
The command
|
||||||
|
|
||||||
mount -t cpuset X /dev/cpuset
|
mount -t cpuset X /sys/fs/cgroup/cpuset
|
||||||
|
|
||||||
is equivalent to
|
is equivalent to
|
||||||
|
|
||||||
mount -t cgroup -ocpuset,noprefix X /dev/cpuset
|
mount -t cgroup -ocpuset,noprefix X /sys/fs/cgroup/cpuset
|
||||||
echo "/sbin/cpuset_release_agent" > /dev/cpuset/release_agent
|
echo "/sbin/cpuset_release_agent" > /sys/fs/cgroup/cpuset/release_agent
|
||||||
|
|
||||||
2.2 Adding/removing cpus
|
2.2 Adding/removing cpus
|
||||||
------------------------
|
------------------------
|
||||||
|
@ -22,16 +22,16 @@ removed from the child(ren).
|
|||||||
An entry is added using devices.allow, and removed using
|
An entry is added using devices.allow, and removed using
|
||||||
devices.deny. For instance
|
devices.deny. For instance
|
||||||
|
|
||||||
echo 'c 1:3 mr' > /cgroups/1/devices.allow
|
echo 'c 1:3 mr' > /sys/fs/cgroup/1/devices.allow
|
||||||
|
|
||||||
allows cgroup 1 to read and mknod the device usually known as
|
allows cgroup 1 to read and mknod the device usually known as
|
||||||
/dev/null. Doing
|
/dev/null. Doing
|
||||||
|
|
||||||
echo a > /cgroups/1/devices.deny
|
echo a > /sys/fs/cgroup/1/devices.deny
|
||||||
|
|
||||||
will remove the default 'a *:* rwm' entry. Doing
|
will remove the default 'a *:* rwm' entry. Doing
|
||||||
|
|
||||||
echo a > /cgroups/1/devices.allow
|
echo a > /sys/fs/cgroup/1/devices.allow
|
||||||
|
|
||||||
will add the 'a *:* rwm' entry to the whitelist.
|
will add the 'a *:* rwm' entry to the whitelist.
|
||||||
|
|
||||||
|
@ -59,28 +59,28 @@ is non-freezable.
|
|||||||
|
|
||||||
* Examples of usage :
|
* Examples of usage :
|
||||||
|
|
||||||
# mkdir /containers
|
# mkdir /sys/fs/cgroup/freezer
|
||||||
# mount -t cgroup -ofreezer freezer /containers
|
# mount -t cgroup -ofreezer freezer /sys/fs/cgroup/freezer
|
||||||
# mkdir /containers/0
|
# mkdir /sys/fs/cgroup/freezer/0
|
||||||
# echo $some_pid > /containers/0/tasks
|
# echo $some_pid > /sys/fs/cgroup/freezer/0/tasks
|
||||||
|
|
||||||
to get status of the freezer subsystem :
|
to get status of the freezer subsystem :
|
||||||
|
|
||||||
# cat /containers/0/freezer.state
|
# cat /sys/fs/cgroup/freezer/0/freezer.state
|
||||||
THAWED
|
THAWED
|
||||||
|
|
||||||
to freeze all tasks in the container :
|
to freeze all tasks in the container :
|
||||||
|
|
||||||
# echo FROZEN > /containers/0/freezer.state
|
# echo FROZEN > /sys/fs/cgroup/freezer/0/freezer.state
|
||||||
# cat /containers/0/freezer.state
|
# cat /sys/fs/cgroup/freezer/0/freezer.state
|
||||||
FREEZING
|
FREEZING
|
||||||
# cat /containers/0/freezer.state
|
# cat /sys/fs/cgroup/freezer/0/freezer.state
|
||||||
FROZEN
|
FROZEN
|
||||||
|
|
||||||
to unfreeze all tasks in the container :
|
to unfreeze all tasks in the container :
|
||||||
|
|
||||||
# echo THAWED > /containers/0/freezer.state
|
# echo THAWED > /sys/fs/cgroup/freezer/0/freezer.state
|
||||||
# cat /containers/0/freezer.state
|
# cat /sys/fs/cgroup/freezer/0/freezer.state
|
||||||
THAWED
|
THAWED
|
||||||
|
|
||||||
This is the basic mechanism which should do the right thing for user space task
|
This is the basic mechanism which should do the right thing for user space task
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
Memory Resource Controller
|
Memory Resource Controller
|
||||||
|
|
||||||
NOTE: The Memory Resource Controller has been generically been referred
|
NOTE: The Memory Resource Controller has generically been referred to as the
|
||||||
to as the memory controller in this document. Do not confuse memory
|
memory controller in this document. Do not confuse memory controller
|
||||||
controller used here with the memory controller that is used in hardware.
|
used here with the memory controller that is used in hardware.
|
||||||
|
|
||||||
(For editors)
|
(For editors)
|
||||||
In this document:
|
In this document:
|
||||||
@ -70,6 +70,7 @@ Brief summary of control files.
|
|||||||
(See sysctl's vm.swappiness)
|
(See sysctl's vm.swappiness)
|
||||||
memory.move_charge_at_immigrate # set/show controls of moving charges
|
memory.move_charge_at_immigrate # set/show controls of moving charges
|
||||||
memory.oom_control # set/show oom controls.
|
memory.oom_control # set/show oom controls.
|
||||||
|
memory.numa_stat # show the number of memory usage per numa node
|
||||||
|
|
||||||
1. History
|
1. History
|
||||||
|
|
||||||
@ -181,7 +182,7 @@ behind this approach is that a cgroup that aggressively uses a shared
|
|||||||
page will eventually get charged for it (once it is uncharged from
|
page will eventually get charged for it (once it is uncharged from
|
||||||
the cgroup that brought it in -- this will happen on memory pressure).
|
the cgroup that brought it in -- this will happen on memory pressure).
|
||||||
|
|
||||||
Exception: If CONFIG_CGROUP_CGROUP_MEM_RES_CTLR_SWAP is not used..
|
Exception: If CONFIG_CGROUP_CGROUP_MEM_RES_CTLR_SWAP is not used.
|
||||||
When you do swapoff and make swapped-out pages of shmem(tmpfs) to
|
When you do swapoff and make swapped-out pages of shmem(tmpfs) to
|
||||||
be backed into memory in force, charges for pages are accounted against the
|
be backed into memory in force, charges for pages are accounted against the
|
||||||
caller of swapoff rather than the users of shmem.
|
caller of swapoff rather than the users of shmem.
|
||||||
@ -213,7 +214,7 @@ affecting global LRU, memory+swap limit is better than just limiting swap from
|
|||||||
OS point of view.
|
OS point of view.
|
||||||
|
|
||||||
* What happens when a cgroup hits memory.memsw.limit_in_bytes
|
* What happens when a cgroup hits memory.memsw.limit_in_bytes
|
||||||
When a cgroup his memory.memsw.limit_in_bytes, it's useless to do swap-out
|
When a cgroup hits memory.memsw.limit_in_bytes, it's useless to do swap-out
|
||||||
in this cgroup. Then, swap-out will not be done by cgroup routine and file
|
in this cgroup. Then, swap-out will not be done by cgroup routine and file
|
||||||
caches are dropped. But as mentioned above, global LRU can do swapout memory
|
caches are dropped. But as mentioned above, global LRU can do swapout memory
|
||||||
from it for sanity of the system's memory management state. You can't forbid
|
from it for sanity of the system's memory management state. You can't forbid
|
||||||
@ -263,16 +264,17 @@ b. Enable CONFIG_RESOURCE_COUNTERS
|
|||||||
c. Enable CONFIG_CGROUP_MEM_RES_CTLR
|
c. Enable CONFIG_CGROUP_MEM_RES_CTLR
|
||||||
d. Enable CONFIG_CGROUP_MEM_RES_CTLR_SWAP (to use swap extension)
|
d. Enable CONFIG_CGROUP_MEM_RES_CTLR_SWAP (to use swap extension)
|
||||||
|
|
||||||
1. Prepare the cgroups
|
1. Prepare the cgroups (see cgroups.txt, Why are cgroups needed?)
|
||||||
# mkdir -p /cgroups
|
# mount -t tmpfs none /sys/fs/cgroup
|
||||||
# mount -t cgroup none /cgroups -o memory
|
# mkdir /sys/fs/cgroup/memory
|
||||||
|
# mount -t cgroup none /sys/fs/cgroup/memory -o memory
|
||||||
|
|
||||||
2. Make the new group and move bash into it
|
2. Make the new group and move bash into it
|
||||||
# mkdir /cgroups/0
|
# mkdir /sys/fs/cgroup/memory/0
|
||||||
# echo $$ > /cgroups/0/tasks
|
# echo $$ > /sys/fs/cgroup/memory/0/tasks
|
||||||
|
|
||||||
Since now we're in the 0 cgroup, we can alter the memory limit:
|
Since now we're in the 0 cgroup, we can alter the memory limit:
|
||||||
# echo 4M > /cgroups/0/memory.limit_in_bytes
|
# echo 4M > /sys/fs/cgroup/memory/0/memory.limit_in_bytes
|
||||||
|
|
||||||
NOTE: We can use a suffix (k, K, m, M, g or G) to indicate values in kilo,
|
NOTE: We can use a suffix (k, K, m, M, g or G) to indicate values in kilo,
|
||||||
mega or gigabytes. (Here, Kilo, Mega, Giga are Kibibytes, Mebibytes, Gibibytes.)
|
mega or gigabytes. (Here, Kilo, Mega, Giga are Kibibytes, Mebibytes, Gibibytes.)
|
||||||
@ -280,11 +282,11 @@ mega or gigabytes. (Here, Kilo, Mega, Giga are Kibibytes, Mebibytes, Gibibytes.)
|
|||||||
NOTE: We can write "-1" to reset the *.limit_in_bytes(unlimited).
|
NOTE: We can write "-1" to reset the *.limit_in_bytes(unlimited).
|
||||||
NOTE: We cannot set limits on the root cgroup any more.
|
NOTE: We cannot set limits on the root cgroup any more.
|
||||||
|
|
||||||
# cat /cgroups/0/memory.limit_in_bytes
|
# cat /sys/fs/cgroup/memory/0/memory.limit_in_bytes
|
||||||
4194304
|
4194304
|
||||||
|
|
||||||
We can check the usage:
|
We can check the usage:
|
||||||
# cat /cgroups/0/memory.usage_in_bytes
|
# cat /sys/fs/cgroup/memory/0/memory.usage_in_bytes
|
||||||
1216512
|
1216512
|
||||||
|
|
||||||
A successful write to this file does not guarantee a successful set of
|
A successful write to this file does not guarantee a successful set of
|
||||||
@ -464,6 +466,24 @@ value for efficient access. (Of course, when necessary, it's synchronized.)
|
|||||||
If you want to know more exact memory usage, you should use RSS+CACHE(+SWAP)
|
If you want to know more exact memory usage, you should use RSS+CACHE(+SWAP)
|
||||||
value in memory.stat(see 5.2).
|
value in memory.stat(see 5.2).
|
||||||
|
|
||||||
|
5.6 numa_stat
|
||||||
|
|
||||||
|
This is similar to numa_maps but operates on a per-memcg basis. This is
|
||||||
|
useful for providing visibility into the numa locality information within
|
||||||
|
an memcg since the pages are allowed to be allocated from any physical
|
||||||
|
node. One of the usecases is evaluating application performance by
|
||||||
|
combining this information with the application's cpu allocation.
|
||||||
|
|
||||||
|
We export "total", "file", "anon" and "unevictable" pages per-node for
|
||||||
|
each memcg. The ouput format of memory.numa_stat is:
|
||||||
|
|
||||||
|
total=<total pages> N0=<node 0 pages> N1=<node 1 pages> ...
|
||||||
|
file=<total file pages> N0=<node 0 pages> N1=<node 1 pages> ...
|
||||||
|
anon=<total anon pages> N0=<node 0 pages> N1=<node 1 pages> ...
|
||||||
|
unevictable=<total anon pages> N0=<node 0 pages> N1=<node 1 pages> ...
|
||||||
|
|
||||||
|
And we have total = file + anon + unevictable.
|
||||||
|
|
||||||
6. Hierarchy support
|
6. Hierarchy support
|
||||||
|
|
||||||
The memory controller supports a deep hierarchy and hierarchical accounting.
|
The memory controller supports a deep hierarchy and hierarchical accounting.
|
||||||
@ -471,13 +491,13 @@ The hierarchy is created by creating the appropriate cgroups in the
|
|||||||
cgroup filesystem. Consider for example, the following cgroup filesystem
|
cgroup filesystem. Consider for example, the following cgroup filesystem
|
||||||
hierarchy
|
hierarchy
|
||||||
|
|
||||||
root
|
root
|
||||||
/ | \
|
/ | \
|
||||||
/ | \
|
/ | \
|
||||||
a b c
|
a b c
|
||||||
| \
|
| \
|
||||||
| \
|
| \
|
||||||
d e
|
d e
|
||||||
|
|
||||||
In the diagram above, with hierarchical accounting enabled, all memory
|
In the diagram above, with hierarchical accounting enabled, all memory
|
||||||
usage of e, is accounted to its ancestors up until the root (i.e, c and root),
|
usage of e, is accounted to its ancestors up until the root (i.e, c and root),
|
||||||
|
@ -481,23 +481,6 @@ Who: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
|
|||||||
|
|
||||||
----------------------------
|
----------------------------
|
||||||
|
|
||||||
What: namespace cgroup (ns_cgroup)
|
|
||||||
When: 2.6.38
|
|
||||||
Why: The ns_cgroup leads to some problems:
|
|
||||||
* cgroup creation is out-of-control
|
|
||||||
* cgroup name can conflict when pids are looping
|
|
||||||
* it is not possible to have a single process handling
|
|
||||||
a lot of namespaces without falling in a exponential creation time
|
|
||||||
* we may want to create a namespace without creating a cgroup
|
|
||||||
|
|
||||||
The ns_cgroup is replaced by a compatibility flag 'clone_children',
|
|
||||||
where a newly created cgroup will copy the parent cgroup values.
|
|
||||||
The userspace has to manually create a cgroup and add a task to
|
|
||||||
the 'tasks' file.
|
|
||||||
Who: Daniel Lezcano <daniel.lezcano@free.fr>
|
|
||||||
|
|
||||||
----------------------------
|
|
||||||
|
|
||||||
What: iwlwifi disable_hw_scan module parameters
|
What: iwlwifi disable_hw_scan module parameters
|
||||||
When: 2.6.40
|
When: 2.6.40
|
||||||
Why: Hareware scan is the prefer method for iwlwifi devices for
|
Why: Hareware scan is the prefer method for iwlwifi devices for
|
||||||
|
@ -843,6 +843,7 @@ Provides counts of softirq handlers serviced since boot time, for each cpu.
|
|||||||
TASKLET: 0 0 0 290
|
TASKLET: 0 0 0 290
|
||||||
SCHED: 27035 26983 26971 26746
|
SCHED: 27035 26983 26971 26746
|
||||||
HRTIMER: 0 0 0 0
|
HRTIMER: 0 0 0 0
|
||||||
|
RCU: 1678 1769 2178 2250
|
||||||
|
|
||||||
|
|
||||||
1.3 IDE devices in /proc/ide
|
1.3 IDE devices in /proc/ide
|
||||||
|
@ -2598,6 +2598,8 @@ bytes respectively. Such letter suffixes can also be entirely omitted.
|
|||||||
unlock ejectable media);
|
unlock ejectable media);
|
||||||
m = MAX_SECTORS_64 (don't transfer more
|
m = MAX_SECTORS_64 (don't transfer more
|
||||||
than 64 sectors = 32 KB at a time);
|
than 64 sectors = 32 KB at a time);
|
||||||
|
n = INITIAL_READ10 (force a retry of the
|
||||||
|
initial READ(10) command);
|
||||||
o = CAPACITY_OK (accept the capacity
|
o = CAPACITY_OK (accept the capacity
|
||||||
reported by the device);
|
reported by the device);
|
||||||
r = IGNORE_RESIDUE (the device reports
|
r = IGNORE_RESIDUE (the device reports
|
||||||
|
@ -11,7 +11,9 @@ with the difference that the orphan objects are not freed but only
|
|||||||
reported via /sys/kernel/debug/kmemleak. A similar method is used by the
|
reported via /sys/kernel/debug/kmemleak. A similar method is used by the
|
||||||
Valgrind tool (memcheck --leak-check) to detect the memory leaks in
|
Valgrind tool (memcheck --leak-check) to detect the memory leaks in
|
||||||
user-space applications.
|
user-space applications.
|
||||||
Kmemleak is supported on x86, arm, powerpc, sparc, sh, microblaze and tile.
|
|
||||||
|
Please check DEBUG_KMEMLEAK dependencies in lib/Kconfig.debug for supported
|
||||||
|
architectures.
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
@ -555,7 +555,7 @@ also have
|
|||||||
sync_min
|
sync_min
|
||||||
sync_max
|
sync_max
|
||||||
The two values, given as numbers of sectors, indicate a range
|
The two values, given as numbers of sectors, indicate a range
|
||||||
withing the array where 'check'/'repair' will operate. Must be
|
within the array where 'check'/'repair' will operate. Must be
|
||||||
a multiple of chunk_size. When it reaches "sync_max" it will
|
a multiple of chunk_size. When it reaches "sync_max" it will
|
||||||
pause, rather than complete.
|
pause, rather than complete.
|
||||||
You can use 'select' or 'poll' on "sync_completed" to wait for
|
You can use 'select' or 'poll' on "sync_completed" to wait for
|
||||||
|
@ -9,7 +9,121 @@ If variable is of Type, use printk format specifier:
|
|||||||
size_t %zu or %zx
|
size_t %zu or %zx
|
||||||
ssize_t %zd or %zx
|
ssize_t %zd or %zx
|
||||||
|
|
||||||
Raw pointer value SHOULD be printed with %p.
|
Raw pointer value SHOULD be printed with %p. The kernel supports
|
||||||
|
the following extended format specifiers for pointer types:
|
||||||
|
|
||||||
|
Symbols/Function Pointers:
|
||||||
|
|
||||||
|
%pF versatile_init+0x0/0x110
|
||||||
|
%pf versatile_init
|
||||||
|
%pS versatile_init+0x0/0x110
|
||||||
|
%ps versatile_init
|
||||||
|
%pB prev_fn_of_versatile_init+0x88/0x88
|
||||||
|
|
||||||
|
For printing symbols and function pointers. The 'S' and 's' specifiers
|
||||||
|
result in the symbol name with ('S') or without ('s') offsets. Where
|
||||||
|
this is used on a kernel without KALLSYMS - the symbol address is
|
||||||
|
printed instead.
|
||||||
|
|
||||||
|
The 'B' specifier results in the symbol name with offsets and should be
|
||||||
|
used when printing stack backtraces. The specifier takes into
|
||||||
|
consideration the effect of compiler optimisations which may occur
|
||||||
|
when tail-call's are used and marked with the noreturn GCC attribute.
|
||||||
|
|
||||||
|
On ia64, ppc64 and parisc64 architectures function pointers are
|
||||||
|
actually function descriptors which must first be resolved. The 'F' and
|
||||||
|
'f' specifiers perform this resolution and then provide the same
|
||||||
|
functionality as the 'S' and 's' specifiers.
|
||||||
|
|
||||||
|
Kernel Pointers:
|
||||||
|
|
||||||
|
%pK 0x01234567 or 0x0123456789abcdef
|
||||||
|
|
||||||
|
For printing kernel pointers which should be hidden from unprivileged
|
||||||
|
users. The behaviour of %pK depends on the kptr_restrict sysctl - see
|
||||||
|
Documentation/sysctl/kernel.txt for more details.
|
||||||
|
|
||||||
|
Struct Resources:
|
||||||
|
|
||||||
|
%pr [mem 0x60000000-0x6fffffff flags 0x2200] or
|
||||||
|
[mem 0x0000000060000000-0x000000006fffffff flags 0x2200]
|
||||||
|
%pR [mem 0x60000000-0x6fffffff pref] or
|
||||||
|
[mem 0x0000000060000000-0x000000006fffffff pref]
|
||||||
|
|
||||||
|
For printing struct resources. The 'R' and 'r' specifiers result in a
|
||||||
|
printed resource with ('R') or without ('r') a decoded flags member.
|
||||||
|
|
||||||
|
MAC/FDDI addresses:
|
||||||
|
|
||||||
|
%pM 00:01:02:03:04:05
|
||||||
|
%pMF 00-01-02-03-04-05
|
||||||
|
%pm 000102030405
|
||||||
|
|
||||||
|
For printing 6-byte MAC/FDDI addresses in hex notation. The 'M' and 'm'
|
||||||
|
specifiers result in a printed address with ('M') or without ('m') byte
|
||||||
|
separators. The default byte separator is the colon (':').
|
||||||
|
|
||||||
|
Where FDDI addresses are concerned the 'F' specifier can be used after
|
||||||
|
the 'M' specifier to use dash ('-') separators instead of the default
|
||||||
|
separator.
|
||||||
|
|
||||||
|
IPv4 addresses:
|
||||||
|
|
||||||
|
%pI4 1.2.3.4
|
||||||
|
%pi4 001.002.003.004
|
||||||
|
%p[Ii][hnbl]
|
||||||
|
|
||||||
|
For printing IPv4 dot-separated decimal addresses. The 'I4' and 'i4'
|
||||||
|
specifiers result in a printed address with ('i4') or without ('I4')
|
||||||
|
leading zeros.
|
||||||
|
|
||||||
|
The additional 'h', 'n', 'b', and 'l' specifiers are used to specify
|
||||||
|
host, network, big or little endian order addresses respectively. Where
|
||||||
|
no specifier is provided the default network/big endian order is used.
|
||||||
|
|
||||||
|
IPv6 addresses:
|
||||||
|
|
||||||
|
%pI6 0001:0002:0003:0004:0005:0006:0007:0008
|
||||||
|
%pi6 00010002000300040005000600070008
|
||||||
|
%pI6c 1:2:3:4:5:6:7:8
|
||||||
|
|
||||||
|
For printing IPv6 network-order 16-bit hex addresses. The 'I6' and 'i6'
|
||||||
|
specifiers result in a printed address with ('I6') or without ('i6')
|
||||||
|
colon-separators. Leading zeros are always used.
|
||||||
|
|
||||||
|
The additional 'c' specifier can be used with the 'I' specifier to
|
||||||
|
print a compressed IPv6 address as described by
|
||||||
|
http://tools.ietf.org/html/rfc5952
|
||||||
|
|
||||||
|
UUID/GUID addresses:
|
||||||
|
|
||||||
|
%pUb 00010203-0405-0607-0809-0a0b0c0d0e0f
|
||||||
|
%pUB 00010203-0405-0607-0809-0A0B0C0D0E0F
|
||||||
|
%pUl 03020100-0504-0706-0809-0a0b0c0e0e0f
|
||||||
|
%pUL 03020100-0504-0706-0809-0A0B0C0E0E0F
|
||||||
|
|
||||||
|
For printing 16-byte UUID/GUIDs addresses. The additional 'l', 'L',
|
||||||
|
'b' and 'B' specifiers are used to specify a little endian order in
|
||||||
|
lower ('l') or upper case ('L') hex characters - and big endian order
|
||||||
|
in lower ('b') or upper case ('B') hex characters.
|
||||||
|
|
||||||
|
Where no additional specifiers are used the default little endian
|
||||||
|
order with lower case hex characters will be printed.
|
||||||
|
|
||||||
|
struct va_format:
|
||||||
|
|
||||||
|
%pV
|
||||||
|
|
||||||
|
For printing struct va_format structures. These contain a format string
|
||||||
|
and va_list as follows:
|
||||||
|
|
||||||
|
struct va_format {
|
||||||
|
const char *fmt;
|
||||||
|
va_list *va;
|
||||||
|
};
|
||||||
|
|
||||||
|
Do not use this feature without some mechanism to verify the
|
||||||
|
correctness of the format string and va_list arguments.
|
||||||
|
|
||||||
u64 SHOULD be printed with %llu/%llx, (unsigned long long):
|
u64 SHOULD be printed with %llu/%llx, (unsigned long long):
|
||||||
|
|
||||||
@ -32,4 +146,5 @@ Reminder: sizeof() result is of type size_t.
|
|||||||
Thank you for your cooperation and attention.
|
Thank you for your cooperation and attention.
|
||||||
|
|
||||||
|
|
||||||
By Randy Dunlap <rdunlap@xenotime.net>
|
By Randy Dunlap <rdunlap@xenotime.net> and
|
||||||
|
Andrew Murray <amurray@mpc-data.co.uk>
|
||||||
|
@ -223,9 +223,10 @@ When CONFIG_FAIR_GROUP_SCHED is defined, a "cpu.shares" file is created for each
|
|||||||
group created using the pseudo filesystem. See example steps below to create
|
group created using the pseudo filesystem. See example steps below to create
|
||||||
task groups and modify their CPU share using the "cgroups" pseudo filesystem.
|
task groups and modify their CPU share using the "cgroups" pseudo filesystem.
|
||||||
|
|
||||||
# mkdir /dev/cpuctl
|
# mount -t tmpfs cgroup_root /sys/fs/cgroup
|
||||||
# mount -t cgroup -ocpu none /dev/cpuctl
|
# mkdir /sys/fs/cgroup/cpu
|
||||||
# cd /dev/cpuctl
|
# mount -t cgroup -ocpu none /sys/fs/cgroup/cpu
|
||||||
|
# cd /sys/fs/cgroup/cpu
|
||||||
|
|
||||||
# mkdir multimedia # create "multimedia" group of tasks
|
# mkdir multimedia # create "multimedia" group of tasks
|
||||||
# mkdir browser # create "browser" group of tasks
|
# mkdir browser # create "browser" group of tasks
|
||||||
|
@ -129,9 +129,8 @@ priority!
|
|||||||
Enabling CONFIG_RT_GROUP_SCHED lets you explicitly allocate real
|
Enabling CONFIG_RT_GROUP_SCHED lets you explicitly allocate real
|
||||||
CPU bandwidth to task groups.
|
CPU bandwidth to task groups.
|
||||||
|
|
||||||
This uses the /cgroup virtual file system and
|
This uses the cgroup virtual file system and "<cgroup>/cpu.rt_runtime_us"
|
||||||
"/cgroup/<cgroup>/cpu.rt_runtime_us" to control the CPU time reserved for each
|
to control the CPU time reserved for each control group.
|
||||||
control group.
|
|
||||||
|
|
||||||
For more information on working with control groups, you should read
|
For more information on working with control groups, you should read
|
||||||
Documentation/cgroups/cgroups.txt as well.
|
Documentation/cgroups/cgroups.txt as well.
|
||||||
@ -150,7 +149,7 @@ For now, this can be simplified to just the following (but see Future plans):
|
|||||||
===============
|
===============
|
||||||
|
|
||||||
There is work in progress to make the scheduling period for each group
|
There is work in progress to make the scheduling period for each group
|
||||||
("/cgroup/<cgroup>/cpu.rt_period_us") configurable as well.
|
("<cgroup>/cpu.rt_period_us") configurable as well.
|
||||||
|
|
||||||
The constraint on the period is that a subgroup must have a smaller or
|
The constraint on the period is that a subgroup must have a smaller or
|
||||||
equal period to its parent. But realistically its not very useful _yet_
|
equal period to its parent. But realistically its not very useful _yet_
|
||||||
|
@ -129,12 +129,12 @@ Limit injection to pages owned by memgroup. Specified by inode number
|
|||||||
of the memcg.
|
of the memcg.
|
||||||
|
|
||||||
Example:
|
Example:
|
||||||
mkdir /cgroup/hwpoison
|
mkdir /sys/fs/cgroup/mem/hwpoison
|
||||||
|
|
||||||
usemem -m 100 -s 1000 &
|
usemem -m 100 -s 1000 &
|
||||||
echo `jobs -p` > /cgroup/hwpoison/tasks
|
echo `jobs -p` > /sys/fs/cgroup/mem/hwpoison/tasks
|
||||||
|
|
||||||
memcg_ino=$(ls -id /cgroup/hwpoison | cut -f1 -d' ')
|
memcg_ino=$(ls -id /sys/fs/cgroup/mem/hwpoison | cut -f1 -d' ')
|
||||||
echo $memcg_ino > /debug/hwpoison/corrupt-filter-memcg
|
echo $memcg_ino > /debug/hwpoison/corrupt-filter-memcg
|
||||||
|
|
||||||
page-types -p `pidof init` --hwpoison # shall do nothing
|
page-types -p `pidof init` --hwpoison # shall do nothing
|
||||||
|
50
MAINTAINERS
50
MAINTAINERS
@ -1739,7 +1739,7 @@ S: Supported
|
|||||||
F: drivers/net/enic/
|
F: drivers/net/enic/
|
||||||
|
|
||||||
CIRRUS LOGIC EP93XX ETHERNET DRIVER
|
CIRRUS LOGIC EP93XX ETHERNET DRIVER
|
||||||
M: Lennert Buytenhek <kernel@wantstofly.org>
|
M: Hartley Sweeten <hsweeten@visionengravers.com>
|
||||||
L: netdev@vger.kernel.org
|
L: netdev@vger.kernel.org
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: drivers/net/arm/ep93xx_eth.c
|
F: drivers/net/arm/ep93xx_eth.c
|
||||||
@ -1889,7 +1889,6 @@ L: cpufreq@vger.kernel.org
|
|||||||
W: http://www.codemonkey.org.uk/projects/cpufreq/
|
W: http://www.codemonkey.org.uk/projects/cpufreq/
|
||||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq.git
|
T: git git://git.kernel.org/pub/scm/linux/kernel/git/davej/cpufreq.git
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: arch/x86/kernel/cpu/cpufreq/
|
|
||||||
F: drivers/cpufreq/
|
F: drivers/cpufreq/
|
||||||
F: include/linux/cpufreq.h
|
F: include/linux/cpufreq.h
|
||||||
|
|
||||||
@ -2292,8 +2291,7 @@ F: drivers/scsi/eata_pio.*
|
|||||||
|
|
||||||
EBTABLES
|
EBTABLES
|
||||||
M: Bart De Schuymer <bart.de.schuymer@pandora.be>
|
M: Bart De Schuymer <bart.de.schuymer@pandora.be>
|
||||||
L: ebtables-user@lists.sourceforge.net
|
L: netfilter-devel@vger.kernel.org
|
||||||
L: ebtables-devel@lists.sourceforge.net
|
|
||||||
W: http://ebtables.sourceforge.net/
|
W: http://ebtables.sourceforge.net/
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: include/linux/netfilter_bridge/ebt_*.h
|
F: include/linux/netfilter_bridge/ebt_*.h
|
||||||
@ -3820,6 +3818,12 @@ S: Maintained
|
|||||||
F: drivers/leds/
|
F: drivers/leds/
|
||||||
F: include/linux/leds.h
|
F: include/linux/leds.h
|
||||||
|
|
||||||
|
LEGACY EEPROM DRIVER
|
||||||
|
M: Jean Delvare <khali@linux-fr.org>
|
||||||
|
S: Maintained
|
||||||
|
F: Documentation/misc-devices/eeprom
|
||||||
|
F: drivers/misc/eeprom/eeprom.c
|
||||||
|
|
||||||
LEGO USB Tower driver
|
LEGO USB Tower driver
|
||||||
M: Juergen Stuber <starblue@users.sourceforge.net>
|
M: Juergen Stuber <starblue@users.sourceforge.net>
|
||||||
L: legousb-devel@lists.sourceforge.net
|
L: legousb-devel@lists.sourceforge.net
|
||||||
@ -4145,7 +4149,7 @@ F: include/linux/mm.h
|
|||||||
F: mm/
|
F: mm/
|
||||||
|
|
||||||
MEMORY RESOURCE CONTROLLER
|
MEMORY RESOURCE CONTROLLER
|
||||||
M: Balbir Singh <balbir@linux.vnet.ibm.com>
|
M: Balbir Singh <bsingharora@gmail.com>
|
||||||
M: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
|
M: Daisuke Nishimura <nishimura@mxp.nes.nec.co.jp>
|
||||||
M: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
|
M: KAMEZAWA Hiroyuki <kamezawa.hiroyu@jp.fujitsu.com>
|
||||||
L: linux-mm@kvack.org
|
L: linux-mm@kvack.org
|
||||||
@ -4252,8 +4256,7 @@ F: drivers/mmc/
|
|||||||
F: include/linux/mmc/
|
F: include/linux/mmc/
|
||||||
|
|
||||||
MULTIMEDIA CARD (MMC) ETC. OVER SPI
|
MULTIMEDIA CARD (MMC) ETC. OVER SPI
|
||||||
M: David Brownell <dbrownell@users.sourceforge.net>
|
S: Orphan
|
||||||
S: Odd Fixes
|
|
||||||
F: drivers/mmc/host/mmc_spi.c
|
F: drivers/mmc/host/mmc_spi.c
|
||||||
F: include/linux/spi/mmc_spi.h
|
F: include/linux/spi/mmc_spi.h
|
||||||
|
|
||||||
@ -4603,7 +4606,6 @@ F: drivers/media/video/omap3isp/*
|
|||||||
|
|
||||||
OMAP USB SUPPORT
|
OMAP USB SUPPORT
|
||||||
M: Felipe Balbi <balbi@ti.com>
|
M: Felipe Balbi <balbi@ti.com>
|
||||||
M: David Brownell <dbrownell@users.sourceforge.net>
|
|
||||||
L: linux-usb@vger.kernel.org
|
L: linux-usb@vger.kernel.org
|
||||||
L: linux-omap@vger.kernel.org
|
L: linux-omap@vger.kernel.org
|
||||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git
|
T: git git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git
|
||||||
@ -4892,7 +4894,7 @@ F: mm/percpu*.c
|
|||||||
F: arch/*/include/asm/percpu.h
|
F: arch/*/include/asm/percpu.h
|
||||||
|
|
||||||
PER-TASK DELAY ACCOUNTING
|
PER-TASK DELAY ACCOUNTING
|
||||||
M: Balbir Singh <balbir@linux.vnet.ibm.com>
|
M: Balbir Singh <bsingharora@gmail.com>
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: include/linux/delayacct.h
|
F: include/linux/delayacct.h
|
||||||
F: kernel/delayacct.c
|
F: kernel/delayacct.c
|
||||||
@ -4947,6 +4949,7 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/epip/linux-2.6-unicore32.gi
|
|||||||
F: drivers/input/serio/i8042-unicore32io.h
|
F: drivers/input/serio/i8042-unicore32io.h
|
||||||
F: drivers/i2c/busses/i2c-puv3.c
|
F: drivers/i2c/busses/i2c-puv3.c
|
||||||
F: drivers/video/fb-puv3.c
|
F: drivers/video/fb-puv3.c
|
||||||
|
F: drivers/rtc/rtc-puv3.c
|
||||||
|
|
||||||
PMC SIERRA MaxRAID DRIVER
|
PMC SIERRA MaxRAID DRIVER
|
||||||
M: Anil Ravindranath <anil_ravindranath@pmc-sierra.com>
|
M: Anil Ravindranath <anil_ravindranath@pmc-sierra.com>
|
||||||
@ -5984,7 +5987,6 @@ F: Documentation/serial/specialix.txt
|
|||||||
F: drivers/staging/tty/specialix*
|
F: drivers/staging/tty/specialix*
|
||||||
|
|
||||||
SPI SUBSYSTEM
|
SPI SUBSYSTEM
|
||||||
M: David Brownell <dbrownell@users.sourceforge.net>
|
|
||||||
M: Grant Likely <grant.likely@secretlab.ca>
|
M: Grant Likely <grant.likely@secretlab.ca>
|
||||||
L: spi-devel-general@lists.sourceforge.net
|
L: spi-devel-general@lists.sourceforge.net
|
||||||
Q: http://patchwork.kernel.org/project/spi-devel-general/list/
|
Q: http://patchwork.kernel.org/project/spi-devel-general/list/
|
||||||
@ -6100,7 +6102,7 @@ F: include/target/
|
|||||||
F: Documentation/target/
|
F: Documentation/target/
|
||||||
|
|
||||||
TASKSTATS STATISTICS INTERFACE
|
TASKSTATS STATISTICS INTERFACE
|
||||||
M: Balbir Singh <balbir@linux.vnet.ibm.com>
|
M: Balbir Singh <bsingharora@gmail.com>
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: Documentation/accounting/taskstats*
|
F: Documentation/accounting/taskstats*
|
||||||
F: include/linux/taskstats*
|
F: include/linux/taskstats*
|
||||||
@ -6432,9 +6434,8 @@ S: Maintained
|
|||||||
F: drivers/usb/misc/rio500*
|
F: drivers/usb/misc/rio500*
|
||||||
|
|
||||||
USB EHCI DRIVER
|
USB EHCI DRIVER
|
||||||
M: David Brownell <dbrownell@users.sourceforge.net>
|
|
||||||
L: linux-usb@vger.kernel.org
|
L: linux-usb@vger.kernel.org
|
||||||
S: Odd Fixes
|
S: Orphan
|
||||||
F: Documentation/usb/ehci.txt
|
F: Documentation/usb/ehci.txt
|
||||||
F: drivers/usb/host/ehci*
|
F: drivers/usb/host/ehci*
|
||||||
|
|
||||||
@ -6448,9 +6449,10 @@ S: Maintained
|
|||||||
F: drivers/media/video/et61x251/
|
F: drivers/media/video/et61x251/
|
||||||
|
|
||||||
USB GADGET/PERIPHERAL SUBSYSTEM
|
USB GADGET/PERIPHERAL SUBSYSTEM
|
||||||
M: David Brownell <dbrownell@users.sourceforge.net>
|
M: Felipe Balbi <balbi@ti.com>
|
||||||
L: linux-usb@vger.kernel.org
|
L: linux-usb@vger.kernel.org
|
||||||
W: http://www.linux-usb.org/gadget
|
W: http://www.linux-usb.org/gadget
|
||||||
|
T: git git://git.kernel.org/pub/scm/linux/kernel/git/balbi/usb.git
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: drivers/usb/gadget/
|
F: drivers/usb/gadget/
|
||||||
F: include/linux/usb/gadget*
|
F: include/linux/usb/gadget*
|
||||||
@ -6460,7 +6462,7 @@ M: Jiri Kosina <jkosina@suse.cz>
|
|||||||
L: linux-usb@vger.kernel.org
|
L: linux-usb@vger.kernel.org
|
||||||
T: git git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git
|
T: git git://git.kernel.org/pub/scm/linux/kernel/git/jikos/hid.git
|
||||||
S: Maintained
|
S: Maintained
|
||||||
F: Documentation/usb/hiddev.txt
|
F: Documentation/hid/hiddev.txt
|
||||||
F: drivers/hid/usbhid/
|
F: drivers/hid/usbhid/
|
||||||
|
|
||||||
USB ISP116X DRIVER
|
USB ISP116X DRIVER
|
||||||
@ -6492,9 +6494,8 @@ S: Maintained
|
|||||||
F: sound/usb/midi.*
|
F: sound/usb/midi.*
|
||||||
|
|
||||||
USB OHCI DRIVER
|
USB OHCI DRIVER
|
||||||
M: David Brownell <dbrownell@users.sourceforge.net>
|
|
||||||
L: linux-usb@vger.kernel.org
|
L: linux-usb@vger.kernel.org
|
||||||
S: Odd Fixes
|
S: Orphan
|
||||||
F: Documentation/usb/ohci.txt
|
F: Documentation/usb/ohci.txt
|
||||||
F: drivers/usb/host/ohci*
|
F: drivers/usb/host/ohci*
|
||||||
|
|
||||||
@ -6720,6 +6721,14 @@ S: Maintained
|
|||||||
F: Documentation/filesystems/vfat.txt
|
F: Documentation/filesystems/vfat.txt
|
||||||
F: fs/fat/
|
F: fs/fat/
|
||||||
|
|
||||||
|
VIDEOBUF2 FRAMEWORK
|
||||||
|
M: Pawel Osciak <pawel@osciak.com>
|
||||||
|
M: Marek Szyprowski <m.szyprowski@samsung.com>
|
||||||
|
L: linux-media@vger.kernel.org
|
||||||
|
S: Maintained
|
||||||
|
F: drivers/media/video/videobuf2-*
|
||||||
|
F: include/media/videobuf2-*
|
||||||
|
|
||||||
VIRTIO CONSOLE DRIVER
|
VIRTIO CONSOLE DRIVER
|
||||||
M: Amit Shah <amit.shah@redhat.com>
|
M: Amit Shah <amit.shah@redhat.com>
|
||||||
L: virtualization@lists.linux-foundation.org
|
L: virtualization@lists.linux-foundation.org
|
||||||
@ -6997,6 +7006,13 @@ T: git git://git.kernel.org/pub/scm/linux/kernel/git/mjg59/platform-drivers-x86.
|
|||||||
S: Maintained
|
S: Maintained
|
||||||
F: drivers/platform/x86
|
F: drivers/platform/x86
|
||||||
|
|
||||||
|
X86 MCE INFRASTRUCTURE
|
||||||
|
M: Tony Luck <tony.luck@intel.com>
|
||||||
|
M: Borislav Petkov <bp@amd64.org>
|
||||||
|
L: linux-edac@vger.kernel.org
|
||||||
|
S: Maintained
|
||||||
|
F: arch/x86/kernel/cpu/mcheck/*
|
||||||
|
|
||||||
XEN HYPERVISOR INTERFACE
|
XEN HYPERVISOR INTERFACE
|
||||||
M: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
|
M: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
|
||||||
M: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
|
M: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
|
||||||
|
19
Makefile
19
Makefile
@ -1,7 +1,7 @@
|
|||||||
VERSION = 3
|
VERSION = 3
|
||||||
PATCHLEVEL = 0
|
PATCHLEVEL = 0
|
||||||
SUBLEVEL = 0
|
SUBLEVEL = 0
|
||||||
EXTRAVERSION = -rc1
|
EXTRAVERSION = -rc4
|
||||||
NAME = Sneaky Weasel
|
NAME = Sneaky Weasel
|
||||||
|
|
||||||
# *DOCUMENTATION*
|
# *DOCUMENTATION*
|
||||||
@ -378,7 +378,7 @@ KBUILD_LDFLAGS_MODULE := -T $(srctree)/scripts/module-common.lds
|
|||||||
|
|
||||||
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
|
# Read KERNELRELEASE from include/config/kernel.release (if it exists)
|
||||||
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
|
KERNELRELEASE = $(shell cat include/config/kernel.release 2> /dev/null)
|
||||||
KERNELVERSION = $(VERSION).$(PATCHLEVEL).$(SUBLEVEL)$(EXTRAVERSION)
|
KERNELVERSION = $(VERSION)$(if $(PATCHLEVEL),.$(PATCHLEVEL)$(if $(SUBLEVEL),.$(SUBLEVEL)))$(EXTRAVERSION)
|
||||||
|
|
||||||
export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION
|
export VERSION PATCHLEVEL SUBLEVEL KERNELRELEASE KERNELVERSION
|
||||||
export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC
|
export ARCH SRCARCH CONFIG_SHELL HOSTCC HOSTCFLAGS CROSS_COMPILE AS LD CC
|
||||||
@ -1005,7 +1005,7 @@ endef
|
|||||||
|
|
||||||
define filechk_version.h
|
define filechk_version.h
|
||||||
(echo \#define LINUX_VERSION_CODE $(shell \
|
(echo \#define LINUX_VERSION_CODE $(shell \
|
||||||
expr $(VERSION) \* 65536 + $(PATCHLEVEL) \* 256 + $(SUBLEVEL)); \
|
expr $(VERSION) \* 65536 + 0$(PATCHLEVEL) \* 256 + 0$(SUBLEVEL)); \
|
||||||
echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';)
|
echo '#define KERNEL_VERSION(a,b,c) (((a) << 16) + ((b) << 8) + (c))';)
|
||||||
endef
|
endef
|
||||||
|
|
||||||
@ -1110,11 +1110,6 @@ modules_install: _modinst_ _modinst_post
|
|||||||
|
|
||||||
PHONY += _modinst_
|
PHONY += _modinst_
|
||||||
_modinst_:
|
_modinst_:
|
||||||
@if [ -z "`$(DEPMOD) -V 2>/dev/null | grep module-init-tools`" ]; then \
|
|
||||||
echo "Warning: you may need to install module-init-tools"; \
|
|
||||||
echo "See http://www.codemonkey.org.uk/docs/post-halloween-2.6.txt";\
|
|
||||||
sleep 1; \
|
|
||||||
fi
|
|
||||||
@rm -rf $(MODLIB)/kernel
|
@rm -rf $(MODLIB)/kernel
|
||||||
@rm -f $(MODLIB)/source
|
@rm -f $(MODLIB)/source
|
||||||
@mkdir -p $(MODLIB)/kernel
|
@mkdir -p $(MODLIB)/kernel
|
||||||
@ -1531,12 +1526,8 @@ quiet_cmd_rmfiles = $(if $(wildcard $(rm-files)),CLEAN $(wildcard $(rm-files))
|
|||||||
|
|
||||||
# Run depmod only if we have System.map and depmod is executable
|
# Run depmod only if we have System.map and depmod is executable
|
||||||
quiet_cmd_depmod = DEPMOD $(KERNELRELEASE)
|
quiet_cmd_depmod = DEPMOD $(KERNELRELEASE)
|
||||||
cmd_depmod = \
|
cmd_depmod = $(CONFIG_SHELL) $(srctree)/scripts/depmod.sh $(DEPMOD) \
|
||||||
if [ -r System.map -a -x $(DEPMOD) ]; then \
|
$(KERNELRELEASE)
|
||||||
$(DEPMOD) -ae -F System.map \
|
|
||||||
$(if $(strip $(INSTALL_MOD_PATH)), -b $(INSTALL_MOD_PATH) ) \
|
|
||||||
$(KERNELRELEASE); \
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Create temporary dir for module support files
|
# Create temporary dir for module support files
|
||||||
# clean it up only when building all modules
|
# clean it up only when building all modules
|
||||||
|
@ -409,7 +409,7 @@ SYSCALL_DEFINE2(osf_getdomainname, char __user *, name, int, namelen)
|
|||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
len = namelen;
|
len = namelen;
|
||||||
if (namelen > 32)
|
if (len > 32)
|
||||||
len = 32;
|
len = 32;
|
||||||
|
|
||||||
down_read(&uts_sem);
|
down_read(&uts_sem);
|
||||||
@ -594,7 +594,7 @@ SYSCALL_DEFINE3(osf_sysinfo, int, command, char __user *, buf, long, count)
|
|||||||
down_read(&uts_sem);
|
down_read(&uts_sem);
|
||||||
res = sysinfo_table[offset];
|
res = sysinfo_table[offset];
|
||||||
len = strlen(res)+1;
|
len = strlen(res)+1;
|
||||||
if (len > count)
|
if ((unsigned long)len > (unsigned long)count)
|
||||||
len = count;
|
len = count;
|
||||||
if (copy_to_user(buf, res, len))
|
if (copy_to_user(buf, res, len))
|
||||||
err = -EFAULT;
|
err = -EFAULT;
|
||||||
@ -649,7 +649,7 @@ SYSCALL_DEFINE5(osf_getsysinfo, unsigned long, op, void __user *, buffer,
|
|||||||
return 1;
|
return 1;
|
||||||
|
|
||||||
case GSI_GET_HWRPB:
|
case GSI_GET_HWRPB:
|
||||||
if (nbytes < sizeof(*hwrpb))
|
if (nbytes > sizeof(*hwrpb))
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
if (copy_to_user(buffer, hwrpb, nbytes) != 0)
|
if (copy_to_user(buffer, hwrpb, nbytes) != 0)
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
@ -1008,6 +1008,7 @@ SYSCALL_DEFINE4(osf_wait4, pid_t, pid, int __user *, ustatus, int, options,
|
|||||||
{
|
{
|
||||||
struct rusage r;
|
struct rusage r;
|
||||||
long ret, err;
|
long ret, err;
|
||||||
|
unsigned int status = 0;
|
||||||
mm_segment_t old_fs;
|
mm_segment_t old_fs;
|
||||||
|
|
||||||
if (!ur)
|
if (!ur)
|
||||||
@ -1016,13 +1017,15 @@ SYSCALL_DEFINE4(osf_wait4, pid_t, pid, int __user *, ustatus, int, options,
|
|||||||
old_fs = get_fs();
|
old_fs = get_fs();
|
||||||
|
|
||||||
set_fs (KERNEL_DS);
|
set_fs (KERNEL_DS);
|
||||||
ret = sys_wait4(pid, ustatus, options, (struct rusage __user *) &r);
|
ret = sys_wait4(pid, (unsigned int __user *) &status, options,
|
||||||
|
(struct rusage __user *) &r);
|
||||||
set_fs (old_fs);
|
set_fs (old_fs);
|
||||||
|
|
||||||
if (!access_ok(VERIFY_WRITE, ur, sizeof(*ur)))
|
if (!access_ok(VERIFY_WRITE, ur, sizeof(*ur)))
|
||||||
return -EFAULT;
|
return -EFAULT;
|
||||||
|
|
||||||
err = 0;
|
err = 0;
|
||||||
|
err |= put_user(status, ustatus);
|
||||||
err |= __put_user(r.ru_utime.tv_sec, &ur->ru_utime.tv_sec);
|
err |= __put_user(r.ru_utime.tv_sec, &ur->ru_utime.tv_sec);
|
||||||
err |= __put_user(r.ru_utime.tv_usec, &ur->ru_utime.tv_usec);
|
err |= __put_user(r.ru_utime.tv_usec, &ur->ru_utime.tv_usec);
|
||||||
err |= __put_user(r.ru_stime.tv_sec, &ur->ru_stime.tv_sec);
|
err |= __put_user(r.ru_stime.tv_sec, &ur->ru_stime.tv_sec);
|
||||||
|
@ -691,9 +691,9 @@ proc_types:
|
|||||||
|
|
||||||
.word 0x41069260 @ ARM926EJ-S (v5TEJ)
|
.word 0x41069260 @ ARM926EJ-S (v5TEJ)
|
||||||
.word 0xff0ffff0
|
.word 0xff0ffff0
|
||||||
b __arm926ejs_mmu_cache_on
|
W(b) __arm926ejs_mmu_cache_on
|
||||||
b __armv4_mmu_cache_off
|
W(b) __armv4_mmu_cache_off
|
||||||
b __armv5tej_mmu_cache_flush
|
W(b) __armv5tej_mmu_cache_flush
|
||||||
|
|
||||||
.word 0x00007000 @ ARM7 IDs
|
.word 0x00007000 @ ARM7 IDs
|
||||||
.word 0x0000f000
|
.word 0x0000f000
|
||||||
|
@ -157,7 +157,7 @@ CONFIG_LEDS_GPIO=m
|
|||||||
CONFIG_LEDS_TRIGGERS=y
|
CONFIG_LEDS_TRIGGERS=y
|
||||||
CONFIG_LEDS_TRIGGER_TIMER=m
|
CONFIG_LEDS_TRIGGER_TIMER=m
|
||||||
CONFIG_LEDS_TRIGGER_HEARTBEAT=m
|
CONFIG_LEDS_TRIGGER_HEARTBEAT=m
|
||||||
CONFIG_RTC_CLASS=m
|
CONFIG_RTC_CLASS=y
|
||||||
CONFIG_EXT2_FS=y
|
CONFIG_EXT2_FS=y
|
||||||
CONFIG_EXT3_FS=y
|
CONFIG_EXT3_FS=y
|
||||||
CONFIG_XFS_FS=m
|
CONFIG_XFS_FS=m
|
||||||
|
@ -60,7 +60,7 @@ CONFIG_FB_ARMCLCD=y
|
|||||||
# CONFIG_VGA_CONSOLE is not set
|
# CONFIG_VGA_CONSOLE is not set
|
||||||
CONFIG_FRAMEBUFFER_CONSOLE=y
|
CONFIG_FRAMEBUFFER_CONSOLE=y
|
||||||
CONFIG_LOGO=y
|
CONFIG_LOGO=y
|
||||||
CONFIG_RTC_CLASS=m
|
CONFIG_RTC_CLASS=y
|
||||||
CONFIG_INOTIFY=y
|
CONFIG_INOTIFY=y
|
||||||
CONFIG_TMPFS=y
|
CONFIG_TMPFS=y
|
||||||
CONFIG_JFFS2_FS=y
|
CONFIG_JFFS2_FS=y
|
||||||
|
@ -142,7 +142,7 @@ CONFIG_USB_GADGETFS=m
|
|||||||
CONFIG_USB_FILE_STORAGE=m
|
CONFIG_USB_FILE_STORAGE=m
|
||||||
CONFIG_USB_G_SERIAL=m
|
CONFIG_USB_G_SERIAL=m
|
||||||
CONFIG_USB_G_PRINTER=m
|
CONFIG_USB_G_PRINTER=m
|
||||||
CONFIG_RTC_CLASS=m
|
CONFIG_RTC_CLASS=y
|
||||||
CONFIG_RTC_DRV_DS1307=m
|
CONFIG_RTC_DRV_DS1307=m
|
||||||
CONFIG_RTC_DRV_SA1100=m
|
CONFIG_RTC_DRV_SA1100=m
|
||||||
CONFIG_EXT2_FS=m
|
CONFIG_EXT2_FS=m
|
||||||
|
@ -73,7 +73,7 @@ CONFIG_SENSORS_MAX6650=m
|
|||||||
# CONFIG_VGA_CONSOLE is not set
|
# CONFIG_VGA_CONSOLE is not set
|
||||||
# CONFIG_HID_SUPPORT is not set
|
# CONFIG_HID_SUPPORT is not set
|
||||||
# CONFIG_USB_SUPPORT is not set
|
# CONFIG_USB_SUPPORT is not set
|
||||||
CONFIG_RTC_CLASS=m
|
CONFIG_RTC_CLASS=y
|
||||||
CONFIG_RTC_DRV_SA1100=m
|
CONFIG_RTC_DRV_SA1100=m
|
||||||
CONFIG_DMADEVICES=y
|
CONFIG_DMADEVICES=y
|
||||||
# CONFIG_DNOTIFY is not set
|
# CONFIG_DNOTIFY is not set
|
||||||
|
@ -158,7 +158,7 @@ CONFIG_LEDS_TRIGGER_HEARTBEAT=m
|
|||||||
CONFIG_LEDS_TRIGGER_BACKLIGHT=m
|
CONFIG_LEDS_TRIGGER_BACKLIGHT=m
|
||||||
CONFIG_LEDS_TRIGGER_GPIO=m
|
CONFIG_LEDS_TRIGGER_GPIO=m
|
||||||
CONFIG_LEDS_TRIGGER_DEFAULT_ON=m
|
CONFIG_LEDS_TRIGGER_DEFAULT_ON=m
|
||||||
CONFIG_RTC_CLASS=m
|
CONFIG_RTC_CLASS=y
|
||||||
CONFIG_RTC_DRV_ISL1208=m
|
CONFIG_RTC_DRV_ISL1208=m
|
||||||
CONFIG_RTC_DRV_PXA=m
|
CONFIG_RTC_DRV_PXA=m
|
||||||
CONFIG_EXT2_FS=y
|
CONFIG_EXT2_FS=y
|
||||||
|
@ -76,6 +76,9 @@ struct machine_desc * __init setup_machine_fdt(unsigned int dt_phys)
|
|||||||
unsigned long dt_root;
|
unsigned long dt_root;
|
||||||
const char *model;
|
const char *model;
|
||||||
|
|
||||||
|
if (!dt_phys)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
devtree = phys_to_virt(dt_phys);
|
devtree = phys_to_virt(dt_phys);
|
||||||
|
|
||||||
/* check device tree validity */
|
/* check device tree validity */
|
||||||
|
@ -435,6 +435,10 @@ __irq_usr:
|
|||||||
usr_entry
|
usr_entry
|
||||||
kuser_cmpxchg_check
|
kuser_cmpxchg_check
|
||||||
|
|
||||||
|
#ifdef CONFIG_IRQSOFF_TRACER
|
||||||
|
bl trace_hardirqs_off
|
||||||
|
#endif
|
||||||
|
|
||||||
get_thread_info tsk
|
get_thread_info tsk
|
||||||
#ifdef CONFIG_PREEMPT
|
#ifdef CONFIG_PREEMPT
|
||||||
ldr r8, [tsk, #TI_PREEMPT] @ get preempt count
|
ldr r8, [tsk, #TI_PREEMPT] @ get preempt count
|
||||||
@ -453,7 +457,7 @@ __irq_usr:
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
mov why, #0
|
mov why, #0
|
||||||
b ret_to_user
|
b ret_to_user_from_irq
|
||||||
UNWIND(.fnend )
|
UNWIND(.fnend )
|
||||||
ENDPROC(__irq_usr)
|
ENDPROC(__irq_usr)
|
||||||
|
|
||||||
|
@ -64,6 +64,7 @@ work_resched:
|
|||||||
ENTRY(ret_to_user)
|
ENTRY(ret_to_user)
|
||||||
ret_slow_syscall:
|
ret_slow_syscall:
|
||||||
disable_irq @ disable interrupts
|
disable_irq @ disable interrupts
|
||||||
|
ENTRY(ret_to_user_from_irq)
|
||||||
ldr r1, [tsk, #TI_FLAGS]
|
ldr r1, [tsk, #TI_FLAGS]
|
||||||
tst r1, #_TIF_WORK_MASK
|
tst r1, #_TIF_WORK_MASK
|
||||||
bne work_pending
|
bne work_pending
|
||||||
@ -75,6 +76,7 @@ no_work_pending:
|
|||||||
arch_ret_to_user r1, lr
|
arch_ret_to_user r1, lr
|
||||||
|
|
||||||
restore_user_regs fast = 0, offset = 0
|
restore_user_regs fast = 0, offset = 0
|
||||||
|
ENDPROC(ret_to_user_from_irq)
|
||||||
ENDPROC(ret_to_user)
|
ENDPROC(ret_to_user)
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@ -139,7 +139,7 @@ static void dump_instr(const char *lvl, struct pt_regs *regs)
|
|||||||
fs = get_fs();
|
fs = get_fs();
|
||||||
set_fs(KERNEL_DS);
|
set_fs(KERNEL_DS);
|
||||||
|
|
||||||
for (i = -4; i < 1; i++) {
|
for (i = -4; i < 1 + !!thumb; i++) {
|
||||||
unsigned int val, bad;
|
unsigned int val, bad;
|
||||||
|
|
||||||
if (thumb)
|
if (thumb)
|
||||||
@ -563,7 +563,7 @@ asmlinkage int arm_syscall(int no, struct pt_regs *regs)
|
|||||||
if (!pmd_present(*pmd))
|
if (!pmd_present(*pmd))
|
||||||
goto bad_access;
|
goto bad_access;
|
||||||
pte = pte_offset_map_lock(mm, pmd, addr, &ptl);
|
pte = pte_offset_map_lock(mm, pmd, addr, &ptl);
|
||||||
if (!pte_present(*pte) || !pte_dirty(*pte)) {
|
if (!pte_present(*pte) || !pte_write(*pte) || !pte_dirty(*pte)) {
|
||||||
pte_unmap_unlock(pte, ptl);
|
pte_unmap_unlock(pte, ptl);
|
||||||
goto bad_access;
|
goto bad_access;
|
||||||
}
|
}
|
||||||
|
@ -494,7 +494,7 @@ static struct platform_device da850_mcasp_device = {
|
|||||||
.resource = da850_mcasp_resources,
|
.resource = da850_mcasp_resources,
|
||||||
};
|
};
|
||||||
|
|
||||||
struct platform_device davinci_pcm_device = {
|
static struct platform_device davinci_pcm_device = {
|
||||||
.name = "davinci-pcm-audio",
|
.name = "davinci-pcm-audio",
|
||||||
.id = -1,
|
.id = -1,
|
||||||
};
|
};
|
||||||
|
@ -298,7 +298,7 @@ static void davinci_init_wdt(void)
|
|||||||
|
|
||||||
/*-------------------------------------------------------------------------*/
|
/*-------------------------------------------------------------------------*/
|
||||||
|
|
||||||
struct platform_device davinci_pcm_device = {
|
static struct platform_device davinci_pcm_device = {
|
||||||
.name = "davinci-pcm-audio",
|
.name = "davinci-pcm-audio",
|
||||||
.id = -1,
|
.id = -1,
|
||||||
};
|
};
|
||||||
|
@ -252,9 +252,11 @@ static struct irq_chip gpio_irqchip = {
|
|||||||
static void
|
static void
|
||||||
gpio_irq_handler(unsigned irq, struct irq_desc *desc)
|
gpio_irq_handler(unsigned irq, struct irq_desc *desc)
|
||||||
{
|
{
|
||||||
struct davinci_gpio_regs __iomem *g = irq2regs(irq);
|
struct davinci_gpio_regs __iomem *g;
|
||||||
u32 mask = 0xffff;
|
u32 mask = 0xffff;
|
||||||
|
|
||||||
|
g = (__force struct davinci_gpio_regs __iomem *) irq_desc_get_handler_data(desc);
|
||||||
|
|
||||||
/* we only care about one bank */
|
/* we only care about one bank */
|
||||||
if (irq & 1)
|
if (irq & 1)
|
||||||
mask <<= 16;
|
mask <<= 16;
|
||||||
@ -422,8 +424,7 @@ static int __init davinci_gpio_irq_setup(void)
|
|||||||
|
|
||||||
/* set up all irqs in this bank */
|
/* set up all irqs in this bank */
|
||||||
irq_set_chained_handler(bank_irq, gpio_irq_handler);
|
irq_set_chained_handler(bank_irq, gpio_irq_handler);
|
||||||
irq_set_chip_data(bank_irq, (__force void *)g);
|
irq_set_handler_data(bank_irq, (__force void *)g);
|
||||||
irq_set_handler_data(bank_irq, (void *)irq);
|
|
||||||
|
|
||||||
for (i = 0; i < 16 && gpio < ngpio; i++, irq++, gpio++) {
|
for (i = 0; i < 16 && gpio < ngpio; i++, irq++, gpio++) {
|
||||||
irq_set_chip(irq, &gpio_irqchip);
|
irq_set_chip(irq, &gpio_irqchip);
|
||||||
|
@ -402,11 +402,15 @@ static struct resource ep93xx_eth_resource[] = {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static u64 ep93xx_eth_dma_mask = DMA_BIT_MASK(32);
|
||||||
|
|
||||||
static struct platform_device ep93xx_eth_device = {
|
static struct platform_device ep93xx_eth_device = {
|
||||||
.name = "ep93xx-eth",
|
.name = "ep93xx-eth",
|
||||||
.id = -1,
|
.id = -1,
|
||||||
.dev = {
|
.dev = {
|
||||||
.platform_data = &ep93xx_eth_data,
|
.platform_data = &ep93xx_eth_data,
|
||||||
|
.coherent_dma_mask = DMA_BIT_MASK(32),
|
||||||
|
.dma_mask = &ep93xx_eth_dma_mask,
|
||||||
},
|
},
|
||||||
.num_resources = ARRAY_SIZE(ep93xx_eth_resource),
|
.num_resources = ARRAY_SIZE(ep93xx_eth_resource),
|
||||||
.resource = ep93xx_eth_resource,
|
.resource = ep93xx_eth_resource,
|
||||||
|
@ -91,6 +91,11 @@ config EXYNOS4_SETUP_FIMC
|
|||||||
help
|
help
|
||||||
Common setup code for the camera interfaces.
|
Common setup code for the camera interfaces.
|
||||||
|
|
||||||
|
config EXYNOS4_SETUP_USB_PHY
|
||||||
|
bool
|
||||||
|
help
|
||||||
|
Common setup code for USB PHY controller
|
||||||
|
|
||||||
# machine support
|
# machine support
|
||||||
|
|
||||||
menu "EXYNOS4 Machines"
|
menu "EXYNOS4 Machines"
|
||||||
@ -176,6 +181,7 @@ config MACH_NURI
|
|||||||
select EXYNOS4_SETUP_I2C3
|
select EXYNOS4_SETUP_I2C3
|
||||||
select EXYNOS4_SETUP_I2C5
|
select EXYNOS4_SETUP_I2C5
|
||||||
select EXYNOS4_SETUP_SDHCI
|
select EXYNOS4_SETUP_SDHCI
|
||||||
|
select EXYNOS4_SETUP_USB_PHY
|
||||||
select SAMSUNG_DEV_PWM
|
select SAMSUNG_DEV_PWM
|
||||||
help
|
help
|
||||||
Machine support for Samsung Mobile NURI Board.
|
Machine support for Samsung Mobile NURI Board.
|
||||||
|
@ -56,4 +56,4 @@ obj-$(CONFIG_EXYNOS4_SETUP_KEYPAD) += setup-keypad.o
|
|||||||
obj-$(CONFIG_EXYNOS4_SETUP_SDHCI) += setup-sdhci.o
|
obj-$(CONFIG_EXYNOS4_SETUP_SDHCI) += setup-sdhci.o
|
||||||
obj-$(CONFIG_EXYNOS4_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o
|
obj-$(CONFIG_EXYNOS4_SETUP_SDHCI_GPIO) += setup-sdhci-gpio.o
|
||||||
|
|
||||||
obj-$(CONFIG_USB_SUPPORT) += usb-phy.o
|
obj-$(CONFIG_EXYNOS4_SETUP_USB_PHY) += setup-usb-phy.o
|
||||||
|
@ -98,7 +98,7 @@ static struct map_desc exynos4_iodesc[] __initdata = {
|
|||||||
.length = SZ_4K,
|
.length = SZ_4K,
|
||||||
.type = MT_DEVICE,
|
.type = MT_DEVICE,
|
||||||
}, {
|
}, {
|
||||||
.virtual = (unsigned long)S5P_VA_USB_HSPHY,
|
.virtual = (unsigned long)S3C_VA_USB_HSPHY,
|
||||||
.pfn = __phys_to_pfn(EXYNOS4_PA_HSPHY),
|
.pfn = __phys_to_pfn(EXYNOS4_PA_HSPHY),
|
||||||
.length = SZ_4K,
|
.length = SZ_4K,
|
||||||
.type = MT_DEVICE,
|
.type = MT_DEVICE,
|
||||||
|
@ -11,7 +11,7 @@
|
|||||||
#ifndef __PLAT_S5P_REGS_USB_PHY_H
|
#ifndef __PLAT_S5P_REGS_USB_PHY_H
|
||||||
#define __PLAT_S5P_REGS_USB_PHY_H
|
#define __PLAT_S5P_REGS_USB_PHY_H
|
||||||
|
|
||||||
#define EXYNOS4_HSOTG_PHYREG(x) ((x) + S5P_VA_USB_HSPHY)
|
#define EXYNOS4_HSOTG_PHYREG(x) ((x) + S3C_VA_USB_HSPHY)
|
||||||
|
|
||||||
#define EXYNOS4_PHYPWR EXYNOS4_HSOTG_PHYREG(0x00)
|
#define EXYNOS4_PHYPWR EXYNOS4_HSOTG_PHYREG(0x00)
|
||||||
#define PHY1_HSIC_NORMAL_MASK (0xf << 9)
|
#define PHY1_HSIC_NORMAL_MASK (0xf << 9)
|
||||||
|
@ -206,6 +206,7 @@ static cycle_t exynos4_pwm4_read(struct clocksource *cs)
|
|||||||
return (cycle_t) ~__raw_readl(S3C_TIMERREG(0x40));
|
return (cycle_t) ~__raw_readl(S3C_TIMERREG(0x40));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM
|
||||||
static void exynos4_pwm4_resume(struct clocksource *cs)
|
static void exynos4_pwm4_resume(struct clocksource *cs)
|
||||||
{
|
{
|
||||||
unsigned long pclk;
|
unsigned long pclk;
|
||||||
@ -218,6 +219,7 @@ static void exynos4_pwm4_resume(struct clocksource *cs)
|
|||||||
exynos4_pwm_init(4, ~0);
|
exynos4_pwm_init(4, ~0);
|
||||||
exynos4_pwm_start(4, 1);
|
exynos4_pwm_start(4, 1);
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
struct clocksource pwm_clocksource = {
|
struct clocksource pwm_clocksource = {
|
||||||
.name = "pwm_timer4",
|
.name = "pwm_timer4",
|
||||||
|
@ -103,6 +103,7 @@ static void __init footbridge_timer_init(void)
|
|||||||
clockevents_calc_mult_shift(ce, mem_fclk_21285, 5);
|
clockevents_calc_mult_shift(ce, mem_fclk_21285, 5);
|
||||||
ce->max_delta_ns = clockevent_delta2ns(0xffffff, ce);
|
ce->max_delta_ns = clockevent_delta2ns(0xffffff, ce);
|
||||||
ce->min_delta_ns = clockevent_delta2ns(0x000004, ce);
|
ce->min_delta_ns = clockevent_delta2ns(0x000004, ce);
|
||||||
|
ce->cpumask = cpumask_of(smp_processor_id());
|
||||||
|
|
||||||
clockevents_register_device(ce);
|
clockevents_register_device(ce);
|
||||||
}
|
}
|
||||||
|
@ -26,6 +26,7 @@
|
|||||||
#include <asm/hardware/debug-8250.S>
|
#include <asm/hardware/debug-8250.S>
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
#include <mach/hardware.h>
|
||||||
/* For EBSA285 debugging */
|
/* For EBSA285 debugging */
|
||||||
.equ dc21285_high, ARMCSR_BASE & 0xff000000
|
.equ dc21285_high, ARMCSR_BASE & 0xff000000
|
||||||
.equ dc21285_low, ARMCSR_BASE & 0x00ffffff
|
.equ dc21285_low, ARMCSR_BASE & 0x00ffffff
|
||||||
@ -36,8 +37,8 @@
|
|||||||
.else
|
.else
|
||||||
mov \rp, #0
|
mov \rp, #0
|
||||||
.endif
|
.endif
|
||||||
orr \rv, \rp, #0x42000000
|
orr \rv, \rp, #dc21285_high
|
||||||
orr \rp, \rp, #dc21285_high
|
orr \rp, \rp, #0x42000000
|
||||||
.endm
|
.endm
|
||||||
|
|
||||||
.macro senduart,rd,rx
|
.macro senduart,rd,rx
|
||||||
|
@ -23,6 +23,8 @@
|
|||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
|
||||||
#include <asm/mach/time.h>
|
#include <asm/mach/time.h>
|
||||||
|
#include <asm/hardware/gic.h>
|
||||||
|
|
||||||
#include <mach/msm_iomap.h>
|
#include <mach/msm_iomap.h>
|
||||||
#include <mach/cpu.h>
|
#include <mach/cpu.h>
|
||||||
|
|
||||||
@ -55,10 +57,12 @@ enum timer_location {
|
|||||||
#if defined(CONFIG_ARCH_QSD8X50)
|
#if defined(CONFIG_ARCH_QSD8X50)
|
||||||
#define DGT_HZ (19200000 / 4) /* 19.2 MHz / 4 by default */
|
#define DGT_HZ (19200000 / 4) /* 19.2 MHz / 4 by default */
|
||||||
#define MSM_DGT_SHIFT (0)
|
#define MSM_DGT_SHIFT (0)
|
||||||
#elif defined(CONFIG_ARCH_MSM7X30) || defined(CONFIG_ARCH_MSM8X60) || \
|
#elif defined(CONFIG_ARCH_MSM7X30)
|
||||||
defined(CONFIG_ARCH_MSM8960)
|
|
||||||
#define DGT_HZ (24576000 / 4) /* 24.576 MHz (LPXO) / 4 by default */
|
#define DGT_HZ (24576000 / 4) /* 24.576 MHz (LPXO) / 4 by default */
|
||||||
#define MSM_DGT_SHIFT (0)
|
#define MSM_DGT_SHIFT (0)
|
||||||
|
#elif defined(CONFIG_ARCH_MSM8X60) || defined(CONFIG_ARCH_MSM8960)
|
||||||
|
#define DGT_HZ (27000000 / 4) /* 27 MHz (PXO) / 4 by default */
|
||||||
|
#define MSM_DGT_SHIFT (0)
|
||||||
#else
|
#else
|
||||||
#define DGT_HZ 19200000 /* 19.2 MHz or 600 KHz after shift */
|
#define DGT_HZ 19200000 /* 19.2 MHz or 600 KHz after shift */
|
||||||
#define MSM_DGT_SHIFT (5)
|
#define MSM_DGT_SHIFT (5)
|
||||||
@ -100,7 +104,11 @@ static cycle_t msm_read_timer_count(struct clocksource *cs)
|
|||||||
{
|
{
|
||||||
struct msm_clock *clk = container_of(cs, struct msm_clock, clocksource);
|
struct msm_clock *clk = container_of(cs, struct msm_clock, clocksource);
|
||||||
|
|
||||||
return readl(clk->global_counter);
|
/*
|
||||||
|
* Shift timer count down by a constant due to unreliable lower bits
|
||||||
|
* on some targets.
|
||||||
|
*/
|
||||||
|
return readl(clk->global_counter) >> clk->shift;
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct msm_clock *clockevent_to_clock(struct clock_event_device *evt)
|
static struct msm_clock *clockevent_to_clock(struct clock_event_device *evt)
|
||||||
|
@ -16,6 +16,8 @@
|
|||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
#include <linux/mutex.h>
|
#include <linux/mutex.h>
|
||||||
|
|
||||||
|
#include <asm/processor.h> /* for cpu_relax() */
|
||||||
|
|
||||||
#include <mach/mxs.h>
|
#include <mach/mxs.h>
|
||||||
|
|
||||||
#define OCOTP_WORD_OFFSET 0x20
|
#define OCOTP_WORD_OFFSET 0x20
|
||||||
|
@ -4,14 +4,14 @@
|
|||||||
|
|
||||||
# Common support
|
# Common support
|
||||||
obj-y := io.o id.o sram.o time.o irq.o mux.o flash.o serial.o devices.o dma.o
|
obj-y := io.o id.o sram.o time.o irq.o mux.o flash.o serial.o devices.o dma.o
|
||||||
obj-y += clock.o clock_data.o opp_data.o reset.o
|
obj-y += clock.o clock_data.o opp_data.o reset.o pm_bus.o
|
||||||
|
|
||||||
obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
|
obj-$(CONFIG_OMAP_MCBSP) += mcbsp.o
|
||||||
|
|
||||||
obj-$(CONFIG_OMAP_32K_TIMER) += timer32k.o
|
obj-$(CONFIG_OMAP_32K_TIMER) += timer32k.o
|
||||||
|
|
||||||
# Power Management
|
# Power Management
|
||||||
obj-$(CONFIG_PM) += pm.o sleep.o pm_bus.o
|
obj-$(CONFIG_PM) += pm.o sleep.o
|
||||||
|
|
||||||
# DSP
|
# DSP
|
||||||
obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox_mach.o
|
obj-$(CONFIG_OMAP_MBOX_FWK) += mailbox_mach.o
|
||||||
|
@ -284,14 +284,15 @@ static int __init omap1_system_dma_init(void)
|
|||||||
dma_base = ioremap(res[0].start, resource_size(&res[0]));
|
dma_base = ioremap(res[0].start, resource_size(&res[0]));
|
||||||
if (!dma_base) {
|
if (!dma_base) {
|
||||||
pr_err("%s: Unable to ioremap\n", __func__);
|
pr_err("%s: Unable to ioremap\n", __func__);
|
||||||
return -ENODEV;
|
ret = -ENODEV;
|
||||||
|
goto exit_device_put;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res));
|
ret = platform_device_add_resources(pdev, res, ARRAY_SIZE(res));
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(&pdev->dev, "%s: Unable to add resources for %s%d\n",
|
dev_err(&pdev->dev, "%s: Unable to add resources for %s%d\n",
|
||||||
__func__, pdev->name, pdev->id);
|
__func__, pdev->name, pdev->id);
|
||||||
goto exit_device_del;
|
goto exit_device_put;
|
||||||
}
|
}
|
||||||
|
|
||||||
p = kzalloc(sizeof(struct omap_system_dma_plat_info), GFP_KERNEL);
|
p = kzalloc(sizeof(struct omap_system_dma_plat_info), GFP_KERNEL);
|
||||||
@ -299,7 +300,7 @@ static int __init omap1_system_dma_init(void)
|
|||||||
dev_err(&pdev->dev, "%s: Unable to allocate 'p' for %s\n",
|
dev_err(&pdev->dev, "%s: Unable to allocate 'p' for %s\n",
|
||||||
__func__, pdev->name);
|
__func__, pdev->name);
|
||||||
ret = -ENOMEM;
|
ret = -ENOMEM;
|
||||||
goto exit_device_put;
|
goto exit_device_del;
|
||||||
}
|
}
|
||||||
|
|
||||||
d = kzalloc(sizeof(struct omap_dma_dev_attr), GFP_KERNEL);
|
d = kzalloc(sizeof(struct omap_dma_dev_attr), GFP_KERNEL);
|
||||||
@ -380,10 +381,10 @@ static int __init omap1_system_dma_init(void)
|
|||||||
kfree(d);
|
kfree(d);
|
||||||
exit_release_p:
|
exit_release_p:
|
||||||
kfree(p);
|
kfree(p);
|
||||||
exit_device_put:
|
|
||||||
platform_device_put(pdev);
|
|
||||||
exit_device_del:
|
exit_device_del:
|
||||||
platform_device_del(pdev);
|
platform_device_del(pdev);
|
||||||
|
exit_device_put:
|
||||||
|
platform_device_put(pdev);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -56,9 +56,13 @@ static struct dev_power_domain default_power_domain = {
|
|||||||
USE_PLATFORM_PM_SLEEP_OPS
|
USE_PLATFORM_PM_SLEEP_OPS
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
#define OMAP1_PWR_DOMAIN (&default_power_domain)
|
||||||
|
#else
|
||||||
|
#define OMAP1_PWR_DOMAIN NULL
|
||||||
|
#endif /* CONFIG_PM_RUNTIME */
|
||||||
|
|
||||||
static struct pm_clk_notifier_block platform_bus_notifier = {
|
static struct pm_clk_notifier_block platform_bus_notifier = {
|
||||||
.pwr_domain = &default_power_domain,
|
.pwr_domain = OMAP1_PWR_DOMAIN,
|
||||||
.con_ids = { "ick", "fck", NULL, },
|
.con_ids = { "ick", "fck", NULL, },
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -72,4 +76,4 @@ static int __init omap1_pm_runtime_init(void)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
core_initcall(omap1_pm_runtime_init);
|
core_initcall(omap1_pm_runtime_init);
|
||||||
#endif /* CONFIG_PM_RUNTIME */
|
|
||||||
|
@ -26,13 +26,13 @@
|
|||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
#include <linux/gpio.h>
|
||||||
|
|
||||||
#include <mach/hardware.h>
|
#include <mach/hardware.h>
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
|
|
||||||
#include <mach/gpio.h>
|
|
||||||
#include <plat/board.h>
|
#include <plat/board.h>
|
||||||
#include <plat/common.h>
|
#include <plat/common.h>
|
||||||
#include <plat/gpmc.h>
|
#include <plat/gpmc.h>
|
||||||
|
@ -622,19 +622,19 @@ static struct omap_device_pad serial3_pads[] __initdata = {
|
|||||||
OMAP_MUX_MODE0),
|
OMAP_MUX_MODE0),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct omap_board_data serial1_data = {
|
static struct omap_board_data serial1_data __initdata = {
|
||||||
.id = 0,
|
.id = 0,
|
||||||
.pads = serial1_pads,
|
.pads = serial1_pads,
|
||||||
.pads_cnt = ARRAY_SIZE(serial1_pads),
|
.pads_cnt = ARRAY_SIZE(serial1_pads),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct omap_board_data serial2_data = {
|
static struct omap_board_data serial2_data __initdata = {
|
||||||
.id = 1,
|
.id = 1,
|
||||||
.pads = serial2_pads,
|
.pads = serial2_pads,
|
||||||
.pads_cnt = ARRAY_SIZE(serial2_pads),
|
.pads_cnt = ARRAY_SIZE(serial2_pads),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct omap_board_data serial3_data = {
|
static struct omap_board_data serial3_data __initdata = {
|
||||||
.id = 2,
|
.id = 2,
|
||||||
.pads = serial3_pads,
|
.pads = serial3_pads,
|
||||||
.pads_cnt = ARRAY_SIZE(serial3_pads),
|
.pads_cnt = ARRAY_SIZE(serial3_pads),
|
||||||
|
@ -258,7 +258,7 @@ static struct gpio sdp4430_eth_gpios[] __initdata = {
|
|||||||
{ ETH_KS8851_IRQ, GPIOF_IN, "eth_irq" },
|
{ ETH_KS8851_IRQ, GPIOF_IN, "eth_irq" },
|
||||||
};
|
};
|
||||||
|
|
||||||
static int omap_ethernet_init(void)
|
static int __init omap_ethernet_init(void)
|
||||||
{
|
{
|
||||||
int status;
|
int status;
|
||||||
|
|
||||||
@ -322,6 +322,7 @@ static struct omap2_hsmmc_info mmc[] = {
|
|||||||
.gpio_wp = -EINVAL,
|
.gpio_wp = -EINVAL,
|
||||||
.nonremovable = true,
|
.nonremovable = true,
|
||||||
.ocr_mask = MMC_VDD_29_30,
|
.ocr_mask = MMC_VDD_29_30,
|
||||||
|
.no_off_init = true,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
.mmc = 1,
|
.mmc = 1,
|
||||||
@ -681,19 +682,19 @@ static struct omap_device_pad serial4_pads[] __initdata = {
|
|||||||
OMAP_PIN_OUTPUT | OMAP_MUX_MODE0),
|
OMAP_PIN_OUTPUT | OMAP_MUX_MODE0),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct omap_board_data serial2_data = {
|
static struct omap_board_data serial2_data __initdata = {
|
||||||
.id = 1,
|
.id = 1,
|
||||||
.pads = serial2_pads,
|
.pads = serial2_pads,
|
||||||
.pads_cnt = ARRAY_SIZE(serial2_pads),
|
.pads_cnt = ARRAY_SIZE(serial2_pads),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct omap_board_data serial3_data = {
|
static struct omap_board_data serial3_data __initdata = {
|
||||||
.id = 2,
|
.id = 2,
|
||||||
.pads = serial3_pads,
|
.pads = serial3_pads,
|
||||||
.pads_cnt = ARRAY_SIZE(serial3_pads),
|
.pads_cnt = ARRAY_SIZE(serial3_pads),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct omap_board_data serial4_data = {
|
static struct omap_board_data serial4_data __initdata = {
|
||||||
.id = 3,
|
.id = 3,
|
||||||
.pads = serial4_pads,
|
.pads = serial4_pads,
|
||||||
.pads_cnt = ARRAY_SIZE(serial4_pads),
|
.pads_cnt = ARRAY_SIZE(serial4_pads),
|
||||||
@ -729,7 +730,7 @@ static void __init omap_4430sdp_init(void)
|
|||||||
|
|
||||||
if (omap_rev() == OMAP4430_REV_ES1_0)
|
if (omap_rev() == OMAP4430_REV_ES1_0)
|
||||||
package = OMAP_PACKAGE_CBL;
|
package = OMAP_PACKAGE_CBL;
|
||||||
omap4_mux_init(board_mux, package);
|
omap4_mux_init(board_mux, NULL, package);
|
||||||
|
|
||||||
omap_board_config = sdp4430_config;
|
omap_board_config = sdp4430_config;
|
||||||
omap_board_config_size = ARRAY_SIZE(sdp4430_config);
|
omap_board_config_size = ARRAY_SIZE(sdp4430_config);
|
||||||
|
@ -27,13 +27,13 @@
|
|||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
#include <linux/clk.h>
|
#include <linux/clk.h>
|
||||||
#include <linux/smc91x.h>
|
#include <linux/smc91x.h>
|
||||||
|
#include <linux/gpio.h>
|
||||||
|
|
||||||
#include <mach/hardware.h>
|
#include <mach/hardware.h>
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
#include <asm/mach/flash.h>
|
#include <asm/mach/flash.h>
|
||||||
|
|
||||||
#include <mach/gpio.h>
|
|
||||||
#include <plat/led.h>
|
#include <plat/led.h>
|
||||||
#include <plat/usb.h>
|
#include <plat/usb.h>
|
||||||
#include <plat/board.h>
|
#include <plat/board.h>
|
||||||
|
@ -63,8 +63,6 @@
|
|||||||
#define SB_T35_SMSC911X_CS 4
|
#define SB_T35_SMSC911X_CS 4
|
||||||
#define SB_T35_SMSC911X_GPIO 65
|
#define SB_T35_SMSC911X_GPIO 65
|
||||||
|
|
||||||
#define NAND_BLOCK_SIZE SZ_128K
|
|
||||||
|
|
||||||
#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
|
#if defined(CONFIG_SMSC911X) || defined(CONFIG_SMSC911X_MODULE)
|
||||||
#include <linux/smsc911x.h>
|
#include <linux/smsc911x.h>
|
||||||
#include <plat/gpmc-smsc911x.h>
|
#include <plat/gpmc-smsc911x.h>
|
||||||
|
@ -48,6 +48,7 @@
|
|||||||
|
|
||||||
#include "mux.h"
|
#include "mux.h"
|
||||||
#include "control.h"
|
#include "control.h"
|
||||||
|
#include "common-board-devices.h"
|
||||||
|
|
||||||
#if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)
|
#if defined(CONFIG_LEDS_GPIO) || defined(CONFIG_LEDS_GPIO_MODULE)
|
||||||
static struct gpio_led cm_t3517_leds[] = {
|
static struct gpio_led cm_t3517_leds[] = {
|
||||||
@ -177,7 +178,7 @@ static struct usbhs_omap_board_data cm_t3517_ehci_pdata __initdata = {
|
|||||||
.reset_gpio_port[2] = -EINVAL,
|
.reset_gpio_port[2] = -EINVAL,
|
||||||
};
|
};
|
||||||
|
|
||||||
static int cm_t3517_init_usbh(void)
|
static int __init cm_t3517_init_usbh(void)
|
||||||
{
|
{
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
@ -203,8 +204,6 @@ static inline int cm_t3517_init_usbh(void)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if defined(CONFIG_MTD_NAND_OMAP2) || defined(CONFIG_MTD_NAND_OMAP2_MODULE)
|
#if defined(CONFIG_MTD_NAND_OMAP2) || defined(CONFIG_MTD_NAND_OMAP2_MODULE)
|
||||||
#define NAND_BLOCK_SIZE SZ_128K
|
|
||||||
|
|
||||||
static struct mtd_partition cm_t3517_nand_partitions[] = {
|
static struct mtd_partition cm_t3517_nand_partitions[] = {
|
||||||
{
|
{
|
||||||
.name = "xloader",
|
.name = "xloader",
|
||||||
|
@ -61,8 +61,6 @@
|
|||||||
#include "timer-gp.h"
|
#include "timer-gp.h"
|
||||||
#include "common-board-devices.h"
|
#include "common-board-devices.h"
|
||||||
|
|
||||||
#define NAND_BLOCK_SIZE SZ_128K
|
|
||||||
|
|
||||||
#define OMAP_DM9000_GPIO_IRQ 25
|
#define OMAP_DM9000_GPIO_IRQ 25
|
||||||
#define OMAP3_DEVKIT_TS_GPIO 27
|
#define OMAP3_DEVKIT_TS_GPIO 27
|
||||||
|
|
||||||
|
@ -54,8 +54,6 @@
|
|||||||
#include "pm.h"
|
#include "pm.h"
|
||||||
#include "common-board-devices.h"
|
#include "common-board-devices.h"
|
||||||
|
|
||||||
#define NAND_BLOCK_SIZE SZ_128K
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* OMAP3 Beagle revision
|
* OMAP3 Beagle revision
|
||||||
* Run time detection of Beagle revision is done by reading GPIO.
|
* Run time detection of Beagle revision is done by reading GPIO.
|
||||||
@ -106,6 +104,9 @@ static void __init omap3_beagle_init_rev(void)
|
|||||||
beagle_rev = gpio_get_value(171) | (gpio_get_value(172) << 1)
|
beagle_rev = gpio_get_value(171) | (gpio_get_value(172) << 1)
|
||||||
| (gpio_get_value(173) << 2);
|
| (gpio_get_value(173) << 2);
|
||||||
|
|
||||||
|
gpio_free_array(omap3_beagle_rev_gpios,
|
||||||
|
ARRAY_SIZE(omap3_beagle_rev_gpios));
|
||||||
|
|
||||||
switch (beagle_rev) {
|
switch (beagle_rev) {
|
||||||
case 7:
|
case 7:
|
||||||
printk(KERN_INFO "OMAP3 Beagle Rev: Ax/Bx\n");
|
printk(KERN_INFO "OMAP3 Beagle Rev: Ax/Bx\n");
|
||||||
@ -579,6 +580,9 @@ static void __init omap3_beagle_init(void)
|
|||||||
omap_nand_flash_init(NAND_BUSWIDTH_16, omap3beagle_nand_partitions,
|
omap_nand_flash_init(NAND_BUSWIDTH_16, omap3beagle_nand_partitions,
|
||||||
ARRAY_SIZE(omap3beagle_nand_partitions));
|
ARRAY_SIZE(omap3beagle_nand_partitions));
|
||||||
|
|
||||||
|
/* Ensure msecure is mux'd to be able to set the RTC. */
|
||||||
|
omap_mux_init_signal("sys_drm_msecure", OMAP_PIN_OFF_OUTPUT_HIGH);
|
||||||
|
|
||||||
/* Ensure SDRC pins are mux'd for self-refresh */
|
/* Ensure SDRC pins are mux'd for self-refresh */
|
||||||
omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
|
omap_mux_init_signal("sdrc_cke0", OMAP_PIN_OUTPUT);
|
||||||
omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
|
omap_mux_init_signal("sdrc_cke1", OMAP_PIN_OUTPUT);
|
||||||
|
@ -30,6 +30,7 @@
|
|||||||
#include <linux/leds.h>
|
#include <linux/leds.h>
|
||||||
#include <linux/input.h>
|
#include <linux/input.h>
|
||||||
#include <linux/input/matrix_keypad.h>
|
#include <linux/input/matrix_keypad.h>
|
||||||
|
#include <linux/gpio.h>
|
||||||
#include <linux/gpio_keys.h>
|
#include <linux/gpio_keys.h>
|
||||||
#include <linux/mmc/host.h>
|
#include <linux/mmc/host.h>
|
||||||
#include <linux/mmc/card.h>
|
#include <linux/mmc/card.h>
|
||||||
@ -41,7 +42,6 @@
|
|||||||
|
|
||||||
#include <plat/board.h>
|
#include <plat/board.h>
|
||||||
#include <plat/common.h>
|
#include <plat/common.h>
|
||||||
#include <mach/gpio.h>
|
|
||||||
#include <mach/hardware.h>
|
#include <mach/hardware.h>
|
||||||
#include <plat/mcspi.h>
|
#include <plat/mcspi.h>
|
||||||
#include <plat/usb.h>
|
#include <plat/usb.h>
|
||||||
@ -57,8 +57,6 @@
|
|||||||
#define PANDORA_WIFI_NRESET_GPIO 23
|
#define PANDORA_WIFI_NRESET_GPIO 23
|
||||||
#define OMAP3_PANDORA_TS_GPIO 94
|
#define OMAP3_PANDORA_TS_GPIO 94
|
||||||
|
|
||||||
#define NAND_BLOCK_SIZE SZ_128K
|
|
||||||
|
|
||||||
static struct mtd_partition omap3pandora_nand_partitions[] = {
|
static struct mtd_partition omap3pandora_nand_partitions[] = {
|
||||||
{
|
{
|
||||||
.name = "xloader",
|
.name = "xloader",
|
||||||
@ -86,7 +84,8 @@ static struct mtd_partition omap3pandora_nand_partitions[] = {
|
|||||||
|
|
||||||
static struct omap_nand_platform_data pandora_nand_data = {
|
static struct omap_nand_platform_data pandora_nand_data = {
|
||||||
.cs = 0,
|
.cs = 0,
|
||||||
.devsize = 1, /* '0' for 8-bit, '1' for 16-bit device */
|
.devsize = NAND_BUSWIDTH_16,
|
||||||
|
.xfer_type = NAND_OMAP_PREFETCH_DMA,
|
||||||
.parts = omap3pandora_nand_partitions,
|
.parts = omap3pandora_nand_partitions,
|
||||||
.nr_parts = ARRAY_SIZE(omap3pandora_nand_partitions),
|
.nr_parts = ARRAY_SIZE(omap3pandora_nand_partitions),
|
||||||
};
|
};
|
||||||
|
@ -56,8 +56,6 @@
|
|||||||
|
|
||||||
#include <asm/setup.h>
|
#include <asm/setup.h>
|
||||||
|
|
||||||
#define NAND_BLOCK_SIZE SZ_128K
|
|
||||||
|
|
||||||
#define OMAP3_AC_GPIO 136
|
#define OMAP3_AC_GPIO 136
|
||||||
#define OMAP3_TS_GPIO 162
|
#define OMAP3_TS_GPIO 162
|
||||||
#define TB_BL_PWM_TIMER 9
|
#define TB_BL_PWM_TIMER 9
|
||||||
|
@ -526,19 +526,19 @@ static struct omap_device_pad serial4_pads[] __initdata = {
|
|||||||
OMAP_PIN_OUTPUT | OMAP_MUX_MODE0),
|
OMAP_PIN_OUTPUT | OMAP_MUX_MODE0),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct omap_board_data serial2_data = {
|
static struct omap_board_data serial2_data __initdata = {
|
||||||
.id = 1,
|
.id = 1,
|
||||||
.pads = serial2_pads,
|
.pads = serial2_pads,
|
||||||
.pads_cnt = ARRAY_SIZE(serial2_pads),
|
.pads_cnt = ARRAY_SIZE(serial2_pads),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct omap_board_data serial3_data = {
|
static struct omap_board_data serial3_data __initdata = {
|
||||||
.id = 2,
|
.id = 2,
|
||||||
.pads = serial3_pads,
|
.pads = serial3_pads,
|
||||||
.pads_cnt = ARRAY_SIZE(serial3_pads),
|
.pads_cnt = ARRAY_SIZE(serial3_pads),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct omap_board_data serial4_data = {
|
static struct omap_board_data serial4_data __initdata = {
|
||||||
.id = 3,
|
.id = 3,
|
||||||
.pads = serial4_pads,
|
.pads = serial4_pads,
|
||||||
.pads_cnt = ARRAY_SIZE(serial4_pads),
|
.pads_cnt = ARRAY_SIZE(serial4_pads),
|
||||||
@ -687,7 +687,7 @@ static void __init omap4_panda_init(void)
|
|||||||
|
|
||||||
if (omap_rev() == OMAP4430_REV_ES1_0)
|
if (omap_rev() == OMAP4430_REV_ES1_0)
|
||||||
package = OMAP_PACKAGE_CBL;
|
package = OMAP_PACKAGE_CBL;
|
||||||
omap4_mux_init(board_mux, package);
|
omap4_mux_init(board_mux, NULL, package);
|
||||||
|
|
||||||
if (wl12xx_set_platform_data(&omap_panda_wlan_data))
|
if (wl12xx_set_platform_data(&omap_panda_wlan_data))
|
||||||
pr_err("error setting wl12xx data\n");
|
pr_err("error setting wl12xx data\n");
|
||||||
|
@ -24,6 +24,7 @@
|
|||||||
#include <linux/err.h>
|
#include <linux/err.h>
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/io.h>
|
#include <linux/io.h>
|
||||||
|
#include <linux/gpio.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/i2c/twl.h>
|
#include <linux/i2c/twl.h>
|
||||||
@ -45,7 +46,6 @@
|
|||||||
#include <plat/common.h>
|
#include <plat/common.h>
|
||||||
#include <video/omapdss.h>
|
#include <video/omapdss.h>
|
||||||
#include <video/omap-panel-generic-dpi.h>
|
#include <video/omap-panel-generic-dpi.h>
|
||||||
#include <mach/gpio.h>
|
|
||||||
#include <plat/gpmc.h>
|
#include <plat/gpmc.h>
|
||||||
#include <mach/hardware.h>
|
#include <mach/hardware.h>
|
||||||
#include <plat/nand.h>
|
#include <plat/nand.h>
|
||||||
@ -65,8 +65,6 @@
|
|||||||
#define OVERO_GPIO_USBH_CPEN 168
|
#define OVERO_GPIO_USBH_CPEN 168
|
||||||
#define OVERO_GPIO_USBH_NRESET 183
|
#define OVERO_GPIO_USBH_NRESET 183
|
||||||
|
|
||||||
#define NAND_BLOCK_SIZE SZ_128K
|
|
||||||
|
|
||||||
#define OVERO_SMSC911X_CS 5
|
#define OVERO_SMSC911X_CS 5
|
||||||
#define OVERO_SMSC911X_GPIO 176
|
#define OVERO_SMSC911X_GPIO 176
|
||||||
#define OVERO_SMSC911X2_CS 4
|
#define OVERO_SMSC911X2_CS 4
|
||||||
|
@ -488,6 +488,7 @@ static struct regulator_init_data rx51_vmmc2 = {
|
|||||||
.name = "V28_A",
|
.name = "V28_A",
|
||||||
.min_uV = 2800000,
|
.min_uV = 2800000,
|
||||||
.max_uV = 3000000,
|
.max_uV = 3000000,
|
||||||
|
.always_on = true, /* due VIO leak to AIC34 VDDs */
|
||||||
.apply_uV = true,
|
.apply_uV = true,
|
||||||
.valid_modes_mask = REGULATOR_MODE_NORMAL
|
.valid_modes_mask = REGULATOR_MODE_NORMAL
|
||||||
| REGULATOR_MODE_STANDBY,
|
| REGULATOR_MODE_STANDBY,
|
||||||
@ -582,7 +583,7 @@ static int rx51_twlgpio_setup(struct device *dev, unsigned gpio, unsigned n)
|
|||||||
{
|
{
|
||||||
/* FIXME this gpio setup is just a placeholder for now */
|
/* FIXME this gpio setup is just a placeholder for now */
|
||||||
gpio_request_one(gpio + 6, GPIOF_OUT_INIT_LOW, "backlight_pwm");
|
gpio_request_one(gpio + 6, GPIOF_OUT_INIT_LOW, "backlight_pwm");
|
||||||
gpio_request_one(gpio + 7, GPIOF_OUT_INIT_HIGH, "speaker_en");
|
gpio_request_one(gpio + 7, GPIOF_OUT_INIT_LOW, "speaker_en");
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
@ -26,7 +26,7 @@ static struct gpio zoom_lcd_gpios[] __initdata = {
|
|||||||
{ LCD_PANEL_QVGA_GPIO, GPIOF_OUT_INIT_HIGH, "lcd qvga" },
|
{ LCD_PANEL_QVGA_GPIO, GPIOF_OUT_INIT_HIGH, "lcd qvga" },
|
||||||
};
|
};
|
||||||
|
|
||||||
static void zoom_lcd_panel_init(void)
|
static void __init zoom_lcd_panel_init(void)
|
||||||
{
|
{
|
||||||
zoom_lcd_gpios[0].gpio = (omap_rev() > OMAP3430_REV_ES3_0) ?
|
zoom_lcd_gpios[0].gpio = (omap_rev() > OMAP3430_REV_ES3_0) ?
|
||||||
LCD_PANEL_RESET_GPIO_PROD :
|
LCD_PANEL_RESET_GPIO_PROD :
|
||||||
|
@ -85,18 +85,18 @@ void __init omap_ads7846_init(int bus_num, int gpio_pendown, int gpio_debounce,
|
|||||||
struct spi_board_info *spi_bi = &ads7846_spi_board_info;
|
struct spi_board_info *spi_bi = &ads7846_spi_board_info;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
err = gpio_request(gpio_pendown, "TS PenDown");
|
if (board_pdata && board_pdata->get_pendown_state) {
|
||||||
if (err) {
|
err = gpio_request_one(gpio_pendown, GPIOF_IN, "TSPenDown");
|
||||||
pr_err("Could not obtain gpio for TS PenDown: %d\n", err);
|
if (err) {
|
||||||
return;
|
pr_err("Couldn't obtain gpio for TSPenDown: %d\n", err);
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
gpio_export(gpio_pendown, 0);
|
||||||
|
|
||||||
|
if (gpio_debounce)
|
||||||
|
gpio_set_debounce(gpio_pendown, gpio_debounce);
|
||||||
}
|
}
|
||||||
|
|
||||||
gpio_direction_input(gpio_pendown);
|
|
||||||
gpio_export(gpio_pendown, 0);
|
|
||||||
|
|
||||||
if (gpio_debounce)
|
|
||||||
gpio_set_debounce(gpio_pendown, gpio_debounce);
|
|
||||||
|
|
||||||
ads7846_config.gpio_pendown = gpio_pendown;
|
ads7846_config.gpio_pendown = gpio_pendown;
|
||||||
|
|
||||||
spi_bi->bus_num = bus_num;
|
spi_bi->bus_num = bus_num;
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#ifndef __OMAP_COMMON_BOARD_DEVICES__
|
#ifndef __OMAP_COMMON_BOARD_DEVICES__
|
||||||
#define __OMAP_COMMON_BOARD_DEVICES__
|
#define __OMAP_COMMON_BOARD_DEVICES__
|
||||||
|
|
||||||
|
#define NAND_BLOCK_SIZE SZ_128K
|
||||||
|
|
||||||
struct twl4030_platform_data;
|
struct twl4030_platform_data;
|
||||||
struct mtd_partition;
|
struct mtd_partition;
|
||||||
|
|
||||||
|
@ -97,7 +97,7 @@ static int __init omap4_l3_init(void)
|
|||||||
|
|
||||||
WARN(IS_ERR(od), "could not build omap_device for %s\n", oh_name);
|
WARN(IS_ERR(od), "could not build omap_device for %s\n", oh_name);
|
||||||
|
|
||||||
return PTR_ERR(od);
|
return IS_ERR(od) ? PTR_ERR(od) : 0;
|
||||||
}
|
}
|
||||||
postcore_initcall(omap4_l3_init);
|
postcore_initcall(omap4_l3_init);
|
||||||
|
|
||||||
|
@ -145,6 +145,7 @@ static void omap4_hsmmc1_after_set_reg(struct device *dev, int slot,
|
|||||||
int power_on, int vdd)
|
int power_on, int vdd)
|
||||||
{
|
{
|
||||||
u32 reg;
|
u32 reg;
|
||||||
|
unsigned long timeout;
|
||||||
|
|
||||||
if (power_on) {
|
if (power_on) {
|
||||||
reg = omap4_ctrl_pad_readl(control_pbias_offset);
|
reg = omap4_ctrl_pad_readl(control_pbias_offset);
|
||||||
@ -157,9 +158,15 @@ static void omap4_hsmmc1_after_set_reg(struct device *dev, int slot,
|
|||||||
OMAP4_MMC1_PWRDNZ_MASK |
|
OMAP4_MMC1_PWRDNZ_MASK |
|
||||||
OMAP4_USBC1_ICUSB_PWRDNZ_MASK);
|
OMAP4_USBC1_ICUSB_PWRDNZ_MASK);
|
||||||
omap4_ctrl_pad_writel(reg, control_pbias_offset);
|
omap4_ctrl_pad_writel(reg, control_pbias_offset);
|
||||||
/* 4 microsec delay for comparator to generate an error*/
|
|
||||||
udelay(4);
|
timeout = jiffies + msecs_to_jiffies(5);
|
||||||
reg = omap4_ctrl_pad_readl(control_pbias_offset);
|
do {
|
||||||
|
reg = omap4_ctrl_pad_readl(control_pbias_offset);
|
||||||
|
if (!(reg & OMAP4_MMC1_PBIASLITE_VMODE_ERROR_MASK))
|
||||||
|
break;
|
||||||
|
usleep_range(100, 200);
|
||||||
|
} while (!time_after(jiffies, timeout));
|
||||||
|
|
||||||
if (reg & OMAP4_MMC1_PBIASLITE_VMODE_ERROR_MASK) {
|
if (reg & OMAP4_MMC1_PBIASLITE_VMODE_ERROR_MASK) {
|
||||||
pr_err("Pbias Voltage is not same as LDO\n");
|
pr_err("Pbias Voltage is not same as LDO\n");
|
||||||
/* Caution : On VMODE_ERROR Power Down MMC IO */
|
/* Caution : On VMODE_ERROR Power Down MMC IO */
|
||||||
@ -331,6 +338,9 @@ static int __init omap_hsmmc_pdata_init(struct omap2_hsmmc_info *c,
|
|||||||
if (c->no_off)
|
if (c->no_off)
|
||||||
mmc->slots[0].no_off = 1;
|
mmc->slots[0].no_off = 1;
|
||||||
|
|
||||||
|
if (c->no_off_init)
|
||||||
|
mmc->slots[0].no_regulator_off_init = c->no_off_init;
|
||||||
|
|
||||||
if (c->vcc_aux_disable_is_sleep)
|
if (c->vcc_aux_disable_is_sleep)
|
||||||
mmc->slots[0].vcc_aux_disable_is_sleep = 1;
|
mmc->slots[0].vcc_aux_disable_is_sleep = 1;
|
||||||
|
|
||||||
|
@ -18,6 +18,7 @@ struct omap2_hsmmc_info {
|
|||||||
bool nonremovable; /* Nonremovable e.g. eMMC */
|
bool nonremovable; /* Nonremovable e.g. eMMC */
|
||||||
bool power_saving; /* Try to sleep or power off when possible */
|
bool power_saving; /* Try to sleep or power off when possible */
|
||||||
bool no_off; /* power_saving and power is not to go off */
|
bool no_off; /* power_saving and power is not to go off */
|
||||||
|
bool no_off_init; /* no power off when not in MMC sleep state */
|
||||||
bool vcc_aux_disable_is_sleep; /* Regulator off remapped to sleep */
|
bool vcc_aux_disable_is_sleep; /* Regulator off remapped to sleep */
|
||||||
int gpio_cd; /* or -EINVAL */
|
int gpio_cd; /* or -EINVAL */
|
||||||
int gpio_wp; /* or -EINVAL */
|
int gpio_wp; /* or -EINVAL */
|
||||||
|
@ -83,6 +83,9 @@ void omap_mux_write(struct omap_mux_partition *partition, u16 val,
|
|||||||
void omap_mux_write_array(struct omap_mux_partition *partition,
|
void omap_mux_write_array(struct omap_mux_partition *partition,
|
||||||
struct omap_board_mux *board_mux)
|
struct omap_board_mux *board_mux)
|
||||||
{
|
{
|
||||||
|
if (!board_mux)
|
||||||
|
return;
|
||||||
|
|
||||||
while (board_mux->reg_offset != OMAP_MUX_TERMINATOR) {
|
while (board_mux->reg_offset != OMAP_MUX_TERMINATOR) {
|
||||||
omap_mux_write(partition, board_mux->value,
|
omap_mux_write(partition, board_mux->value,
|
||||||
board_mux->reg_offset);
|
board_mux->reg_offset);
|
||||||
@ -906,7 +909,7 @@ static struct omap_mux *omap_mux_get_by_gpio(
|
|||||||
u16 omap_mux_get_gpio(int gpio)
|
u16 omap_mux_get_gpio(int gpio)
|
||||||
{
|
{
|
||||||
struct omap_mux_partition *partition;
|
struct omap_mux_partition *partition;
|
||||||
struct omap_mux *m;
|
struct omap_mux *m = NULL;
|
||||||
|
|
||||||
list_for_each_entry(partition, &mux_partitions, node) {
|
list_for_each_entry(partition, &mux_partitions, node) {
|
||||||
m = omap_mux_get_by_gpio(partition, gpio);
|
m = omap_mux_get_by_gpio(partition, gpio);
|
||||||
|
@ -323,10 +323,12 @@ int omap3_mux_init(struct omap_board_mux *board_mux, int flags);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* omap4_mux_init() - initialize mux system with board specific set
|
* omap4_mux_init() - initialize mux system with board specific set
|
||||||
* @board_mux: Board specific mux table
|
* @board_subset: Board specific mux table
|
||||||
|
* @board_wkup_subset: Board specific mux table for wakeup instance
|
||||||
* @flags: OMAP package type used for the board
|
* @flags: OMAP package type used for the board
|
||||||
*/
|
*/
|
||||||
int omap4_mux_init(struct omap_board_mux *board_mux, int flags);
|
int omap4_mux_init(struct omap_board_mux *board_subset,
|
||||||
|
struct omap_board_mux *board_wkup_subset, int flags);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* omap_mux_init - private mux init function, do not call
|
* omap_mux_init - private mux init function, do not call
|
||||||
|
@ -1309,7 +1309,8 @@ static struct omap_ball __initdata omap4_wkup_cbl_cbs_ball[] = {
|
|||||||
#define omap4_wkup_cbl_cbs_ball NULL
|
#define omap4_wkup_cbl_cbs_ball NULL
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
int __init omap4_mux_init(struct omap_board_mux *board_subset, int flags)
|
int __init omap4_mux_init(struct omap_board_mux *board_subset,
|
||||||
|
struct omap_board_mux *board_wkup_subset, int flags)
|
||||||
{
|
{
|
||||||
struct omap_ball *package_balls_core;
|
struct omap_ball *package_balls_core;
|
||||||
struct omap_ball *package_balls_wkup = omap4_wkup_cbl_cbs_ball;
|
struct omap_ball *package_balls_wkup = omap4_wkup_cbl_cbs_ball;
|
||||||
@ -1347,7 +1348,7 @@ int __init omap4_mux_init(struct omap_board_mux *board_subset, int flags)
|
|||||||
OMAP_MUX_GPIO_IN_MODE3,
|
OMAP_MUX_GPIO_IN_MODE3,
|
||||||
OMAP4_CTRL_MODULE_PAD_WKUP_MUX_PBASE,
|
OMAP4_CTRL_MODULE_PAD_WKUP_MUX_PBASE,
|
||||||
OMAP4_CTRL_MODULE_PAD_WKUP_MUX_SIZE,
|
OMAP4_CTRL_MODULE_PAD_WKUP_MUX_SIZE,
|
||||||
omap4_wkup_muxmodes, NULL, board_subset,
|
omap4_wkup_muxmodes, NULL, board_wkup_subset,
|
||||||
package_balls_wkup);
|
package_balls_wkup);
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -1628,7 +1628,7 @@ int omap_hwmod_for_each(int (*fn)(struct omap_hwmod *oh, void *data),
|
|||||||
void *data)
|
void *data)
|
||||||
{
|
{
|
||||||
struct omap_hwmod *temp_oh;
|
struct omap_hwmod *temp_oh;
|
||||||
int ret;
|
int ret = 0;
|
||||||
|
|
||||||
if (!fn)
|
if (!fn)
|
||||||
return -EINVAL;
|
return -EINVAL;
|
||||||
|
@ -5109,7 +5109,7 @@ static __initdata struct omap_hwmod *omap44xx_hwmods[] = {
|
|||||||
&omap44xx_iva_seq1_hwmod,
|
&omap44xx_iva_seq1_hwmod,
|
||||||
|
|
||||||
/* kbd class */
|
/* kbd class */
|
||||||
/* &omap44xx_kbd_hwmod, */
|
&omap44xx_kbd_hwmod,
|
||||||
|
|
||||||
/* mailbox class */
|
/* mailbox class */
|
||||||
&omap44xx_mailbox_hwmod,
|
&omap44xx_mailbox_hwmod,
|
||||||
|
@ -56,8 +56,10 @@ int omap4430_phy_init(struct device *dev)
|
|||||||
/* Power down the phy */
|
/* Power down the phy */
|
||||||
__raw_writel(PHY_PD, ctrl_base + CONTROL_DEV_CONF);
|
__raw_writel(PHY_PD, ctrl_base + CONTROL_DEV_CONF);
|
||||||
|
|
||||||
if (!dev)
|
if (!dev) {
|
||||||
|
iounmap(ctrl_base);
|
||||||
return 0;
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
phyclk = clk_get(dev, "ocp2scp_usb_phy_ick");
|
phyclk = clk_get(dev, "ocp2scp_usb_phy_ick");
|
||||||
if (IS_ERR(phyclk)) {
|
if (IS_ERR(phyclk)) {
|
||||||
|
@ -189,7 +189,7 @@ static struct dentry *pm_dbg_dir;
|
|||||||
|
|
||||||
static int pm_dbg_init_done;
|
static int pm_dbg_init_done;
|
||||||
|
|
||||||
static int __init pm_dbg_init(void);
|
static int pm_dbg_init(void);
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
DEBUG_FILE_COUNTERS = 0,
|
DEBUG_FILE_COUNTERS = 0,
|
||||||
@ -595,7 +595,7 @@ static int option_set(void *data, u64 val)
|
|||||||
|
|
||||||
DEFINE_SIMPLE_ATTRIBUTE(pm_dbg_option_fops, option_get, option_set, "%llu\n");
|
DEFINE_SIMPLE_ATTRIBUTE(pm_dbg_option_fops, option_get, option_set, "%llu\n");
|
||||||
|
|
||||||
static int __init pm_dbg_init(void)
|
static int pm_dbg_init(void)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
struct dentry *d;
|
struct dentry *d;
|
||||||
|
@ -14,6 +14,7 @@
|
|||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/kernel.h>
|
#include <linux/kernel.h>
|
||||||
#include <linux/delay.h>
|
#include <linux/delay.h>
|
||||||
|
#include <linux/gpio.h>
|
||||||
#include <linux/interrupt.h>
|
#include <linux/interrupt.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
#include <linux/apm-emulation.h>
|
#include <linux/apm-emulation.h>
|
||||||
|
@ -10,7 +10,6 @@ obj-n :=
|
|||||||
obj- :=
|
obj- :=
|
||||||
|
|
||||||
obj-$(CONFIG_CPU_S3C2410) += s3c2410.o
|
obj-$(CONFIG_CPU_S3C2410) += s3c2410.o
|
||||||
obj-$(CONFIG_CPU_S3C2410) += irq.o
|
|
||||||
obj-$(CONFIG_CPU_S3C2410_DMA) += dma.o
|
obj-$(CONFIG_CPU_S3C2410_DMA) += dma.o
|
||||||
obj-$(CONFIG_CPU_S3C2410_DMA) += dma.o
|
obj-$(CONFIG_CPU_S3C2410_DMA) += dma.o
|
||||||
obj-$(CONFIG_S3C2410_PM) += pm.o sleep.o
|
obj-$(CONFIG_S3C2410_PM) += pm.o sleep.o
|
||||||
|
@ -1,34 +0,0 @@
|
|||||||
/* linux/arch/arm/mach-s3c2410/irq.c
|
|
||||||
*
|
|
||||||
* Copyright (c) 2006 Simtec Electronics
|
|
||||||
* Ben Dooks <ben@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 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
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
#include <linux/init.h>
|
|
||||||
#include <linux/module.h>
|
|
||||||
#include <linux/interrupt.h>
|
|
||||||
#include <linux/ioport.h>
|
|
||||||
#include <linux/syscore_ops.h>
|
|
||||||
|
|
||||||
#include <plat/cpu.h>
|
|
||||||
#include <plat/pm.h>
|
|
||||||
|
|
||||||
struct syscore_ops s3c24xx_irq_syscore_ops = {
|
|
||||||
.suspend = s3c24xx_irq_suspend,
|
|
||||||
.resume = s3c24xx_irq_resume,
|
|
||||||
};
|
|
@ -101,12 +101,14 @@ static void s5pv210_set_refresh(enum s5pv210_dmc_port ch, unsigned long freq)
|
|||||||
unsigned long tmp, tmp1;
|
unsigned long tmp, tmp1;
|
||||||
void __iomem *reg = NULL;
|
void __iomem *reg = NULL;
|
||||||
|
|
||||||
if (ch == DMC0)
|
if (ch == DMC0) {
|
||||||
reg = (S5P_VA_DMC0 + 0x30);
|
reg = (S5P_VA_DMC0 + 0x30);
|
||||||
else if (ch == DMC1)
|
} else if (ch == DMC1) {
|
||||||
reg = (S5P_VA_DMC1 + 0x30);
|
reg = (S5P_VA_DMC1 + 0x30);
|
||||||
else
|
} else {
|
||||||
printk(KERN_ERR "Cannot find DMC port\n");
|
printk(KERN_ERR "Cannot find DMC port\n");
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
/* Find current DRAM frequency */
|
/* Find current DRAM frequency */
|
||||||
tmp = s5pv210_dram_conf[ch].freq;
|
tmp = s5pv210_dram_conf[ch].freq;
|
||||||
|
@ -382,10 +382,8 @@ void ag5evm_sdhi1_set_pwr(struct platform_device *pdev, int state)
|
|||||||
}
|
}
|
||||||
|
|
||||||
static struct sh_mobile_sdhi_info sh_sdhi1_platdata = {
|
static struct sh_mobile_sdhi_info sh_sdhi1_platdata = {
|
||||||
.dma_slave_tx = SHDMA_SLAVE_SDHI1_TX,
|
|
||||||
.dma_slave_rx = SHDMA_SLAVE_SDHI1_RX,
|
|
||||||
.tmio_flags = TMIO_MMC_WRPROTECT_DISABLE,
|
.tmio_flags = TMIO_MMC_WRPROTECT_DISABLE,
|
||||||
.tmio_caps = MMC_CAP_NONREMOVABLE,
|
.tmio_caps = MMC_CAP_NONREMOVABLE | MMC_CAP_SDIO_IRQ,
|
||||||
.tmio_ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34,
|
.tmio_ocr_mask = MMC_VDD_32_33 | MMC_VDD_33_34,
|
||||||
.set_pwr = ag5evm_sdhi1_set_pwr,
|
.set_pwr = ag5evm_sdhi1_set_pwr,
|
||||||
};
|
};
|
||||||
|
@ -126,7 +126,7 @@
|
|||||||
* ------+--------------------+--------------------+-------
|
* ------+--------------------+--------------------+-------
|
||||||
* IRQ0 | ICR1A.IRQ0SA=0010 | SDHI2 card detect | Low
|
* IRQ0 | ICR1A.IRQ0SA=0010 | SDHI2 card detect | Low
|
||||||
* IRQ6 | ICR1A.IRQ6SA=0011 | Ether(LAN9220) | High
|
* IRQ6 | ICR1A.IRQ6SA=0011 | Ether(LAN9220) | High
|
||||||
* IRQ7 | ICR1A.IRQ7SA=0010 | LCD Tuch Panel | Low
|
* IRQ7 | ICR1A.IRQ7SA=0010 | LCD Touch Panel | Low
|
||||||
* IRQ8 | ICR2A.IRQ8SA=0010 | MMC/SD card detect | Low
|
* IRQ8 | ICR2A.IRQ8SA=0010 | MMC/SD card detect | Low
|
||||||
* IRQ9 | ICR2A.IRQ9SA=0010 | KEY(TCA6408) | Low
|
* IRQ9 | ICR2A.IRQ9SA=0010 | KEY(TCA6408) | Low
|
||||||
* IRQ21 | ICR4A.IRQ21SA=0011 | Sensor(ADXL345) | High
|
* IRQ21 | ICR4A.IRQ21SA=0011 | Sensor(ADXL345) | High
|
||||||
@ -165,10 +165,10 @@
|
|||||||
* USB1 can become Host by r8a66597, and become Function by renesas_usbhs.
|
* USB1 can become Host by r8a66597, and become Function by renesas_usbhs.
|
||||||
* But don't select both drivers in same time.
|
* But don't select both drivers in same time.
|
||||||
* These uses same IRQ number for request_irq(), and aren't supporting
|
* These uses same IRQ number for request_irq(), and aren't supporting
|
||||||
* IRQF_SHARD / IORESOURCE_IRQ_SHAREABLE.
|
* IRQF_SHARED / IORESOURCE_IRQ_SHAREABLE.
|
||||||
*
|
*
|
||||||
* Actually these are old/new version of USB driver.
|
* Actually these are old/new version of USB driver.
|
||||||
* This mean its register will be broken if it supports SHARD IRQ,
|
* This mean its register will be broken if it supports shared IRQ,
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@ -562,7 +562,121 @@ static void __init hdmi_init_pm_clock(void)
|
|||||||
clk_put(hdmi_ick);
|
clk_put(hdmi_ick);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* USB1 (Host) */
|
/* USBHS0 is connected to CN22 which takes a USB Mini-B plug
|
||||||
|
*
|
||||||
|
* The sh7372 SoC has IRQ7 set aside for USBHS0 hotplug,
|
||||||
|
* but on this particular board IRQ7 is already used by
|
||||||
|
* the touch screen. This leaves us with software polling.
|
||||||
|
*/
|
||||||
|
#define USBHS0_POLL_INTERVAL (HZ * 5)
|
||||||
|
|
||||||
|
struct usbhs_private {
|
||||||
|
unsigned int usbphyaddr;
|
||||||
|
unsigned int usbcrcaddr;
|
||||||
|
struct renesas_usbhs_platform_info info;
|
||||||
|
struct delayed_work work;
|
||||||
|
struct platform_device *pdev;
|
||||||
|
};
|
||||||
|
|
||||||
|
#define usbhs_get_priv(pdev) \
|
||||||
|
container_of(renesas_usbhs_get_info(pdev), \
|
||||||
|
struct usbhs_private, info)
|
||||||
|
|
||||||
|
#define usbhs_is_connected(priv) \
|
||||||
|
(!((1 << 7) & __raw_readw(priv->usbcrcaddr)))
|
||||||
|
|
||||||
|
static int usbhs_get_vbus(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
return usbhs_is_connected(usbhs_get_priv(pdev));
|
||||||
|
}
|
||||||
|
|
||||||
|
static void usbhs_phy_reset(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
struct usbhs_private *priv = usbhs_get_priv(pdev);
|
||||||
|
|
||||||
|
/* init phy */
|
||||||
|
__raw_writew(0x8a0a, priv->usbcrcaddr);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int usbhs0_get_id(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
return USBHS_GADGET;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void usbhs0_work_function(struct work_struct *work)
|
||||||
|
{
|
||||||
|
struct usbhs_private *priv = container_of(work, struct usbhs_private,
|
||||||
|
work.work);
|
||||||
|
|
||||||
|
renesas_usbhs_call_notify_hotplug(priv->pdev);
|
||||||
|
schedule_delayed_work(&priv->work, USBHS0_POLL_INTERVAL);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int usbhs0_hardware_init(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
struct usbhs_private *priv = usbhs_get_priv(pdev);
|
||||||
|
|
||||||
|
priv->pdev = pdev;
|
||||||
|
INIT_DELAYED_WORK(&priv->work, usbhs0_work_function);
|
||||||
|
schedule_delayed_work(&priv->work, USBHS0_POLL_INTERVAL);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void usbhs0_hardware_exit(struct platform_device *pdev)
|
||||||
|
{
|
||||||
|
struct usbhs_private *priv = usbhs_get_priv(pdev);
|
||||||
|
|
||||||
|
cancel_delayed_work_sync(&priv->work);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct usbhs_private usbhs0_private = {
|
||||||
|
.usbcrcaddr = 0xe605810c, /* USBCR2 */
|
||||||
|
.info = {
|
||||||
|
.platform_callback = {
|
||||||
|
.hardware_init = usbhs0_hardware_init,
|
||||||
|
.hardware_exit = usbhs0_hardware_exit,
|
||||||
|
.phy_reset = usbhs_phy_reset,
|
||||||
|
.get_id = usbhs0_get_id,
|
||||||
|
.get_vbus = usbhs_get_vbus,
|
||||||
|
},
|
||||||
|
.driver_param = {
|
||||||
|
.buswait_bwait = 4,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct resource usbhs0_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.name = "USBHS0",
|
||||||
|
.start = 0xe6890000,
|
||||||
|
.end = 0xe68900e6 - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = evt2irq(0x1ca0) /* USB0_USB0I0 */,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device usbhs0_device = {
|
||||||
|
.name = "renesas_usbhs",
|
||||||
|
.id = 0,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &usbhs0_private.info,
|
||||||
|
},
|
||||||
|
.num_resources = ARRAY_SIZE(usbhs0_resources),
|
||||||
|
.resource = usbhs0_resources,
|
||||||
|
};
|
||||||
|
|
||||||
|
/* USBHS1 is connected to CN31 which takes a USB Mini-AB plug
|
||||||
|
*
|
||||||
|
* Use J30 to select between Host and Function. This setting
|
||||||
|
* can however not be detected by software. Hotplug of USBHS1
|
||||||
|
* is provided via IRQ8.
|
||||||
|
*/
|
||||||
|
#define IRQ8 evt2irq(0x0300)
|
||||||
|
|
||||||
|
/* USBHS1 USB Host support via r8a66597_hcd */
|
||||||
static void usb1_host_port_power(int port, int power)
|
static void usb1_host_port_power(int port, int power)
|
||||||
{
|
{
|
||||||
if (!power) /* only power-on is supported for now */
|
if (!power) /* only power-on is supported for now */
|
||||||
@ -579,9 +693,9 @@ static struct r8a66597_platdata usb1_host_data = {
|
|||||||
|
|
||||||
static struct resource usb1_host_resources[] = {
|
static struct resource usb1_host_resources[] = {
|
||||||
[0] = {
|
[0] = {
|
||||||
.name = "USBHS",
|
.name = "USBHS1",
|
||||||
.start = 0xE68B0000,
|
.start = 0xe68b0000,
|
||||||
.end = 0xE68B00E6 - 1,
|
.end = 0xe68b00e6 - 1,
|
||||||
.flags = IORESOURCE_MEM,
|
.flags = IORESOURCE_MEM,
|
||||||
},
|
},
|
||||||
[1] = {
|
[1] = {
|
||||||
@ -602,37 +716,14 @@ static struct platform_device usb1_host_device = {
|
|||||||
.resource = usb1_host_resources,
|
.resource = usb1_host_resources,
|
||||||
};
|
};
|
||||||
|
|
||||||
/* USB1 (Function) */
|
/* USBHS1 USB Function support via renesas_usbhs */
|
||||||
|
|
||||||
#define USB_PHY_MODE (1 << 4)
|
#define USB_PHY_MODE (1 << 4)
|
||||||
#define USB_PHY_INT_EN ((1 << 3) | (1 << 2))
|
#define USB_PHY_INT_EN ((1 << 3) | (1 << 2))
|
||||||
#define USB_PHY_ON (1 << 1)
|
#define USB_PHY_ON (1 << 1)
|
||||||
#define USB_PHY_OFF (1 << 0)
|
#define USB_PHY_OFF (1 << 0)
|
||||||
#define USB_PHY_INT_CLR (USB_PHY_ON | USB_PHY_OFF)
|
#define USB_PHY_INT_CLR (USB_PHY_ON | USB_PHY_OFF)
|
||||||
|
|
||||||
struct usbhs_private {
|
|
||||||
unsigned int irq;
|
|
||||||
unsigned int usbphyaddr;
|
|
||||||
unsigned int usbcrcaddr;
|
|
||||||
struct renesas_usbhs_platform_info info;
|
|
||||||
};
|
|
||||||
|
|
||||||
#define usbhs_get_priv(pdev) \
|
|
||||||
container_of(renesas_usbhs_get_info(pdev), \
|
|
||||||
struct usbhs_private, info)
|
|
||||||
|
|
||||||
#define usbhs_is_connected(priv) \
|
|
||||||
(!((1 << 7) & __raw_readw(priv->usbcrcaddr)))
|
|
||||||
|
|
||||||
static int usbhs1_get_id(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
return USBHS_GADGET;
|
|
||||||
}
|
|
||||||
|
|
||||||
static int usbhs1_get_vbus(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
return usbhs_is_connected(usbhs_get_priv(pdev));
|
|
||||||
}
|
|
||||||
|
|
||||||
static irqreturn_t usbhs1_interrupt(int irq, void *data)
|
static irqreturn_t usbhs1_interrupt(int irq, void *data)
|
||||||
{
|
{
|
||||||
struct platform_device *pdev = data;
|
struct platform_device *pdev = data;
|
||||||
@ -654,12 +745,10 @@ static int usbhs1_hardware_init(struct platform_device *pdev)
|
|||||||
struct usbhs_private *priv = usbhs_get_priv(pdev);
|
struct usbhs_private *priv = usbhs_get_priv(pdev);
|
||||||
int ret;
|
int ret;
|
||||||
|
|
||||||
irq_set_irq_type(priv->irq, IRQ_TYPE_LEVEL_HIGH);
|
|
||||||
|
|
||||||
/* clear interrupt status */
|
/* clear interrupt status */
|
||||||
__raw_writew(USB_PHY_MODE | USB_PHY_INT_CLR, priv->usbphyaddr);
|
__raw_writew(USB_PHY_MODE | USB_PHY_INT_CLR, priv->usbphyaddr);
|
||||||
|
|
||||||
ret = request_irq(priv->irq, usbhs1_interrupt, 0,
|
ret = request_irq(IRQ8, usbhs1_interrupt, IRQF_TRIGGER_HIGH,
|
||||||
dev_name(&pdev->dev), pdev);
|
dev_name(&pdev->dev), pdev);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
dev_err(&pdev->dev, "request_irq err\n");
|
dev_err(&pdev->dev, "request_irq err\n");
|
||||||
@ -679,15 +768,12 @@ static void usbhs1_hardware_exit(struct platform_device *pdev)
|
|||||||
/* clear interrupt status */
|
/* clear interrupt status */
|
||||||
__raw_writew(USB_PHY_MODE | USB_PHY_INT_CLR, priv->usbphyaddr);
|
__raw_writew(USB_PHY_MODE | USB_PHY_INT_CLR, priv->usbphyaddr);
|
||||||
|
|
||||||
free_irq(priv->irq, pdev);
|
free_irq(IRQ8, pdev);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void usbhs1_phy_reset(struct platform_device *pdev)
|
static int usbhs1_get_id(struct platform_device *pdev)
|
||||||
{
|
{
|
||||||
struct usbhs_private *priv = usbhs_get_priv(pdev);
|
return USBHS_GADGET;
|
||||||
|
|
||||||
/* init phy */
|
|
||||||
__raw_writew(0x8a0a, priv->usbcrcaddr);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static u32 usbhs1_pipe_cfg[] = {
|
static u32 usbhs1_pipe_cfg[] = {
|
||||||
@ -710,16 +796,15 @@ static u32 usbhs1_pipe_cfg[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
static struct usbhs_private usbhs1_private = {
|
static struct usbhs_private usbhs1_private = {
|
||||||
.irq = evt2irq(0x0300), /* IRQ8 */
|
.usbphyaddr = 0xe60581e2, /* USBPHY1INTAP */
|
||||||
.usbphyaddr = 0xE60581E2, /* USBPHY1INTAP */
|
.usbcrcaddr = 0xe6058130, /* USBCR4 */
|
||||||
.usbcrcaddr = 0xE6058130, /* USBCR4 */
|
|
||||||
.info = {
|
.info = {
|
||||||
.platform_callback = {
|
.platform_callback = {
|
||||||
.hardware_init = usbhs1_hardware_init,
|
.hardware_init = usbhs1_hardware_init,
|
||||||
.hardware_exit = usbhs1_hardware_exit,
|
.hardware_exit = usbhs1_hardware_exit,
|
||||||
.phy_reset = usbhs1_phy_reset,
|
|
||||||
.get_id = usbhs1_get_id,
|
.get_id = usbhs1_get_id,
|
||||||
.get_vbus = usbhs1_get_vbus,
|
.phy_reset = usbhs_phy_reset,
|
||||||
|
.get_vbus = usbhs_get_vbus,
|
||||||
},
|
},
|
||||||
.driver_param = {
|
.driver_param = {
|
||||||
.buswait_bwait = 4,
|
.buswait_bwait = 4,
|
||||||
@ -731,9 +816,9 @@ static struct usbhs_private usbhs1_private = {
|
|||||||
|
|
||||||
static struct resource usbhs1_resources[] = {
|
static struct resource usbhs1_resources[] = {
|
||||||
[0] = {
|
[0] = {
|
||||||
.name = "USBHS",
|
.name = "USBHS1",
|
||||||
.start = 0xE68B0000,
|
.start = 0xe68b0000,
|
||||||
.end = 0xE68B00E6 - 1,
|
.end = 0xe68b00e6 - 1,
|
||||||
.flags = IORESOURCE_MEM,
|
.flags = IORESOURCE_MEM,
|
||||||
},
|
},
|
||||||
[1] = {
|
[1] = {
|
||||||
@ -752,7 +837,6 @@ static struct platform_device usbhs1_device = {
|
|||||||
.resource = usbhs1_resources,
|
.resource = usbhs1_resources,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
/* LED */
|
/* LED */
|
||||||
static struct gpio_led mackerel_leds[] = {
|
static struct gpio_led mackerel_leds[] = {
|
||||||
{
|
{
|
||||||
@ -1203,6 +1287,7 @@ static struct platform_device *mackerel_devices[] __initdata = {
|
|||||||
&nor_flash_device,
|
&nor_flash_device,
|
||||||
&smc911x_device,
|
&smc911x_device,
|
||||||
&lcdc_device,
|
&lcdc_device,
|
||||||
|
&usbhs0_device,
|
||||||
&usb1_host_device,
|
&usb1_host_device,
|
||||||
&usbhs1_device,
|
&usbhs1_device,
|
||||||
&leds_device,
|
&leds_device,
|
||||||
@ -1301,6 +1386,7 @@ static void __init mackerel_map_io(void)
|
|||||||
|
|
||||||
#define GPIO_PORT9CR 0xE6051009
|
#define GPIO_PORT9CR 0xE6051009
|
||||||
#define GPIO_PORT10CR 0xE605100A
|
#define GPIO_PORT10CR 0xE605100A
|
||||||
|
#define GPIO_PORT167CR 0xE60520A7
|
||||||
#define GPIO_PORT168CR 0xE60520A8
|
#define GPIO_PORT168CR 0xE60520A8
|
||||||
#define SRCR4 0xe61580bc
|
#define SRCR4 0xe61580bc
|
||||||
#define USCCR1 0xE6058144
|
#define USCCR1 0xE6058144
|
||||||
@ -1354,17 +1440,17 @@ static void __init mackerel_init(void)
|
|||||||
gpio_request(GPIO_PORT151, NULL); /* LCDDON */
|
gpio_request(GPIO_PORT151, NULL); /* LCDDON */
|
||||||
gpio_direction_output(GPIO_PORT151, 1);
|
gpio_direction_output(GPIO_PORT151, 1);
|
||||||
|
|
||||||
/* USB enable */
|
/* USBHS0 */
|
||||||
gpio_request(GPIO_FN_VBUS0_1, NULL);
|
gpio_request(GPIO_FN_VBUS0_0, NULL);
|
||||||
gpio_request(GPIO_FN_IDIN_1_18, NULL);
|
gpio_pull_down(GPIO_PORT168CR); /* VBUS0_0 pull down */
|
||||||
gpio_request(GPIO_FN_PWEN_1_115, NULL);
|
|
||||||
gpio_request(GPIO_FN_OVCN_1_114, NULL);
|
|
||||||
gpio_request(GPIO_FN_EXTLP_1, NULL);
|
|
||||||
gpio_request(GPIO_FN_OVCN2_1, NULL);
|
|
||||||
gpio_pull_down(GPIO_PORT168CR);
|
|
||||||
|
|
||||||
/* setup USB phy */
|
/* USBHS1 */
|
||||||
__raw_writew(0x8a0a, 0xE6058130); /* USBCR4 */
|
gpio_request(GPIO_FN_VBUS0_1, NULL);
|
||||||
|
gpio_pull_down(GPIO_PORT167CR); /* VBUS0_1 pull down */
|
||||||
|
gpio_request(GPIO_FN_IDIN_1_113, NULL);
|
||||||
|
|
||||||
|
/* USB phy tweak to make the r8a66597_hcd host driver work */
|
||||||
|
__raw_writew(0x8a0a, 0xe6058130); /* USBCR4 */
|
||||||
|
|
||||||
/* enable FSI2 port A (ak4643) */
|
/* enable FSI2 port A (ak4643) */
|
||||||
gpio_request(GPIO_FN_FSIAIBT, NULL);
|
gpio_request(GPIO_FN_FSIAIBT, NULL);
|
||||||
|
@ -250,6 +250,11 @@ static irqreturn_t sh73a0_intcs_demux(int irq, void *dev_id)
|
|||||||
return IRQ_HANDLED;
|
return IRQ_HANDLED;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static int sh73a0_set_wake(struct irq_data *data, unsigned int on)
|
||||||
|
{
|
||||||
|
return 0; /* always allow wakeup */
|
||||||
|
}
|
||||||
|
|
||||||
void __init sh73a0_init_irq(void)
|
void __init sh73a0_init_irq(void)
|
||||||
{
|
{
|
||||||
void __iomem *gic_dist_base = __io(0xf0001000);
|
void __iomem *gic_dist_base = __io(0xf0001000);
|
||||||
@ -257,6 +262,7 @@ void __init sh73a0_init_irq(void)
|
|||||||
void __iomem *intevtsa = ioremap_nocache(0xffd20100, PAGE_SIZE);
|
void __iomem *intevtsa = ioremap_nocache(0xffd20100, PAGE_SIZE);
|
||||||
|
|
||||||
gic_init(0, 29, gic_dist_base, gic_cpu_base);
|
gic_init(0, 29, gic_dist_base, gic_cpu_base);
|
||||||
|
gic_arch_extn.irq_set_wake = sh73a0_set_wake;
|
||||||
|
|
||||||
register_intc_controller(&intcs_desc);
|
register_intc_controller(&intcs_desc);
|
||||||
|
|
||||||
|
@ -38,7 +38,7 @@ static struct plat_sci_port scif0_platform_data = {
|
|||||||
.flags = UPF_BOOT_AUTOCONF,
|
.flags = UPF_BOOT_AUTOCONF,
|
||||||
.scscr = SCSCR_RE | SCSCR_TE,
|
.scscr = SCSCR_RE | SCSCR_TE,
|
||||||
.scbrr_algo_id = SCBRR_ALGO_4,
|
.scbrr_algo_id = SCBRR_ALGO_4,
|
||||||
.type = PORT_SCIF,
|
.type = PORT_SCIFA,
|
||||||
.irqs = { evt2irq(0xc00), evt2irq(0xc00),
|
.irqs = { evt2irq(0xc00), evt2irq(0xc00),
|
||||||
evt2irq(0xc00), evt2irq(0xc00) },
|
evt2irq(0xc00), evt2irq(0xc00) },
|
||||||
};
|
};
|
||||||
@ -57,7 +57,7 @@ static struct plat_sci_port scif1_platform_data = {
|
|||||||
.flags = UPF_BOOT_AUTOCONF,
|
.flags = UPF_BOOT_AUTOCONF,
|
||||||
.scscr = SCSCR_RE | SCSCR_TE,
|
.scscr = SCSCR_RE | SCSCR_TE,
|
||||||
.scbrr_algo_id = SCBRR_ALGO_4,
|
.scbrr_algo_id = SCBRR_ALGO_4,
|
||||||
.type = PORT_SCIF,
|
.type = PORT_SCIFA,
|
||||||
.irqs = { evt2irq(0xc20), evt2irq(0xc20),
|
.irqs = { evt2irq(0xc20), evt2irq(0xc20),
|
||||||
evt2irq(0xc20), evt2irq(0xc20) },
|
evt2irq(0xc20), evt2irq(0xc20) },
|
||||||
};
|
};
|
||||||
@ -76,7 +76,7 @@ static struct plat_sci_port scif2_platform_data = {
|
|||||||
.flags = UPF_BOOT_AUTOCONF,
|
.flags = UPF_BOOT_AUTOCONF,
|
||||||
.scscr = SCSCR_RE | SCSCR_TE,
|
.scscr = SCSCR_RE | SCSCR_TE,
|
||||||
.scbrr_algo_id = SCBRR_ALGO_4,
|
.scbrr_algo_id = SCBRR_ALGO_4,
|
||||||
.type = PORT_SCIF,
|
.type = PORT_SCIFA,
|
||||||
.irqs = { evt2irq(0xc40), evt2irq(0xc40),
|
.irqs = { evt2irq(0xc40), evt2irq(0xc40),
|
||||||
evt2irq(0xc40), evt2irq(0xc40) },
|
evt2irq(0xc40), evt2irq(0xc40) },
|
||||||
};
|
};
|
||||||
@ -95,7 +95,7 @@ static struct plat_sci_port scif3_platform_data = {
|
|||||||
.flags = UPF_BOOT_AUTOCONF,
|
.flags = UPF_BOOT_AUTOCONF,
|
||||||
.scscr = SCSCR_RE | SCSCR_TE,
|
.scscr = SCSCR_RE | SCSCR_TE,
|
||||||
.scbrr_algo_id = SCBRR_ALGO_4,
|
.scbrr_algo_id = SCBRR_ALGO_4,
|
||||||
.type = PORT_SCIF,
|
.type = PORT_SCIFA,
|
||||||
.irqs = { evt2irq(0xc60), evt2irq(0xc60),
|
.irqs = { evt2irq(0xc60), evt2irq(0xc60),
|
||||||
evt2irq(0xc60), evt2irq(0xc60) },
|
evt2irq(0xc60), evt2irq(0xc60) },
|
||||||
};
|
};
|
||||||
@ -114,7 +114,7 @@ static struct plat_sci_port scif4_platform_data = {
|
|||||||
.flags = UPF_BOOT_AUTOCONF,
|
.flags = UPF_BOOT_AUTOCONF,
|
||||||
.scscr = SCSCR_RE | SCSCR_TE,
|
.scscr = SCSCR_RE | SCSCR_TE,
|
||||||
.scbrr_algo_id = SCBRR_ALGO_4,
|
.scbrr_algo_id = SCBRR_ALGO_4,
|
||||||
.type = PORT_SCIF,
|
.type = PORT_SCIFA,
|
||||||
.irqs = { evt2irq(0xd20), evt2irq(0xd20),
|
.irqs = { evt2irq(0xd20), evt2irq(0xd20),
|
||||||
evt2irq(0xd20), evt2irq(0xd20) },
|
evt2irq(0xd20), evt2irq(0xd20) },
|
||||||
};
|
};
|
||||||
@ -133,7 +133,7 @@ static struct plat_sci_port scif5_platform_data = {
|
|||||||
.flags = UPF_BOOT_AUTOCONF,
|
.flags = UPF_BOOT_AUTOCONF,
|
||||||
.scscr = SCSCR_RE | SCSCR_TE,
|
.scscr = SCSCR_RE | SCSCR_TE,
|
||||||
.scbrr_algo_id = SCBRR_ALGO_4,
|
.scbrr_algo_id = SCBRR_ALGO_4,
|
||||||
.type = PORT_SCIF,
|
.type = PORT_SCIFA,
|
||||||
.irqs = { evt2irq(0xd40), evt2irq(0xd40),
|
.irqs = { evt2irq(0xd40), evt2irq(0xd40),
|
||||||
evt2irq(0xd40), evt2irq(0xd40) },
|
evt2irq(0xd40), evt2irq(0xd40) },
|
||||||
};
|
};
|
||||||
@ -152,7 +152,7 @@ static struct plat_sci_port scif6_platform_data = {
|
|||||||
.flags = UPF_BOOT_AUTOCONF,
|
.flags = UPF_BOOT_AUTOCONF,
|
||||||
.scscr = SCSCR_RE | SCSCR_TE,
|
.scscr = SCSCR_RE | SCSCR_TE,
|
||||||
.scbrr_algo_id = SCBRR_ALGO_4,
|
.scbrr_algo_id = SCBRR_ALGO_4,
|
||||||
.type = PORT_SCIF,
|
.type = PORT_SCIFB,
|
||||||
.irqs = { evt2irq(0xd60), evt2irq(0xd60),
|
.irqs = { evt2irq(0xd60), evt2irq(0xd60),
|
||||||
evt2irq(0xd60), evt2irq(0xd60) },
|
evt2irq(0xd60), evt2irq(0xd60) },
|
||||||
};
|
};
|
||||||
|
@ -24,6 +24,8 @@
|
|||||||
|
|
||||||
#include <mach/irqs.h>
|
#include <mach/irqs.h>
|
||||||
|
|
||||||
|
#include "board-harmony.h"
|
||||||
|
|
||||||
#define PMC_CTRL 0x0
|
#define PMC_CTRL 0x0
|
||||||
#define PMC_CTRL_INTR_LOW (1 << 17)
|
#define PMC_CTRL_INTR_LOW (1 << 17)
|
||||||
|
|
||||||
@ -98,7 +100,7 @@ static struct tps6586x_platform_data tps_platform = {
|
|||||||
.irq_base = TEGRA_NR_IRQS,
|
.irq_base = TEGRA_NR_IRQS,
|
||||||
.num_subdevs = ARRAY_SIZE(tps_devs),
|
.num_subdevs = ARRAY_SIZE(tps_devs),
|
||||||
.subdevs = tps_devs,
|
.subdevs = tps_devs,
|
||||||
.gpio_base = TEGRA_NR_GPIOS,
|
.gpio_base = HARMONY_GPIO_TPS6586X(0),
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct i2c_board_info __initdata harmony_regulators[] = {
|
static struct i2c_board_info __initdata harmony_regulators[] = {
|
||||||
|
@ -17,7 +17,8 @@
|
|||||||
#ifndef _MACH_TEGRA_BOARD_HARMONY_H
|
#ifndef _MACH_TEGRA_BOARD_HARMONY_H
|
||||||
#define _MACH_TEGRA_BOARD_HARMONY_H
|
#define _MACH_TEGRA_BOARD_HARMONY_H
|
||||||
|
|
||||||
#define HARMONY_GPIO_WM8903(_x_) (TEGRA_NR_GPIOS + (_x_))
|
#define HARMONY_GPIO_TPS6586X(_x_) (TEGRA_NR_GPIOS + (_x_))
|
||||||
|
#define HARMONY_GPIO_WM8903(_x_) (HARMONY_GPIO_TPS6586X(4) + (_x_))
|
||||||
|
|
||||||
#define TEGRA_GPIO_SD2_CD TEGRA_GPIO_PI5
|
#define TEGRA_GPIO_SD2_CD TEGRA_GPIO_PI5
|
||||||
#define TEGRA_GPIO_SD2_WP TEGRA_GPIO_PH1
|
#define TEGRA_GPIO_SD2_WP TEGRA_GPIO_PH1
|
||||||
|
@ -31,7 +31,7 @@ struct clk {
|
|||||||
bool reset;
|
bool reset;
|
||||||
__u16 clk_val;
|
__u16 clk_val;
|
||||||
__s8 usecount;
|
__s8 usecount;
|
||||||
__u32 res_reg;
|
void __iomem * res_reg;
|
||||||
__u16 res_mask;
|
__u16 res_mask;
|
||||||
|
|
||||||
bool hw_ctrld;
|
bool hw_ctrld;
|
||||||
|
@ -18,6 +18,12 @@
|
|||||||
* the defines are used for setting up the I/O memory mapping.
|
* the defines are used for setting up the I/O memory mapping.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#ifdef __ASSEMBLER__
|
||||||
|
#define IOMEM(a) (a)
|
||||||
|
#else
|
||||||
|
#define IOMEM(a) (void __iomem *) a
|
||||||
|
#endif
|
||||||
|
|
||||||
/* NAND Flash CS0 */
|
/* NAND Flash CS0 */
|
||||||
#define U300_NAND_CS0_PHYS_BASE 0x80000000
|
#define U300_NAND_CS0_PHYS_BASE 0x80000000
|
||||||
|
|
||||||
@ -47,13 +53,6 @@
|
|||||||
#define U300_SEMI_CONFIG_BASE 0x30000000
|
#define U300_SEMI_CONFIG_BASE 0x30000000
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/*
|
|
||||||
* All the following peripherals are specified at their PHYSICAL address,
|
|
||||||
* so if you need to access them (in the kernel), you MUST use the macros
|
|
||||||
* defined in <asm/io.h> to map to the IO_ADDRESS_AHB() IO_ADDRESS_FAST()
|
|
||||||
* etc.
|
|
||||||
*/
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* AHB peripherals
|
* AHB peripherals
|
||||||
*/
|
*/
|
||||||
@ -63,11 +62,11 @@
|
|||||||
|
|
||||||
/* Vectored Interrupt Controller 0, servicing 32 interrupts */
|
/* Vectored Interrupt Controller 0, servicing 32 interrupts */
|
||||||
#define U300_INTCON0_BASE (U300_AHB_PER_PHYS_BASE+0x1000)
|
#define U300_INTCON0_BASE (U300_AHB_PER_PHYS_BASE+0x1000)
|
||||||
#define U300_INTCON0_VBASE (U300_AHB_PER_VIRT_BASE+0x1000)
|
#define U300_INTCON0_VBASE IOMEM(U300_AHB_PER_VIRT_BASE+0x1000)
|
||||||
|
|
||||||
/* Vectored Interrupt Controller 1, servicing 32 interrupts */
|
/* Vectored Interrupt Controller 1, servicing 32 interrupts */
|
||||||
#define U300_INTCON1_BASE (U300_AHB_PER_PHYS_BASE+0x2000)
|
#define U300_INTCON1_BASE (U300_AHB_PER_PHYS_BASE+0x2000)
|
||||||
#define U300_INTCON1_VBASE (U300_AHB_PER_VIRT_BASE+0x2000)
|
#define U300_INTCON1_VBASE IOMEM(U300_AHB_PER_VIRT_BASE+0x2000)
|
||||||
|
|
||||||
/* Memory Stick Pro (MSPRO) controller */
|
/* Memory Stick Pro (MSPRO) controller */
|
||||||
#define U300_MSPRO_BASE (U300_AHB_PER_PHYS_BASE+0x3000)
|
#define U300_MSPRO_BASE (U300_AHB_PER_PHYS_BASE+0x3000)
|
||||||
@ -115,7 +114,7 @@
|
|||||||
|
|
||||||
/* SYSCON */
|
/* SYSCON */
|
||||||
#define U300_SYSCON_BASE (U300_SLOW_PER_PHYS_BASE+0x1000)
|
#define U300_SYSCON_BASE (U300_SLOW_PER_PHYS_BASE+0x1000)
|
||||||
#define U300_SYSCON_VBASE (U300_SLOW_PER_VIRT_BASE+0x1000)
|
#define U300_SYSCON_VBASE IOMEM(U300_SLOW_PER_VIRT_BASE+0x1000)
|
||||||
|
|
||||||
/* Watchdog */
|
/* Watchdog */
|
||||||
#define U300_WDOG_BASE (U300_SLOW_PER_PHYS_BASE+0x2000)
|
#define U300_WDOG_BASE (U300_SLOW_PER_PHYS_BASE+0x2000)
|
||||||
@ -125,7 +124,7 @@
|
|||||||
|
|
||||||
/* APP side special timer */
|
/* APP side special timer */
|
||||||
#define U300_TIMER_APP_BASE (U300_SLOW_PER_PHYS_BASE+0x4000)
|
#define U300_TIMER_APP_BASE (U300_SLOW_PER_PHYS_BASE+0x4000)
|
||||||
#define U300_TIMER_APP_VBASE (U300_SLOW_PER_VIRT_BASE+0x4000)
|
#define U300_TIMER_APP_VBASE IOMEM(U300_SLOW_PER_VIRT_BASE+0x4000)
|
||||||
|
|
||||||
/* Keypad */
|
/* Keypad */
|
||||||
#define U300_KEYPAD_BASE (U300_SLOW_PER_PHYS_BASE+0x5000)
|
#define U300_KEYPAD_BASE (U300_SLOW_PER_PHYS_BASE+0x5000)
|
||||||
@ -181,5 +180,4 @@
|
|||||||
* Virtual accessor macros for static devices
|
* Virtual accessor macros for static devices
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -411,8 +411,7 @@ static void __init u300_timer_init(void)
|
|||||||
/* Use general purpose timer 2 as clock source */
|
/* Use general purpose timer 2 as clock source */
|
||||||
if (clocksource_mmio_init(U300_TIMER_APP_VBASE + U300_TIMER_APP_GPT2CC,
|
if (clocksource_mmio_init(U300_TIMER_APP_VBASE + U300_TIMER_APP_GPT2CC,
|
||||||
"GPT2", rate, 300, 32, clocksource_mmio_readl_up))
|
"GPT2", rate, 300, 32, clocksource_mmio_readl_up))
|
||||||
printk(KERN_ERR "timer: failed to initialize clock "
|
pr_err("timer: failed to initialize U300 clock source\n");
|
||||||
"source %s\n", clocksource_u300_1mhz.name);
|
|
||||||
|
|
||||||
clockevents_calc_mult_shift(&clockevent_u300_1mhz,
|
clockevents_calc_mult_shift(&clockevent_u300_1mhz,
|
||||||
rate, APPTIMER_MIN_RANGE);
|
rate, APPTIMER_MIN_RANGE);
|
||||||
|
@ -159,6 +159,9 @@ static void __init db8500_add_gpios(void)
|
|||||||
/* No custom data yet */
|
/* No custom data yet */
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (cpu_is_u8500v2())
|
||||||
|
pdata.supports_sleepmode = true;
|
||||||
|
|
||||||
dbx500_add_gpios(ARRAY_AND_SIZE(db8500_gpio_base),
|
dbx500_add_gpios(ARRAY_AND_SIZE(db8500_gpio_base),
|
||||||
IRQ_DB8500_GPIO0, &pdata);
|
IRQ_DB8500_GPIO0, &pdata);
|
||||||
}
|
}
|
||||||
|
@ -46,12 +46,6 @@ static struct map_desc v2m_io_desc[] __initdata = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static void __init v2m_init_early(void)
|
|
||||||
{
|
|
||||||
ct_desc->init_early();
|
|
||||||
versatile_sched_clock_init(MMIO_P2V(V2M_SYS_24MHZ), 24000000);
|
|
||||||
}
|
|
||||||
|
|
||||||
static void __init v2m_timer_init(void)
|
static void __init v2m_timer_init(void)
|
||||||
{
|
{
|
||||||
u32 scctrl;
|
u32 scctrl;
|
||||||
@ -365,6 +359,13 @@ static struct clk_lookup v2m_lookups[] = {
|
|||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static void __init v2m_init_early(void)
|
||||||
|
{
|
||||||
|
ct_desc->init_early();
|
||||||
|
clkdev_add_table(v2m_lookups, ARRAY_SIZE(v2m_lookups));
|
||||||
|
versatile_sched_clock_init(MMIO_P2V(V2M_SYS_24MHZ), 24000000);
|
||||||
|
}
|
||||||
|
|
||||||
static void v2m_power_off(void)
|
static void v2m_power_off(void)
|
||||||
{
|
{
|
||||||
if (v2m_cfg_write(SYS_CFG_SHUTDOWN | SYS_CFG_SITE_MB, 0))
|
if (v2m_cfg_write(SYS_CFG_SHUTDOWN | SYS_CFG_SITE_MB, 0))
|
||||||
@ -418,8 +419,6 @@ static void __init v2m_init(void)
|
|||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
clkdev_add_table(v2m_lookups, ARRAY_SIZE(v2m_lookups));
|
|
||||||
|
|
||||||
platform_device_register(&v2m_pcie_i2c_device);
|
platform_device_register(&v2m_pcie_i2c_device);
|
||||||
platform_device_register(&v2m_ddc_i2c_device);
|
platform_device_register(&v2m_ddc_i2c_device);
|
||||||
platform_device_register(&v2m_flash_device);
|
platform_device_register(&v2m_flash_device);
|
||||||
|
@ -24,7 +24,9 @@ DEFINE_PER_CPU(struct mm_struct *, current_mm);
|
|||||||
|
|
||||||
/*
|
/*
|
||||||
* We fork()ed a process, and we need a new context for the child
|
* We fork()ed a process, and we need a new context for the child
|
||||||
* to run in.
|
* to run in. We reserve version 0 for initial tasks so we will
|
||||||
|
* always allocate an ASID. The ASID 0 is reserved for the TTBR
|
||||||
|
* register changing sequence.
|
||||||
*/
|
*/
|
||||||
void __init_new_context(struct task_struct *tsk, struct mm_struct *mm)
|
void __init_new_context(struct task_struct *tsk, struct mm_struct *mm)
|
||||||
{
|
{
|
||||||
@ -34,11 +36,8 @@ void __init_new_context(struct task_struct *tsk, struct mm_struct *mm)
|
|||||||
|
|
||||||
static void flush_context(void)
|
static void flush_context(void)
|
||||||
{
|
{
|
||||||
u32 ttb;
|
/* set the reserved ASID before flushing the TLB */
|
||||||
/* Copy TTBR1 into TTBR0 */
|
asm("mcr p15, 0, %0, c13, c0, 1\n" : : "r" (0));
|
||||||
asm volatile("mrc p15, 0, %0, c2, c0, 1\n"
|
|
||||||
"mcr p15, 0, %0, c2, c0, 0"
|
|
||||||
: "=r" (ttb));
|
|
||||||
isb();
|
isb();
|
||||||
local_flush_tlb_all();
|
local_flush_tlb_all();
|
||||||
if (icache_is_vivt_asid_tagged()) {
|
if (icache_is_vivt_asid_tagged()) {
|
||||||
@ -94,7 +93,7 @@ static void reset_context(void *info)
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
smp_rmb();
|
smp_rmb();
|
||||||
asid = cpu_last_asid + cpu;
|
asid = cpu_last_asid + cpu + 1;
|
||||||
|
|
||||||
flush_context();
|
flush_context();
|
||||||
set_mm_context(mm, asid);
|
set_mm_context(mm, asid);
|
||||||
@ -144,13 +143,13 @@ void __new_context(struct mm_struct *mm)
|
|||||||
* to start a new version and flush the TLB.
|
* to start a new version and flush the TLB.
|
||||||
*/
|
*/
|
||||||
if (unlikely((asid & ~ASID_MASK) == 0)) {
|
if (unlikely((asid & ~ASID_MASK) == 0)) {
|
||||||
asid = cpu_last_asid + smp_processor_id();
|
asid = cpu_last_asid + smp_processor_id() + 1;
|
||||||
flush_context();
|
flush_context();
|
||||||
#ifdef CONFIG_SMP
|
#ifdef CONFIG_SMP
|
||||||
smp_wmb();
|
smp_wmb();
|
||||||
smp_call_function(reset_context, NULL, 1);
|
smp_call_function(reset_context, NULL, 1);
|
||||||
#endif
|
#endif
|
||||||
cpu_last_asid += NR_CPUS - 1;
|
cpu_last_asid += NR_CPUS;
|
||||||
}
|
}
|
||||||
|
|
||||||
set_mm_context(mm, asid);
|
set_mm_context(mm, asid);
|
||||||
|
@ -330,6 +330,12 @@ void __init arm_memblock_init(struct meminfo *mi, struct machine_desc *mdesc)
|
|||||||
memblock_reserve(__pa(_stext), _end - _stext);
|
memblock_reserve(__pa(_stext), _end - _stext);
|
||||||
#endif
|
#endif
|
||||||
#ifdef CONFIG_BLK_DEV_INITRD
|
#ifdef CONFIG_BLK_DEV_INITRD
|
||||||
|
if (phys_initrd_size &&
|
||||||
|
!memblock_is_region_memory(phys_initrd_start, phys_initrd_size)) {
|
||||||
|
pr_err("INITRD: 0x%08lx+0x%08lx is not a memory region - disabling initrd\n",
|
||||||
|
phys_initrd_start, phys_initrd_size);
|
||||||
|
phys_initrd_start = phys_initrd_size = 0;
|
||||||
|
}
|
||||||
if (phys_initrd_size &&
|
if (phys_initrd_size &&
|
||||||
memblock_is_region_reserved(phys_initrd_start, phys_initrd_size)) {
|
memblock_is_region_reserved(phys_initrd_start, phys_initrd_size)) {
|
||||||
pr_err("INITRD: 0x%08lx+0x%08lx overlaps in-use memory region - disabling initrd\n",
|
pr_err("INITRD: 0x%08lx+0x%08lx overlaps in-use memory region - disabling initrd\n",
|
||||||
@ -635,7 +641,8 @@ void __init mem_init(void)
|
|||||||
" modules : 0x%08lx - 0x%08lx (%4ld MB)\n"
|
" modules : 0x%08lx - 0x%08lx (%4ld MB)\n"
|
||||||
" .init : 0x%p" " - 0x%p" " (%4d kB)\n"
|
" .init : 0x%p" " - 0x%p" " (%4d kB)\n"
|
||||||
" .text : 0x%p" " - 0x%p" " (%4d kB)\n"
|
" .text : 0x%p" " - 0x%p" " (%4d kB)\n"
|
||||||
" .data : 0x%p" " - 0x%p" " (%4d kB)\n",
|
" .data : 0x%p" " - 0x%p" " (%4d kB)\n"
|
||||||
|
" .bss : 0x%p" " - 0x%p" " (%4d kB)\n",
|
||||||
|
|
||||||
MLK(UL(CONFIG_VECTORS_BASE), UL(CONFIG_VECTORS_BASE) +
|
MLK(UL(CONFIG_VECTORS_BASE), UL(CONFIG_VECTORS_BASE) +
|
||||||
(PAGE_SIZE)),
|
(PAGE_SIZE)),
|
||||||
@ -657,7 +664,8 @@ void __init mem_init(void)
|
|||||||
|
|
||||||
MLK_ROUNDUP(__init_begin, __init_end),
|
MLK_ROUNDUP(__init_begin, __init_end),
|
||||||
MLK_ROUNDUP(_text, _etext),
|
MLK_ROUNDUP(_text, _etext),
|
||||||
MLK_ROUNDUP(_sdata, _edata));
|
MLK_ROUNDUP(_sdata, _edata),
|
||||||
|
MLK_ROUNDUP(__bss_start, __bss_stop));
|
||||||
|
|
||||||
#undef MLK
|
#undef MLK
|
||||||
#undef MLM
|
#undef MLM
|
||||||
|
@ -146,7 +146,7 @@ __arm7tdmi_proc_info:
|
|||||||
.long 0
|
.long 0
|
||||||
.long 0
|
.long 0
|
||||||
.long v4_cache_fns
|
.long v4_cache_fns
|
||||||
.size __arm7tdmi_proc_info, . - __arm7dmi_proc_info
|
.size __arm7tdmi_proc_info, . - __arm7tdmi_proc_info
|
||||||
|
|
||||||
.type __triscenda7_proc_info, #object
|
.type __triscenda7_proc_info, #object
|
||||||
__triscenda7_proc_info:
|
__triscenda7_proc_info:
|
||||||
|
@ -116,7 +116,7 @@ __arm9tdmi_proc_info:
|
|||||||
.long 0
|
.long 0
|
||||||
.long 0
|
.long 0
|
||||||
.long v4_cache_fns
|
.long v4_cache_fns
|
||||||
.size __arm9tdmi_proc_info, . - __arm9dmi_proc_info
|
.size __arm9tdmi_proc_info, . - __arm9tdmi_proc_info
|
||||||
|
|
||||||
.type __p2001_proc_info, #object
|
.type __p2001_proc_info, #object
|
||||||
__p2001_proc_info:
|
__p2001_proc_info:
|
||||||
|
@ -108,16 +108,18 @@ ENTRY(cpu_v7_switch_mm)
|
|||||||
#ifdef CONFIG_ARM_ERRATA_430973
|
#ifdef CONFIG_ARM_ERRATA_430973
|
||||||
mcr p15, 0, r2, c7, c5, 6 @ flush BTAC/BTB
|
mcr p15, 0, r2, c7, c5, 6 @ flush BTAC/BTB
|
||||||
#endif
|
#endif
|
||||||
mrc p15, 0, r2, c2, c0, 1 @ load TTB 1
|
#ifdef CONFIG_ARM_ERRATA_754322
|
||||||
mcr p15, 0, r2, c2, c0, 0 @ into TTB 0
|
dsb
|
||||||
|
#endif
|
||||||
|
mcr p15, 0, r2, c13, c0, 1 @ set reserved context ID
|
||||||
|
isb
|
||||||
|
1: mcr p15, 0, r0, c2, c0, 0 @ set TTB 0
|
||||||
isb
|
isb
|
||||||
#ifdef CONFIG_ARM_ERRATA_754322
|
#ifdef CONFIG_ARM_ERRATA_754322
|
||||||
dsb
|
dsb
|
||||||
#endif
|
#endif
|
||||||
mcr p15, 0, r1, c13, c0, 1 @ set context ID
|
mcr p15, 0, r1, c13, c0, 1 @ set context ID
|
||||||
isb
|
isb
|
||||||
mcr p15, 0, r0, c2, c0, 0 @ set TTB 0
|
|
||||||
isb
|
|
||||||
#endif
|
#endif
|
||||||
mov pc, lr
|
mov pc, lr
|
||||||
ENDPROC(cpu_v7_switch_mm)
|
ENDPROC(cpu_v7_switch_mm)
|
||||||
|
@ -139,7 +139,7 @@ static struct sdma_script_start_addrs addr_imx35_to2 = {
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CONFIG_SOC_IMX51
|
#ifdef CONFIG_SOC_IMX51
|
||||||
static struct sdma_script_start_addrs addr_imx51_to1 = {
|
static struct sdma_script_start_addrs addr_imx51 = {
|
||||||
.ap_2_ap_addr = 642,
|
.ap_2_ap_addr = 642,
|
||||||
.uart_2_mcu_addr = 817,
|
.uart_2_mcu_addr = 817,
|
||||||
.mcu_2_app_addr = 747,
|
.mcu_2_app_addr = 747,
|
||||||
@ -196,7 +196,9 @@ static int __init imxXX_add_imx_dma(void)
|
|||||||
|
|
||||||
#if defined(CONFIG_SOC_IMX51)
|
#if defined(CONFIG_SOC_IMX51)
|
||||||
if (cpu_is_mx51()) {
|
if (cpu_is_mx51()) {
|
||||||
imx51_imx_sdma_data.pdata.script_addrs = &addr_imx51_to1;
|
int to_version = mx51_revision() >> 4;
|
||||||
|
imx51_imx_sdma_data.pdata.to_version = to_version;
|
||||||
|
imx51_imx_sdma_data.pdata.script_addrs = &addr_imx51;
|
||||||
ret = imx_add_imx_sdma(&imx51_imx_sdma_data);
|
ret = imx_add_imx_sdma(&imx51_imx_sdma_data);
|
||||||
} else
|
} else
|
||||||
#endif
|
#endif
|
||||||
|
@ -90,6 +90,7 @@ struct nmk_gpio_platform_data {
|
|||||||
int num_gpio;
|
int num_gpio;
|
||||||
u32 (*get_secondary_status)(unsigned int bank);
|
u32 (*get_secondary_status)(unsigned int bank);
|
||||||
void (*set_ioforce)(bool enable);
|
void (*set_ioforce)(bool enable);
|
||||||
|
bool supports_sleepmode;
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif /* __ASM_PLAT_GPIO_H */
|
#endif /* __ASM_PLAT_GPIO_H */
|
||||||
|
@ -11,6 +11,7 @@
|
|||||||
|
|
||||||
#include <linux/mtd/map.h>
|
#include <linux/mtd/map.h>
|
||||||
|
|
||||||
|
struct platform_device;
|
||||||
extern void omap1_set_vpp(struct platform_device *pdev, int enable);
|
extern void omap1_set_vpp(struct platform_device *pdev, int enable);
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
@ -29,9 +29,6 @@ struct iovm_struct {
|
|||||||
* lower 16 bit is used for h/w and upper 16 bit is for s/w.
|
* lower 16 bit is used for h/w and upper 16 bit is for s/w.
|
||||||
*/
|
*/
|
||||||
#define IOVMF_SW_SHIFT 16
|
#define IOVMF_SW_SHIFT 16
|
||||||
#define IOVMF_HW_SIZE (1 << IOVMF_SW_SHIFT)
|
|
||||||
#define IOVMF_HW_MASK (IOVMF_HW_SIZE - 1)
|
|
||||||
#define IOVMF_SW_MASK (~IOVMF_HW_MASK)UL
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* iovma: h/w flags derived from cam and ram attribute
|
* iovma: h/w flags derived from cam and ram attribute
|
||||||
|
@ -101,6 +101,9 @@ struct omap_mmc_platform_data {
|
|||||||
/* If using power_saving and the MMC power is not to go off */
|
/* If using power_saving and the MMC power is not to go off */
|
||||||
unsigned no_off:1;
|
unsigned no_off:1;
|
||||||
|
|
||||||
|
/* eMMC does not handle power off when not in sleep state */
|
||||||
|
unsigned no_regulator_off_init:1;
|
||||||
|
|
||||||
/* Regulator off remapped to sleep */
|
/* Regulator off remapped to sleep */
|
||||||
unsigned vcc_aux_disable_is_sleep:1;
|
unsigned vcc_aux_disable_is_sleep:1;
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user