Merge branch 'master' into upstream
This commit is contained in:
commit
dbe1ab9514
|
@ -0,0 +1,77 @@
|
||||||
|
This directory attempts to document the ABI between the Linux kernel and
|
||||||
|
userspace, and the relative stability of these interfaces. Due to the
|
||||||
|
everchanging nature of Linux, and the differing maturity levels, these
|
||||||
|
interfaces should be used by userspace programs in different ways.
|
||||||
|
|
||||||
|
We have four different levels of ABI stability, as shown by the four
|
||||||
|
different subdirectories in this location. Interfaces may change levels
|
||||||
|
of stability according to the rules described below.
|
||||||
|
|
||||||
|
The different levels of stability are:
|
||||||
|
|
||||||
|
stable/
|
||||||
|
This directory documents the interfaces that the developer has
|
||||||
|
defined to be stable. Userspace programs are free to use these
|
||||||
|
interfaces with no restrictions, and backward compatibility for
|
||||||
|
them will be guaranteed for at least 2 years. Most interfaces
|
||||||
|
(like syscalls) are expected to never change and always be
|
||||||
|
available.
|
||||||
|
|
||||||
|
testing/
|
||||||
|
This directory documents interfaces that are felt to be stable,
|
||||||
|
as the main development of this interface has been completed.
|
||||||
|
The interface can be changed to add new features, but the
|
||||||
|
current interface will not break by doing this, unless grave
|
||||||
|
errors or security problems are found in them. Userspace
|
||||||
|
programs can start to rely on these interfaces, but they must be
|
||||||
|
aware of changes that can occur before these interfaces move to
|
||||||
|
be marked stable. Programs that use these interfaces are
|
||||||
|
strongly encouraged to add their name to the description of
|
||||||
|
these interfaces, so that the kernel developers can easily
|
||||||
|
notify them if any changes occur (see the description of the
|
||||||
|
layout of the files below for details on how to do this.)
|
||||||
|
|
||||||
|
obsolete/
|
||||||
|
This directory documents interfaces that are still remaining in
|
||||||
|
the kernel, but are marked to be removed at some later point in
|
||||||
|
time. The description of the interface will document the reason
|
||||||
|
why it is obsolete and when it can be expected to be removed.
|
||||||
|
The file Documentation/feature-removal-schedule.txt may describe
|
||||||
|
some of these interfaces, giving a schedule for when they will
|
||||||
|
be removed.
|
||||||
|
|
||||||
|
removed/
|
||||||
|
This directory contains a list of the old interfaces that have
|
||||||
|
been removed from the kernel.
|
||||||
|
|
||||||
|
Every file in these directories will contain the following information:
|
||||||
|
|
||||||
|
What: Short description of the interface
|
||||||
|
Date: Date created
|
||||||
|
KernelVersion: Kernel version this feature first showed up in.
|
||||||
|
Contact: Primary contact for this interface (may be a mailing list)
|
||||||
|
Description: Long description of the interface and how to use it.
|
||||||
|
Users: All users of this interface who wish to be notified when
|
||||||
|
it changes. This is very important for interfaces in
|
||||||
|
the "testing" stage, so that kernel developers can work
|
||||||
|
with userspace developers to ensure that things do not
|
||||||
|
break in ways that are unacceptable. It is also
|
||||||
|
important to get feedback for these interfaces to make
|
||||||
|
sure they are working in a proper way and do not need to
|
||||||
|
be changed further.
|
||||||
|
|
||||||
|
|
||||||
|
How things move between levels:
|
||||||
|
|
||||||
|
Interfaces in stable may move to obsolete, as long as the proper
|
||||||
|
notification is given.
|
||||||
|
|
||||||
|
Interfaces may be removed from obsolete and the kernel as long as the
|
||||||
|
documented amount of time has gone by.
|
||||||
|
|
||||||
|
Interfaces in the testing state can move to the stable state when the
|
||||||
|
developers feel they are finished. They cannot be removed from the
|
||||||
|
kernel tree without going through the obsolete state first.
|
||||||
|
|
||||||
|
It's up to the developer to place their interfaces in the category they
|
||||||
|
wish for it to start out in.
|
|
@ -0,0 +1,13 @@
|
||||||
|
What: devfs
|
||||||
|
Date: July 2005
|
||||||
|
Contact: Greg Kroah-Hartman <gregkh@suse.de>
|
||||||
|
Description:
|
||||||
|
devfs has been unmaintained for a number of years, has unfixable
|
||||||
|
races, contains a naming policy within the kernel that is
|
||||||
|
against the LSB, and can be replaced by using udev.
|
||||||
|
The files fs/devfs/*, include/linux/devfs_fs*.h will be removed,
|
||||||
|
along with the the assorted devfs function calls throughout the
|
||||||
|
kernel tree.
|
||||||
|
|
||||||
|
Users:
|
||||||
|
|
|
@ -0,0 +1,10 @@
|
||||||
|
What: The kernel syscall interface
|
||||||
|
Description:
|
||||||
|
This interface matches much of the POSIX interface and is based
|
||||||
|
on it and other Unix based interfaces. It will only be added to
|
||||||
|
over time, and not have things removed from it.
|
||||||
|
|
||||||
|
Note that this interface is different for every architecture
|
||||||
|
that Linux supports. Please see the architecture-specific
|
||||||
|
documentation for details on the syscall numbers that are to be
|
||||||
|
mapped to each syscall.
|
|
@ -0,0 +1,30 @@
|
||||||
|
What: /sys/module
|
||||||
|
Description:
|
||||||
|
The /sys/module tree consists of the following structure:
|
||||||
|
|
||||||
|
/sys/module/MODULENAME
|
||||||
|
The name of the module that is in the kernel. This
|
||||||
|
module name will show up either if the module is built
|
||||||
|
directly into the kernel, or if it is loaded as a
|
||||||
|
dyanmic module.
|
||||||
|
|
||||||
|
/sys/module/MODULENAME/parameters
|
||||||
|
This directory contains individual files that are each
|
||||||
|
individual parameters of the module that are able to be
|
||||||
|
changed at runtime. See the individual module
|
||||||
|
documentation as to the contents of these parameters and
|
||||||
|
what they accomplish.
|
||||||
|
|
||||||
|
Note: The individual parameter names and values are not
|
||||||
|
considered stable, only the fact that they will be
|
||||||
|
placed in this location within sysfs. See the
|
||||||
|
individual driver documentation for details as to the
|
||||||
|
stability of the different parameters.
|
||||||
|
|
||||||
|
/sys/module/MODULENAME/refcnt
|
||||||
|
If the module is able to be unloaded from the kernel, this file
|
||||||
|
will contain the current reference count of the module.
|
||||||
|
|
||||||
|
Note: If the module is built into the kernel, or if the
|
||||||
|
CONFIG_MODULE_UNLOAD kernel configuration value is not enabled,
|
||||||
|
this file will not be present.
|
|
@ -0,0 +1,16 @@
|
||||||
|
What: /sys/class/
|
||||||
|
Date: Febuary 2006
|
||||||
|
Contact: Greg Kroah-Hartman <gregkh@suse.de>
|
||||||
|
Description:
|
||||||
|
The /sys/class directory will consist of a group of
|
||||||
|
subdirectories describing individual classes of devices
|
||||||
|
in the kernel. The individual directories will consist
|
||||||
|
of either subdirectories, or symlinks to other
|
||||||
|
directories.
|
||||||
|
|
||||||
|
All programs that use this directory tree must be able
|
||||||
|
to handle both subdirectories or symlinks in order to
|
||||||
|
work properly.
|
||||||
|
|
||||||
|
Users:
|
||||||
|
udev <linux-hotplug-devel@lists.sourceforge.net>
|
|
@ -0,0 +1,25 @@
|
||||||
|
What: /sys/devices
|
||||||
|
Date: February 2006
|
||||||
|
Contact: Greg Kroah-Hartman <gregkh@suse.de>
|
||||||
|
Description:
|
||||||
|
The /sys/devices tree contains a snapshot of the
|
||||||
|
internal state of the kernel device tree. Devices will
|
||||||
|
be added and removed dynamically as the machine runs,
|
||||||
|
and between different kernel versions, the layout of the
|
||||||
|
devices within this tree will change.
|
||||||
|
|
||||||
|
Please do not rely on the format of this tree because of
|
||||||
|
this. If a program wishes to find different things in
|
||||||
|
the tree, please use the /sys/class structure and rely
|
||||||
|
on the symlinks there to point to the proper location
|
||||||
|
within the /sys/devices tree of the individual devices.
|
||||||
|
Or rely on the uevent messages to notify programs of
|
||||||
|
devices being added and removed from this tree to find
|
||||||
|
the location of those devices.
|
||||||
|
|
||||||
|
Note that sometimes not all devices along the directory
|
||||||
|
chain will have emitted uevent messages, so userspace
|
||||||
|
programs must be able to handle such occurrences.
|
||||||
|
|
||||||
|
Users:
|
||||||
|
udev <linux-hotplug-devel@lists.sourceforge.net>
|
|
@ -0,0 +1,61 @@
|
||||||
|
README on the ADC/Touchscreen Controller
|
||||||
|
========================================
|
||||||
|
|
||||||
|
The LH79524 and LH7A404 include a built-in Analog to Digital
|
||||||
|
controller (ADC) that is used to process input from a touchscreen.
|
||||||
|
The driver only implements a four-wire touch panel protocol.
|
||||||
|
|
||||||
|
The touchscreen driver is maintenance free except for the pen-down or
|
||||||
|
touch threshold. Some resistive displays and board combinations may
|
||||||
|
require tuning of this threshold. The driver exposes some of it's
|
||||||
|
internal state in the sys filesystem. If the kernel is configured
|
||||||
|
with it, CONFIG_SYSFS, and sysfs is mounted at /sys, there will be a
|
||||||
|
directory
|
||||||
|
|
||||||
|
/sys/devices/platform/adc-lh7.0
|
||||||
|
|
||||||
|
containing these files.
|
||||||
|
|
||||||
|
-r--r--r-- 1 root root 4096 Jan 1 00:00 samples
|
||||||
|
-rw-r--r-- 1 root root 4096 Jan 1 00:00 threshold
|
||||||
|
-r--r--r-- 1 root root 4096 Jan 1 00:00 threshold_range
|
||||||
|
|
||||||
|
The threshold is the current touch threshold. It defaults to 750 on
|
||||||
|
most targets.
|
||||||
|
|
||||||
|
# cat threshold
|
||||||
|
750
|
||||||
|
|
||||||
|
The threshold_range contains the range of valid values for the
|
||||||
|
threshold. Values outside of this range will be silently ignored.
|
||||||
|
|
||||||
|
# cat threshold_range
|
||||||
|
0 1023
|
||||||
|
|
||||||
|
To change the threshold, write a value to the threshold file.
|
||||||
|
|
||||||
|
# echo 500 > threshold
|
||||||
|
# cat threshold
|
||||||
|
500
|
||||||
|
|
||||||
|
The samples file contains the most recently sampled values from the
|
||||||
|
ADC. There are 12. Below are typical of the last sampled values when
|
||||||
|
the pen has been released. The first two and last two samples are for
|
||||||
|
detecting whether or not the pen is down. The third through sixth are
|
||||||
|
X coordinate samples. The seventh through tenth are Y coordinate
|
||||||
|
samples.
|
||||||
|
|
||||||
|
# cat samples
|
||||||
|
1023 1023 0 0 0 0 530 529 530 529 1023 1023
|
||||||
|
|
||||||
|
To determine a reasonable threshold, press on the touch panel with an
|
||||||
|
appropriate stylus and read the values from samples.
|
||||||
|
|
||||||
|
# cat samples
|
||||||
|
1023 676 92 103 101 102 855 919 922 922 1023 679
|
||||||
|
|
||||||
|
The first and eleventh samples are discarded. Thus, the important
|
||||||
|
values are the second and twelfth which are used to determine if the
|
||||||
|
pen is down. When both are below the threshold, the driver registers
|
||||||
|
that the pen is down. When either is above the threshold, it
|
||||||
|
registers then pen is up.
|
|
@ -0,0 +1,59 @@
|
||||||
|
README on the LCD Panels
|
||||||
|
========================
|
||||||
|
|
||||||
|
Configuration options for several LCD panels, available from Logic PD,
|
||||||
|
are included in the kernel source. This README will help you
|
||||||
|
understand the configuration data and give you some guidance for
|
||||||
|
adding support for other panels if you wish.
|
||||||
|
|
||||||
|
|
||||||
|
lcd-panels.h
|
||||||
|
------------
|
||||||
|
|
||||||
|
There is no way, at present, to detect which panel is attached to the
|
||||||
|
system at runtime. Thus the kernel configuration is static. The file
|
||||||
|
arch/arm/mach-ld7a40x/lcd-panels.h (or similar) defines all of the
|
||||||
|
panel specific parameters.
|
||||||
|
|
||||||
|
It should be possible for this data to be shared among several device
|
||||||
|
families. The current layout may be insufficiently general, but it is
|
||||||
|
amenable to improvement.
|
||||||
|
|
||||||
|
|
||||||
|
PIXEL_CLOCK
|
||||||
|
-----------
|
||||||
|
|
||||||
|
The panel data sheets will give a range of acceptable pixel clocks.
|
||||||
|
The fundamental LCDCLK input frequency is divided down by a PCD
|
||||||
|
constant in field '.tim2'. It may happen that it is impossible to set
|
||||||
|
the pixel clock within this range. A clock which is too slow will
|
||||||
|
tend to flicker. For the highest quality image, set the clock as high
|
||||||
|
as possible.
|
||||||
|
|
||||||
|
|
||||||
|
MARGINS
|
||||||
|
-------
|
||||||
|
|
||||||
|
These values may be difficult to glean from the panel data sheet. In
|
||||||
|
the case of the Sharp panels, the upper margin is explicitly called
|
||||||
|
out as a specific number of lines from the top of the frame. The
|
||||||
|
other values may not matter as much as the panels tend to
|
||||||
|
automatically center the image.
|
||||||
|
|
||||||
|
|
||||||
|
Sync Sense
|
||||||
|
----------
|
||||||
|
|
||||||
|
The sense of the hsync and vsync pulses may be called out in the data
|
||||||
|
sheet. On one panel, the sense of these pulses determine the height
|
||||||
|
of the visible region on the panel. Most of the Sharp panels use
|
||||||
|
negative sense sync pulses set by the TIM2_IHS and TIM2_IVS bits in
|
||||||
|
'.tim2'.
|
||||||
|
|
||||||
|
|
||||||
|
Pel Layout
|
||||||
|
----------
|
||||||
|
|
||||||
|
The Sharp color TFT panels are all configured for 16 bit direct color
|
||||||
|
modes. The amba-lcd driver sets the pel mode to 565 for 5 bits of
|
||||||
|
each red and blue and 6 bits of green.
|
|
@ -49,11 +49,11 @@ Who: Paul E. McKenney <paulmck@us.ibm.com>
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
What: raw1394: requests of type RAW1394_REQ_ISO_SEND, RAW1394_REQ_ISO_LISTEN
|
What: raw1394: requests of type RAW1394_REQ_ISO_SEND, RAW1394_REQ_ISO_LISTEN
|
||||||
When: November 2005
|
When: November 2006
|
||||||
Why: Deprecated in favour of the new ioctl-based rawiso interface, which is
|
Why: Deprecated in favour of the new ioctl-based rawiso interface, which is
|
||||||
more efficient. You should really be using libraw1394 for raw1394
|
more efficient. You should really be using libraw1394 for raw1394
|
||||||
access anyway.
|
access anyway.
|
||||||
Who: Jody McIntyre <scjody@steamballoon.com>
|
Who: Jody McIntyre <scjody@modernduck.com>
|
||||||
|
|
||||||
---------------------------
|
---------------------------
|
||||||
|
|
||||||
|
|
|
@ -69,17 +69,135 @@ Prototypes:
|
||||||
int inotify_rm_watch (int fd, __u32 mask);
|
int inotify_rm_watch (int fd, __u32 mask);
|
||||||
|
|
||||||
|
|
||||||
(iii) Internal Kernel Implementation
|
(iii) Kernel Interface
|
||||||
|
|
||||||
Each inotify instance is associated with an inotify_device structure.
|
Inotify's kernel API consists a set of functions for managing watches and an
|
||||||
|
event callback.
|
||||||
|
|
||||||
|
To use the kernel API, you must first initialize an inotify instance with a set
|
||||||
|
of inotify_operations. You are given an opaque inotify_handle, which you use
|
||||||
|
for any further calls to inotify.
|
||||||
|
|
||||||
|
struct inotify_handle *ih = inotify_init(my_event_handler);
|
||||||
|
|
||||||
|
You must provide a function for processing events and a function for destroying
|
||||||
|
the inotify watch.
|
||||||
|
|
||||||
|
void handle_event(struct inotify_watch *watch, u32 wd, u32 mask,
|
||||||
|
u32 cookie, const char *name, struct inode *inode)
|
||||||
|
|
||||||
|
watch - the pointer to the inotify_watch that triggered this call
|
||||||
|
wd - the watch descriptor
|
||||||
|
mask - describes the event that occurred
|
||||||
|
cookie - an identifier for synchronizing events
|
||||||
|
name - the dentry name for affected files in a directory-based event
|
||||||
|
inode - the affected inode in a directory-based event
|
||||||
|
|
||||||
|
void destroy_watch(struct inotify_watch *watch)
|
||||||
|
|
||||||
|
You may add watches by providing a pre-allocated and initialized inotify_watch
|
||||||
|
structure and specifying the inode to watch along with an inotify event mask.
|
||||||
|
You must pin the inode during the call. You will likely wish to embed the
|
||||||
|
inotify_watch structure in a structure of your own which contains other
|
||||||
|
information about the watch. Once you add an inotify watch, it is immediately
|
||||||
|
subject to removal depending on filesystem events. You must grab a reference if
|
||||||
|
you depend on the watch hanging around after the call.
|
||||||
|
|
||||||
|
inotify_init_watch(&my_watch->iwatch);
|
||||||
|
inotify_get_watch(&my_watch->iwatch); // optional
|
||||||
|
s32 wd = inotify_add_watch(ih, &my_watch->iwatch, inode, mask);
|
||||||
|
inotify_put_watch(&my_watch->iwatch); // optional
|
||||||
|
|
||||||
|
You may use the watch descriptor (wd) or the address of the inotify_watch for
|
||||||
|
other inotify operations. You must not directly read or manipulate data in the
|
||||||
|
inotify_watch. Additionally, you must not call inotify_add_watch() more than
|
||||||
|
once for a given inotify_watch structure, unless you have first called either
|
||||||
|
inotify_rm_watch() or inotify_rm_wd().
|
||||||
|
|
||||||
|
To determine if you have already registered a watch for a given inode, you may
|
||||||
|
call inotify_find_watch(), which gives you both the wd and the watch pointer for
|
||||||
|
the inotify_watch, or an error if the watch does not exist.
|
||||||
|
|
||||||
|
wd = inotify_find_watch(ih, inode, &watchp);
|
||||||
|
|
||||||
|
You may use container_of() on the watch pointer to access your own data
|
||||||
|
associated with a given watch. When an existing watch is found,
|
||||||
|
inotify_find_watch() bumps the refcount before releasing its locks. You must
|
||||||
|
put that reference with:
|
||||||
|
|
||||||
|
put_inotify_watch(watchp);
|
||||||
|
|
||||||
|
Call inotify_find_update_watch() to update the event mask for an existing watch.
|
||||||
|
inotify_find_update_watch() returns the wd of the updated watch, or an error if
|
||||||
|
the watch does not exist.
|
||||||
|
|
||||||
|
wd = inotify_find_update_watch(ih, inode, mask);
|
||||||
|
|
||||||
|
An existing watch may be removed by calling either inotify_rm_watch() or
|
||||||
|
inotify_rm_wd().
|
||||||
|
|
||||||
|
int ret = inotify_rm_watch(ih, &my_watch->iwatch);
|
||||||
|
int ret = inotify_rm_wd(ih, wd);
|
||||||
|
|
||||||
|
A watch may be removed while executing your event handler with the following:
|
||||||
|
|
||||||
|
inotify_remove_watch_locked(ih, iwatch);
|
||||||
|
|
||||||
|
Call inotify_destroy() to remove all watches from your inotify instance and
|
||||||
|
release it. If there are no outstanding references, inotify_destroy() will call
|
||||||
|
your destroy_watch op for each watch.
|
||||||
|
|
||||||
|
inotify_destroy(ih);
|
||||||
|
|
||||||
|
When inotify removes a watch, it sends an IN_IGNORED event to your callback.
|
||||||
|
You may use this event as an indication to free the watch memory. Note that
|
||||||
|
inotify may remove a watch due to filesystem events, as well as by your request.
|
||||||
|
If you use IN_ONESHOT, inotify will remove the watch after the first event, at
|
||||||
|
which point you may call the final inotify_put_watch.
|
||||||
|
|
||||||
|
(iv) Kernel Interface Prototypes
|
||||||
|
|
||||||
|
struct inotify_handle *inotify_init(struct inotify_operations *ops);
|
||||||
|
|
||||||
|
inotify_init_watch(struct inotify_watch *watch);
|
||||||
|
|
||||||
|
s32 inotify_add_watch(struct inotify_handle *ih,
|
||||||
|
struct inotify_watch *watch,
|
||||||
|
struct inode *inode, u32 mask);
|
||||||
|
|
||||||
|
s32 inotify_find_watch(struct inotify_handle *ih, struct inode *inode,
|
||||||
|
struct inotify_watch **watchp);
|
||||||
|
|
||||||
|
s32 inotify_find_update_watch(struct inotify_handle *ih,
|
||||||
|
struct inode *inode, u32 mask);
|
||||||
|
|
||||||
|
int inotify_rm_wd(struct inotify_handle *ih, u32 wd);
|
||||||
|
|
||||||
|
int inotify_rm_watch(struct inotify_handle *ih,
|
||||||
|
struct inotify_watch *watch);
|
||||||
|
|
||||||
|
void inotify_remove_watch_locked(struct inotify_handle *ih,
|
||||||
|
struct inotify_watch *watch);
|
||||||
|
|
||||||
|
void inotify_destroy(struct inotify_handle *ih);
|
||||||
|
|
||||||
|
void get_inotify_watch(struct inotify_watch *watch);
|
||||||
|
void put_inotify_watch(struct inotify_watch *watch);
|
||||||
|
|
||||||
|
|
||||||
|
(v) Internal Kernel Implementation
|
||||||
|
|
||||||
|
Each inotify instance is represented by an inotify_handle structure.
|
||||||
|
Inotify's userspace consumers also have an inotify_device which is
|
||||||
|
associated with the inotify_handle, and on which events are queued.
|
||||||
|
|
||||||
Each watch is associated with an inotify_watch structure. Watches are chained
|
Each watch is associated with an inotify_watch structure. Watches are chained
|
||||||
off of each associated device and each associated inode.
|
off of each associated inotify_handle and each associated inode.
|
||||||
|
|
||||||
See fs/inotify.c for the locking and lifetime rules.
|
See fs/inotify.c and fs/inotify_user.c for the locking and lifetime rules.
|
||||||
|
|
||||||
|
|
||||||
(iv) Rationale
|
(vi) Rationale
|
||||||
|
|
||||||
Q: What is the design decision behind not tying the watch to the open fd of
|
Q: What is the design decision behind not tying the watch to the open fd of
|
||||||
the watched object?
|
the watched object?
|
||||||
|
@ -145,7 +263,7 @@ A: The poor user-space interface is the second biggest problem with dnotify.
|
||||||
file descriptor-based one that allows basic file I/O and poll/select.
|
file descriptor-based one that allows basic file I/O and poll/select.
|
||||||
Obtaining the fd and managing the watches could have been done either via a
|
Obtaining the fd and managing the watches could have been done either via a
|
||||||
device file or a family of new system calls. We decided to implement a
|
device file or a family of new system calls. We decided to implement a
|
||||||
family of system calls because that is the preffered approach for new kernel
|
family of system calls because that is the preferred approach for new kernel
|
||||||
interfaces. The only real difference was whether we wanted to use open(2)
|
interfaces. The only real difference was whether we wanted to use open(2)
|
||||||
and ioctl(2) or a couple of new system calls. System calls beat ioctls.
|
and ioctl(2) or a couple of new system calls. System calls beat ioctls.
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,59 @@
|
||||||
|
Kernel driver abituguru
|
||||||
|
=======================
|
||||||
|
|
||||||
|
Supported chips:
|
||||||
|
* Abit uGuru (Hardware Monitor part only)
|
||||||
|
Prefix: 'abituguru'
|
||||||
|
Addresses scanned: ISA 0x0E0
|
||||||
|
Datasheet: Not available, this driver is based on reverse engineering.
|
||||||
|
A "Datasheet" has been written based on the reverse engineering it
|
||||||
|
should be available in the same dir as this file under the name
|
||||||
|
abituguru-datasheet.
|
||||||
|
|
||||||
|
Authors:
|
||||||
|
Hans de Goede <j.w.r.degoede@hhs.nl>,
|
||||||
|
(Initial reverse engineering done by Olle Sandberg
|
||||||
|
<ollebull@gmail.com>)
|
||||||
|
|
||||||
|
|
||||||
|
Module Parameters
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
* force: bool Force detection. Note this parameter only causes the
|
||||||
|
detection to be skipped, if the uGuru can't be read
|
||||||
|
the module initialization (insmod) will still fail.
|
||||||
|
* fan_sensors: int Tell the driver how many fan speed sensors there are
|
||||||
|
on your motherboard. Default: 0 (autodetect).
|
||||||
|
* pwms: int Tell the driver how many fan speed controls (fan
|
||||||
|
pwms) your motherboard has. Default: 0 (autodetect).
|
||||||
|
* verbose: int How verbose should the driver be? (0-3):
|
||||||
|
0 normal output
|
||||||
|
1 + verbose error reporting
|
||||||
|
2 + sensors type probing info\n"
|
||||||
|
3 + retryable error reporting
|
||||||
|
Default: 2 (the driver is still in the testing phase)
|
||||||
|
|
||||||
|
Notice if you need any of the first three options above please insmod the
|
||||||
|
driver with verbose set to 3 and mail me <j.w.r.degoede@hhs.nl> the output of:
|
||||||
|
dmesg | grep abituguru
|
||||||
|
|
||||||
|
|
||||||
|
Description
|
||||||
|
-----------
|
||||||
|
|
||||||
|
This driver supports the hardware monitoring features of the Abit uGuru chip
|
||||||
|
found on Abit uGuru featuring motherboards (most modern Abit motherboards).
|
||||||
|
|
||||||
|
The uGuru chip in reality is a Winbond W83L950D in disguise (despite Abit
|
||||||
|
claiming it is "a new microprocessor designed by the ABIT Engineers").
|
||||||
|
Unfortunatly this doesn't help since the W83L950D is a generic
|
||||||
|
microcontroller with a custom Abit application running on it.
|
||||||
|
|
||||||
|
Despite Abit not releasing any information regarding the uGuru, Olle
|
||||||
|
Sandberg <ollebull@gmail.com> has managed to reverse engineer the sensor part
|
||||||
|
of the uGuru. Without his work this driver would not have been possible.
|
||||||
|
|
||||||
|
Known Issues
|
||||||
|
------------
|
||||||
|
|
||||||
|
The voltage and frequency control parts of the Abit uGuru are not supported.
|
|
@ -0,0 +1,312 @@
|
||||||
|
uGuru datasheet
|
||||||
|
===============
|
||||||
|
|
||||||
|
First of all, what I know about uGuru is no fact based on any help, hints or
|
||||||
|
datasheet from Abit. The data I have got on uGuru have I assembled through
|
||||||
|
my weak knowledge in "backwards engineering".
|
||||||
|
And just for the record, you may have noticed uGuru isn't a chip developed by
|
||||||
|
Abit, as they claim it to be. It's realy just an microprocessor (uC) created by
|
||||||
|
Winbond (W83L950D). And no, reading the manual for this specific uC or
|
||||||
|
mailing Windbond for help won't give any usefull data about uGuru, as it is
|
||||||
|
the program inside the uC that is responding to calls.
|
||||||
|
|
||||||
|
Olle Sandberg <ollebull@gmail.com>, 2005-05-25
|
||||||
|
|
||||||
|
|
||||||
|
Original version by Olle Sandberg who did the heavy lifting of the initial
|
||||||
|
reverse engineering. This version has been almost fully rewritten for clarity
|
||||||
|
and extended with write support and info on more databanks, the write support
|
||||||
|
is once again reverse engineered by Olle the additional databanks have been
|
||||||
|
reverse engineered by me. I would like to express my thanks to Olle, this
|
||||||
|
document and the Linux driver could not have been written without his efforts.
|
||||||
|
|
||||||
|
Note: because of the lack of specs only the sensors part of the uGuru is
|
||||||
|
described here and not the CPU / RAM / etc voltage & frequency control.
|
||||||
|
|
||||||
|
Hans de Goede <j.w.r.degoede@hhs.nl>, 28-01-2006
|
||||||
|
|
||||||
|
|
||||||
|
Detection
|
||||||
|
=========
|
||||||
|
|
||||||
|
As far as known the uGuru is always placed at and using the (ISA) I/O-ports
|
||||||
|
0xE0 and 0xE4, so we don't have to scan any port-range, just check what the two
|
||||||
|
ports are holding for detection. We will refer to 0xE0 as CMD (command-port)
|
||||||
|
and 0xE4 as DATA because Abit refers to them with these names.
|
||||||
|
|
||||||
|
If DATA holds 0x00 or 0x08 and CMD holds 0x00 or 0xAC an uGuru could be
|
||||||
|
present. We have to check for two different values at data-port, because
|
||||||
|
after a reboot uGuru will hold 0x00 here, but if the driver is removed and
|
||||||
|
later on attached again data-port will hold 0x08, more about this later.
|
||||||
|
|
||||||
|
After wider testing of the Linux kernel driver some variants of the uGuru have
|
||||||
|
turned up which will hold 0x00 instead of 0xAC at the CMD port, thus we also
|
||||||
|
have to test CMD for two different values. On these uGuru's DATA will initally
|
||||||
|
hold 0x09 and will only hold 0x08 after reading CMD first, so CMD must be read
|
||||||
|
first!
|
||||||
|
|
||||||
|
To be really sure an uGuru is present a test read of one or more register
|
||||||
|
sets should be done.
|
||||||
|
|
||||||
|
|
||||||
|
Reading / Writing
|
||||||
|
=================
|
||||||
|
|
||||||
|
Addressing
|
||||||
|
----------
|
||||||
|
|
||||||
|
The uGuru has a number of different addressing levels. The first addressing
|
||||||
|
level we will call banks. A bank holds data for one or more sensors. The data
|
||||||
|
in a bank for a sensor is one or more bytes large.
|
||||||
|
|
||||||
|
The number of bytes is fixed for a given bank, you should always read or write
|
||||||
|
that many bytes, reading / writing more will fail, the results when writing
|
||||||
|
less then the number of bytes for a given bank are undetermined.
|
||||||
|
|
||||||
|
See below for all known bank addresses, numbers of sensors in that bank,
|
||||||
|
number of bytes data per sensor and contents/meaning of those bytes.
|
||||||
|
|
||||||
|
Although both this document and the kernel driver have kept the sensor
|
||||||
|
terminoligy for the addressing within a bank this is not 100% correct, in
|
||||||
|
bank 0x24 for example the addressing within the bank selects a PWM output not
|
||||||
|
a sensor.
|
||||||
|
|
||||||
|
Notice that some banks have both a read and a write address this is how the
|
||||||
|
uGuru determines if a read from or a write to the bank is taking place, thus
|
||||||
|
when reading you should always use the read address and when writing the
|
||||||
|
write address. The write address is always one (1) more then the read address.
|
||||||
|
|
||||||
|
|
||||||
|
uGuru ready
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Before you can read from or write to the uGuru you must first put the uGuru
|
||||||
|
in "ready" mode.
|
||||||
|
|
||||||
|
To put the uGuru in ready mode first write 0x00 to DATA and then wait for DATA
|
||||||
|
to hold 0x09, DATA should read 0x09 within 250 read cycles.
|
||||||
|
|
||||||
|
Next CMD _must_ be read and should hold 0xAC, usually CMD will hold 0xAC the
|
||||||
|
first read but sometimes it takes a while before CMD holds 0xAC and thus it
|
||||||
|
has to be read a number of times (max 50).
|
||||||
|
|
||||||
|
After reading CMD, DATA should hold 0x08 which means that the uGuru is ready
|
||||||
|
for input. As above DATA will usually hold 0x08 the first read but not always.
|
||||||
|
This step can be skipped, but it is undetermined what happens if the uGuru has
|
||||||
|
not yet reported 0x08 at DATA and you proceed with writing a bank address.
|
||||||
|
|
||||||
|
|
||||||
|
Sending bank and sensor addresses to the uGuru
|
||||||
|
----------------------------------------------
|
||||||
|
|
||||||
|
First the uGuru must be in "ready" mode as described above, DATA should hold
|
||||||
|
0x08 indicating that the uGuru wants input, in this case the bank address.
|
||||||
|
|
||||||
|
Next write the bank address to DATA. After the bank address has been written
|
||||||
|
wait for to DATA to hold 0x08 again indicating that it wants / is ready for
|
||||||
|
more input (max 250 reads).
|
||||||
|
|
||||||
|
Once DATA holds 0x08 again write the sensor address to CMD.
|
||||||
|
|
||||||
|
|
||||||
|
Reading
|
||||||
|
-------
|
||||||
|
|
||||||
|
First send the bank and sensor addresses as described above.
|
||||||
|
Then for each byte of data you want to read wait for DATA to hold 0x01
|
||||||
|
which indicates that the uGuru is ready to be read (max 250 reads) and once
|
||||||
|
DATA holds 0x01 read the byte from CMD.
|
||||||
|
|
||||||
|
Once all bytes have been read data will hold 0x09, but there is no reason to
|
||||||
|
test for this. Notice that the number of bytes is bank address dependent see
|
||||||
|
above and below.
|
||||||
|
|
||||||
|
After completing a successfull read it is advised to put the uGuru back in
|
||||||
|
ready mode, so that it is ready for the next read / write cycle. This way
|
||||||
|
if your program / driver is unloaded and later loaded again the detection
|
||||||
|
algorithm described above will still work.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Writing
|
||||||
|
-------
|
||||||
|
|
||||||
|
First send the bank and sensor addresses as described above.
|
||||||
|
Then for each byte of data you want to write wait for DATA to hold 0x00
|
||||||
|
which indicates that the uGuru is ready to be written (max 250 reads) and
|
||||||
|
once DATA holds 0x00 write the byte to CMD.
|
||||||
|
|
||||||
|
Once all bytes have been written wait for DATA to hold 0x01 (max 250 reads)
|
||||||
|
don't ask why this is the way it is.
|
||||||
|
|
||||||
|
Once DATA holds 0x01 read CMD it should hold 0xAC now.
|
||||||
|
|
||||||
|
After completing a successfull write it is advised to put the uGuru back in
|
||||||
|
ready mode, so that it is ready for the next read / write cycle. This way
|
||||||
|
if your program / driver is unloaded and later loaded again the detection
|
||||||
|
algorithm described above will still work.
|
||||||
|
|
||||||
|
|
||||||
|
Gotchas
|
||||||
|
-------
|
||||||
|
|
||||||
|
After wider testing of the Linux kernel driver some variants of the uGuru have
|
||||||
|
turned up which do not hold 0x08 at DATA within 250 reads after writing the
|
||||||
|
bank address. With these versions this happens quite frequent, using larger
|
||||||
|
timeouts doesn't help, they just go offline for a second or 2, doing some
|
||||||
|
internal callibration or whatever. Your code should be prepared to handle
|
||||||
|
this and in case of no response in this specific case just goto sleep for a
|
||||||
|
while and then retry.
|
||||||
|
|
||||||
|
|
||||||
|
Address Map
|
||||||
|
===========
|
||||||
|
|
||||||
|
Bank 0x20 Alarms (R)
|
||||||
|
--------------------
|
||||||
|
This bank contains 0 sensors, iow the sensor address is ignored (but must be
|
||||||
|
written) just use 0. Bank 0x20 contains 3 bytes:
|
||||||
|
|
||||||
|
Byte 0:
|
||||||
|
This byte holds the alarm flags for sensor 0-7 of Sensor Bank1, with bit 0
|
||||||
|
corresponding to sensor 0, 1 to 1, etc.
|
||||||
|
|
||||||
|
Byte 1:
|
||||||
|
This byte holds the alarm flags for sensor 8-15 of Sensor Bank1, with bit 0
|
||||||
|
corresponding to sensor 8, 1 to 9, etc.
|
||||||
|
|
||||||
|
Byte 2:
|
||||||
|
This byte holds the alarm flags for sensor 0-5 of Sensor Bank2, with bit 0
|
||||||
|
corresponding to sensor 0, 1 to 1, etc.
|
||||||
|
|
||||||
|
|
||||||
|
Bank 0x21 Sensor Bank1 Values / Readings (R)
|
||||||
|
--------------------------------------------
|
||||||
|
This bank contains 16 sensors, for each sensor it contains 1 byte.
|
||||||
|
So far the following sensors are known to be available on all motherboards:
|
||||||
|
Sensor 0 CPU temp
|
||||||
|
Sensor 1 SYS temp
|
||||||
|
Sensor 3 CPU core volt
|
||||||
|
Sensor 4 DDR volt
|
||||||
|
Sensor 10 DDR Vtt volt
|
||||||
|
Sensor 15 PWM temp
|
||||||
|
|
||||||
|
Byte 0:
|
||||||
|
This byte holds the reading from the sensor. Sensors in Bank1 can be both
|
||||||
|
volt and temp sensors, this is motherboard specific. The uGuru however does
|
||||||
|
seem to know (be programmed with) what kindoff sensor is attached see Sensor
|
||||||
|
Bank1 Settings description.
|
||||||
|
|
||||||
|
Volt sensors use a linear scale, a reading 0 corresponds with 0 volt and a
|
||||||
|
reading of 255 with 3494 mV. The sensors for higher voltages however are
|
||||||
|
connected through a division circuit. The currently known division circuits
|
||||||
|
in use result in ranges of: 0-4361mV, 0-6248mV or 0-14510mV. 3.3 volt sources
|
||||||
|
use the 0-4361mV range, 5 volt the 0-6248mV and 12 volt the 0-14510mV .
|
||||||
|
|
||||||
|
Temp sensors also use a linear scale, a reading of 0 corresponds with 0 degree
|
||||||
|
Celsius and a reading of 255 with a reading of 255 degrees Celsius.
|
||||||
|
|
||||||
|
|
||||||
|
Bank 0x22 Sensor Bank1 Settings (R)
|
||||||
|
Bank 0x23 Sensor Bank1 Settings (W)
|
||||||
|
-----------------------------------
|
||||||
|
|
||||||
|
This bank contains 16 sensors, for each sensor it contains 3 bytes. Each
|
||||||
|
set of 3 bytes contains the settings for the sensor with the same sensor
|
||||||
|
address in Bank 0x21 .
|
||||||
|
|
||||||
|
Byte 0:
|
||||||
|
Alarm behaviour for the selected sensor. A 1 enables the described behaviour.
|
||||||
|
Bit 0: Give an alarm if measured temp is over the warning threshold (RW) *
|
||||||
|
Bit 1: Give an alarm if measured volt is over the max threshold (RW) **
|
||||||
|
Bit 2: Give an alarm if measured volt is under the min threshold (RW) **
|
||||||
|
Bit 3: Beep if alarm (RW)
|
||||||
|
Bit 4: 1 if alarm cause measured temp is over the warning threshold (R)
|
||||||
|
Bit 5: 1 if alarm cause measured volt is over the max threshold (R)
|
||||||
|
Bit 6: 1 if alarm cause measured volt is under the min threshold (R)
|
||||||
|
Bit 7: Volt sensor: Shutdown if alarm persist for more then 4 seconds (RW)
|
||||||
|
Temp sensor: Shutdown if temp is over the shutdown threshold (RW)
|
||||||
|
|
||||||
|
* This bit is only honored/used by the uGuru if a temp sensor is connected
|
||||||
|
** This bit is only honored/used by the uGuru if a volt sensor is connected
|
||||||
|
Note with some trickery this can be used to find out what kinda sensor is
|
||||||
|
detected see the Linux kernel driver for an example with many comments on
|
||||||
|
how todo this.
|
||||||
|
|
||||||
|
Byte 1:
|
||||||
|
Temp sensor: warning threshold (scale as bank 0x21)
|
||||||
|
Volt sensor: min threshold (scale as bank 0x21)
|
||||||
|
|
||||||
|
Byte 2:
|
||||||
|
Temp sensor: shutdown threshold (scale as bank 0x21)
|
||||||
|
Volt sensor: max threshold (scale as bank 0x21)
|
||||||
|
|
||||||
|
|
||||||
|
Bank 0x24 PWM outputs for FAN's (R)
|
||||||
|
Bank 0x25 PWM outputs for FAN's (W)
|
||||||
|
-----------------------------------
|
||||||
|
|
||||||
|
This bank contains 3 "sensors", for each sensor it contains 5 bytes.
|
||||||
|
Sensor 0 usually controls the CPU fan
|
||||||
|
Sensor 1 usually controls the NB (or chipset for single chip) fan
|
||||||
|
Sensor 2 usually controls the System fan
|
||||||
|
|
||||||
|
Byte 0:
|
||||||
|
Flag 0x80 to enable control, Fan runs at 100% when disabled.
|
||||||
|
low nibble (temp)sensor address at bank 0x21 used for control.
|
||||||
|
|
||||||
|
Byte 1:
|
||||||
|
0-255 = 0-12v (linear), specify voltage at which fan will rotate when under
|
||||||
|
low threshold temp (specified in byte 3)
|
||||||
|
|
||||||
|
Byte 2:
|
||||||
|
0-255 = 0-12v (linear), specify voltage at which fan will rotate when above
|
||||||
|
high threshold temp (specified in byte 4)
|
||||||
|
|
||||||
|
Byte 3:
|
||||||
|
Low threshold temp (scale as bank 0x21)
|
||||||
|
|
||||||
|
byte 4:
|
||||||
|
High threshold temp (scale as bank 0x21)
|
||||||
|
|
||||||
|
|
||||||
|
Bank 0x26 Sensors Bank2 Values / Readings (R)
|
||||||
|
---------------------------------------------
|
||||||
|
|
||||||
|
This bank contains 6 sensors (AFAIK), for each sensor it contains 1 byte.
|
||||||
|
So far the following sensors are known to be available on all motherboards:
|
||||||
|
Sensor 0: CPU fan speed
|
||||||
|
Sensor 1: NB (or chipset for single chip) fan speed
|
||||||
|
Sensor 2: SYS fan speed
|
||||||
|
|
||||||
|
Byte 0:
|
||||||
|
This byte holds the reading from the sensor. 0-255 = 0-15300 (linear)
|
||||||
|
|
||||||
|
|
||||||
|
Bank 0x27 Sensors Bank2 Settings (R)
|
||||||
|
Bank 0x28 Sensors Bank2 Settings (W)
|
||||||
|
------------------------------------
|
||||||
|
|
||||||
|
This bank contains 6 sensors (AFAIK), for each sensor it contains 2 bytes.
|
||||||
|
|
||||||
|
Byte 0:
|
||||||
|
Alarm behaviour for the selected sensor. A 1 enables the described behaviour.
|
||||||
|
Bit 0: Give an alarm if measured rpm is under the min threshold (RW)
|
||||||
|
Bit 3: Beep if alarm (RW)
|
||||||
|
Bit 7: Shutdown if alarm persist for more then 4 seconds (RW)
|
||||||
|
|
||||||
|
Byte 1:
|
||||||
|
min threshold (scale as bank 0x26)
|
||||||
|
|
||||||
|
|
||||||
|
Warning for the adventerous
|
||||||
|
===========================
|
||||||
|
|
||||||
|
A word of caution to those who want to experiment and see if they can figure
|
||||||
|
the voltage / clock programming out, I tried reading and only reading banks
|
||||||
|
0-0x30 with the reading code used for the sensor banks (0x20-0x28) and this
|
||||||
|
resulted in a _permanent_ reprogramming of the voltages, luckily I had the
|
||||||
|
sensors part configured so that it would shutdown my system on any out of spec
|
||||||
|
voltages which proprably safed my computer (after a reboot I managed to
|
||||||
|
immediatly enter the bios and reload the defaults). This probably means that
|
||||||
|
the read/write cycle for the non sensor part is different from the sensor part.
|
|
@ -0,0 +1,31 @@
|
||||||
|
Kernel driver lm70
|
||||||
|
==================
|
||||||
|
|
||||||
|
Supported chip:
|
||||||
|
* National Semiconductor LM70
|
||||||
|
Datasheet: http://www.national.com/pf/LM/LM70.html
|
||||||
|
|
||||||
|
Author:
|
||||||
|
Kaiwan N Billimoria <kaiwan@designergraphix.com>
|
||||||
|
|
||||||
|
Description
|
||||||
|
-----------
|
||||||
|
|
||||||
|
This driver implements support for the National Semiconductor LM70
|
||||||
|
temperature sensor.
|
||||||
|
|
||||||
|
The LM70 temperature sensor chip supports a single temperature sensor.
|
||||||
|
It communicates with a host processor (or microcontroller) via an
|
||||||
|
SPI/Microwire Bus interface.
|
||||||
|
|
||||||
|
Communication with the LM70 is simple: when the temperature is to be sensed,
|
||||||
|
the driver accesses the LM70 using SPI communication: 16 SCLK cycles
|
||||||
|
comprise the MOSI/MISO loop. At the end of the transfer, the 11-bit 2's
|
||||||
|
complement digital temperature (sent via the SIO line), is available in the
|
||||||
|
driver for interpretation. This driver makes use of the kernel's in-core
|
||||||
|
SPI support.
|
||||||
|
|
||||||
|
Thanks to
|
||||||
|
---------
|
||||||
|
Jean Delvare <khali@linux-fr.org> for mentoring the hwmon-side driver
|
||||||
|
development.
|
|
@ -7,6 +7,10 @@ Supported chips:
|
||||||
Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
|
Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
|
||||||
Datasheet: Publicly available at the National Semiconductor website
|
Datasheet: Publicly available at the National Semiconductor website
|
||||||
http://www.national.com/pf/LM/LM83.html
|
http://www.national.com/pf/LM/LM83.html
|
||||||
|
* National Semiconductor LM82
|
||||||
|
Addresses scanned: I2C 0x18 - 0x1a, 0x29 - 0x2b, 0x4c - 0x4e
|
||||||
|
Datasheet: Publicly available at the National Semiconductor website
|
||||||
|
http://www.national.com/pf/LM/LM82.html
|
||||||
|
|
||||||
|
|
||||||
Author: Jean Delvare <khali@linux-fr.org>
|
Author: Jean Delvare <khali@linux-fr.org>
|
||||||
|
@ -15,10 +19,11 @@ Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
The LM83 is a digital temperature sensor. It senses its own temperature as
|
The LM83 is a digital temperature sensor. It senses its own temperature as
|
||||||
well as the temperature of up to three external diodes. It is compatible
|
well as the temperature of up to three external diodes. The LM82 is
|
||||||
with many other devices such as the LM84 and all other ADM1021 clones.
|
a stripped down version of the LM83 that only supports one external diode.
|
||||||
The main difference between the LM83 and the LM84 in that the later can
|
Both are compatible with many other devices such as the LM84 and all
|
||||||
only sense the temperature of one external diode.
|
other ADM1021 clones. The main difference between the LM83 and the LM84
|
||||||
|
in that the later can only sense the temperature of one external diode.
|
||||||
|
|
||||||
Using the adm1021 driver for a LM83 should work, but only two temperatures
|
Using the adm1021 driver for a LM83 should work, but only two temperatures
|
||||||
will be reported instead of four.
|
will be reported instead of four.
|
||||||
|
@ -30,12 +35,16 @@ contact us. Note that the LM90 can easily be misdetected as a LM83.
|
||||||
|
|
||||||
Confirmed motherboards:
|
Confirmed motherboards:
|
||||||
SBS P014
|
SBS P014
|
||||||
|
SBS PSL09
|
||||||
|
|
||||||
Unconfirmed motherboards:
|
Unconfirmed motherboards:
|
||||||
Gigabyte GA-8IK1100
|
Gigabyte GA-8IK1100
|
||||||
Iwill MPX2
|
Iwill MPX2
|
||||||
Soltek SL-75DRV5
|
Soltek SL-75DRV5
|
||||||
|
|
||||||
|
The LM82 is confirmed to have been found on most AMD Geode reference
|
||||||
|
designs and test platforms.
|
||||||
|
|
||||||
The driver has been successfully tested by Magnus Forsström, who I'd
|
The driver has been successfully tested by Magnus Forsström, who I'd
|
||||||
like to thank here. More testers will be of course welcome.
|
like to thank here. More testers will be of course welcome.
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,102 @@
|
||||||
|
Kernel driver smsc47m192
|
||||||
|
========================
|
||||||
|
|
||||||
|
Supported chips:
|
||||||
|
* SMSC LPC47M192 and LPC47M997
|
||||||
|
Prefix: 'smsc47m192'
|
||||||
|
Addresses scanned: I2C 0x2c - 0x2d
|
||||||
|
Datasheet: The datasheet for LPC47M192 is publicly available from
|
||||||
|
http://www.smsc.com/
|
||||||
|
The LPC47M997 is compatible for hardware monitoring.
|
||||||
|
|
||||||
|
Author: Hartmut Rick <linux@rick.claranet.de>
|
||||||
|
Special thanks to Jean Delvare for careful checking
|
||||||
|
of the code and many helpful comments and suggestions.
|
||||||
|
|
||||||
|
|
||||||
|
Description
|
||||||
|
-----------
|
||||||
|
|
||||||
|
This driver implements support for the hardware sensor capabilities
|
||||||
|
of the SMSC LPC47M192 and LPC47M997 Super-I/O chips.
|
||||||
|
|
||||||
|
These chips support 3 temperature channels and 8 voltage inputs
|
||||||
|
as well as CPU voltage VID input.
|
||||||
|
|
||||||
|
They do also have fan monitoring and control capabilities, but the
|
||||||
|
these features are accessed via ISA bus and are not supported by this
|
||||||
|
driver. Use the 'smsc47m1' driver for fan monitoring and control.
|
||||||
|
|
||||||
|
Voltages and temperatures are measured by an 8-bit ADC, the resolution
|
||||||
|
of the temperatures is 1 bit per degree C.
|
||||||
|
Voltages are scaled such that the nominal voltage corresponds to
|
||||||
|
192 counts, i.e. 3/4 of the full range. Thus the available range for
|
||||||
|
each voltage channel is 0V ... 255/192*(nominal voltage), the resolution
|
||||||
|
is 1 bit per (nominal voltage)/192.
|
||||||
|
Both voltage and temperature values are scaled by 1000, the sys files
|
||||||
|
show voltages in mV and temperatures in units of 0.001 degC.
|
||||||
|
|
||||||
|
The +12V analog voltage input channel (in4_input) is multiplexed with
|
||||||
|
bit 4 of the encoded CPU voltage. This means that you either get
|
||||||
|
a +12V voltage measurement or a 5 bit CPU VID, but not both.
|
||||||
|
The default setting is to use the pin as 12V input, and use only 4 bit VID.
|
||||||
|
This driver assumes that the information in the configuration register
|
||||||
|
is correct, i.e. that the BIOS has updated the configuration if
|
||||||
|
the motherboard has this input wired to VID4.
|
||||||
|
|
||||||
|
The temperature and voltage readings are updated once every 1.5 seconds.
|
||||||
|
Reading them more often repeats the same values.
|
||||||
|
|
||||||
|
|
||||||
|
sysfs interface
|
||||||
|
---------------
|
||||||
|
|
||||||
|
in0_input - +2.5V voltage input
|
||||||
|
in1_input - CPU voltage input (nominal 2.25V)
|
||||||
|
in2_input - +3.3V voltage input
|
||||||
|
in3_input - +5V voltage input
|
||||||
|
in4_input - +12V voltage input (may be missing if used as VID4)
|
||||||
|
in5_input - Vcc voltage input (nominal 3.3V)
|
||||||
|
This is the supply voltage of the sensor chip itself.
|
||||||
|
in6_input - +1.5V voltage input
|
||||||
|
in7_input - +1.8V voltage input
|
||||||
|
|
||||||
|
in[0-7]_min,
|
||||||
|
in[0-7]_max - lower and upper alarm thresholds for in[0-7]_input reading
|
||||||
|
|
||||||
|
All voltages are read and written in mV.
|
||||||
|
|
||||||
|
in[0-7]_alarm - alarm flags for voltage inputs
|
||||||
|
These files read '1' in case of alarm, '0' otherwise.
|
||||||
|
|
||||||
|
temp1_input - chip temperature measured by on-chip diode
|
||||||
|
temp[2-3]_input - temperature measured by external diodes (one of these would
|
||||||
|
typically be wired to the diode inside the CPU)
|
||||||
|
|
||||||
|
temp[1-3]_min,
|
||||||
|
temp[1-3]_max - lower and upper alarm thresholds for temperatures
|
||||||
|
|
||||||
|
temp[1-3]_offset - temperature offset registers
|
||||||
|
The chip adds the offsets stored in these registers to
|
||||||
|
the corresponding temperature readings.
|
||||||
|
Note that temp1 and temp2 offsets share the same register,
|
||||||
|
they cannot both be different from zero at the same time.
|
||||||
|
Writing a non-zero number to one of them will reset the other
|
||||||
|
offset to zero.
|
||||||
|
|
||||||
|
All temperatures and offsets are read and written in
|
||||||
|
units of 0.001 degC.
|
||||||
|
|
||||||
|
temp[1-3]_alarm - alarm flags for temperature inputs, '1' in case of alarm,
|
||||||
|
'0' otherwise.
|
||||||
|
temp[2-3]_input_fault - diode fault flags for temperature inputs 2 and 3.
|
||||||
|
A fault is detected if the two pins for the corresponding
|
||||||
|
sensor are open or shorted, or any of the two is shorted
|
||||||
|
to ground or Vcc. '1' indicates a diode fault.
|
||||||
|
|
||||||
|
cpu0_vid - CPU voltage as received from the CPU
|
||||||
|
|
||||||
|
vrm - CPU VID standard used for decoding CPU voltage
|
||||||
|
|
||||||
|
The *_min, *_max, *_offset and vrm files can be read and
|
||||||
|
written, all others are read-only.
|
|
@ -3,15 +3,15 @@ Naming and data format standards for sysfs files
|
||||||
|
|
||||||
The libsensors library offers an interface to the raw sensors data
|
The libsensors library offers an interface to the raw sensors data
|
||||||
through the sysfs interface. See libsensors documentation and source for
|
through the sysfs interface. See libsensors documentation and source for
|
||||||
more further information. As of writing this document, libsensors
|
further information. As of writing this document, libsensors
|
||||||
(from lm_sensors 2.8.3) is heavily chip-dependant. Adding or updating
|
(from lm_sensors 2.8.3) is heavily chip-dependent. Adding or updating
|
||||||
support for any given chip requires modifying the library's code.
|
support for any given chip requires modifying the library's code.
|
||||||
This is because libsensors was written for the procfs interface
|
This is because libsensors was written for the procfs interface
|
||||||
older kernel modules were using, which wasn't standardized enough.
|
older kernel modules were using, which wasn't standardized enough.
|
||||||
Recent versions of libsensors (from lm_sensors 2.8.2 and later) have
|
Recent versions of libsensors (from lm_sensors 2.8.2 and later) have
|
||||||
support for the sysfs interface, though.
|
support for the sysfs interface, though.
|
||||||
|
|
||||||
The new sysfs interface was designed to be as chip-independant as
|
The new sysfs interface was designed to be as chip-independent as
|
||||||
possible.
|
possible.
|
||||||
|
|
||||||
Note that motherboards vary widely in the connections to sensor chips.
|
Note that motherboards vary widely in the connections to sensor chips.
|
||||||
|
@ -24,7 +24,7 @@ range using external resistors. Since the values of these resistors
|
||||||
can change from motherboard to motherboard, the conversions cannot be
|
can change from motherboard to motherboard, the conversions cannot be
|
||||||
hard coded into the driver and have to be done in user space.
|
hard coded into the driver and have to be done in user space.
|
||||||
|
|
||||||
For this reason, even if we aim at a chip-independant libsensors, it will
|
For this reason, even if we aim at a chip-independent libsensors, it will
|
||||||
still require a configuration file (e.g. /etc/sensors.conf) for proper
|
still require a configuration file (e.g. /etc/sensors.conf) for proper
|
||||||
values conversion, labeling of inputs and hiding of unused inputs.
|
values conversion, labeling of inputs and hiding of unused inputs.
|
||||||
|
|
||||||
|
@ -39,15 +39,16 @@ If you are developing a userspace application please send us feedback on
|
||||||
this standard.
|
this standard.
|
||||||
|
|
||||||
Note that this standard isn't completely established yet, so it is subject
|
Note that this standard isn't completely established yet, so it is subject
|
||||||
to changes, even important ones. One more reason to use the library instead
|
to changes. If you are writing a new hardware monitoring driver those
|
||||||
of accessing sysfs files directly.
|
features can't seem to fit in this interface, please contact us with your
|
||||||
|
extension proposal. Keep in mind that backward compatibility must be
|
||||||
|
preserved.
|
||||||
|
|
||||||
Each chip gets its own directory in the sysfs /sys/devices tree. To
|
Each chip gets its own directory in the sysfs /sys/devices tree. To
|
||||||
find all sensor chips, it is easier to follow the symlinks from
|
find all sensor chips, it is easier to follow the device symlinks from
|
||||||
/sys/i2c/devices/
|
/sys/class/hwmon/hwmon*.
|
||||||
|
|
||||||
All sysfs values are fixed point numbers. To get the true value of some
|
All sysfs values are fixed point numbers.
|
||||||
of the values, you should divide by the specified value.
|
|
||||||
|
|
||||||
There is only one value per file, unlike the older /proc specification.
|
There is only one value per file, unlike the older /proc specification.
|
||||||
The common scheme for files naming is: <type><number>_<item>. Usual
|
The common scheme for files naming is: <type><number>_<item>. Usual
|
||||||
|
@ -69,28 +70,40 @@ to cause an alarm) is chip-dependent.
|
||||||
|
|
||||||
-------------------------------------------------------------------------
|
-------------------------------------------------------------------------
|
||||||
|
|
||||||
|
[0-*] denotes any positive number starting from 0
|
||||||
|
[1-*] denotes any positive number starting from 1
|
||||||
|
RO read only value
|
||||||
|
RW read/write value
|
||||||
|
|
||||||
|
Read/write values may be read-only for some chips, depending on the
|
||||||
|
hardware implementation.
|
||||||
|
|
||||||
|
All entries are optional, and should only be created in a given driver
|
||||||
|
if the chip has the feature.
|
||||||
|
|
||||||
************
|
************
|
||||||
* Voltages *
|
* Voltages *
|
||||||
************
|
************
|
||||||
|
|
||||||
in[0-8]_min Voltage min value.
|
in[0-*]_min Voltage min value.
|
||||||
Unit: millivolt
|
Unit: millivolt
|
||||||
Read/Write
|
RW
|
||||||
|
|
||||||
in[0-8]_max Voltage max value.
|
in[0-*]_max Voltage max value.
|
||||||
Unit: millivolt
|
Unit: millivolt
|
||||||
Read/Write
|
RW
|
||||||
|
|
||||||
in[0-8]_input Voltage input value.
|
in[0-*]_input Voltage input value.
|
||||||
Unit: millivolt
|
Unit: millivolt
|
||||||
Read only
|
RO
|
||||||
|
Voltage measured on the chip pin.
|
||||||
Actual voltage depends on the scaling resistors on the
|
Actual voltage depends on the scaling resistors on the
|
||||||
motherboard, as recommended in the chip datasheet.
|
motherboard, as recommended in the chip datasheet.
|
||||||
This varies by chip and by motherboard.
|
This varies by chip and by motherboard.
|
||||||
Because of this variation, values are generally NOT scaled
|
Because of this variation, values are generally NOT scaled
|
||||||
by the chip driver, and must be done by the application.
|
by the chip driver, and must be done by the application.
|
||||||
However, some drivers (notably lm87 and via686a)
|
However, some drivers (notably lm87 and via686a)
|
||||||
do scale, with various degrees of success.
|
do scale, because of internal resistors built into a chip.
|
||||||
These drivers will output the actual voltage.
|
These drivers will output the actual voltage.
|
||||||
|
|
||||||
Typical usage:
|
Typical usage:
|
||||||
|
@ -104,58 +117,72 @@ in[0-8]_input Voltage input value.
|
||||||
in7_* varies
|
in7_* varies
|
||||||
in8_* varies
|
in8_* varies
|
||||||
|
|
||||||
cpu[0-1]_vid CPU core reference voltage.
|
cpu[0-*]_vid CPU core reference voltage.
|
||||||
Unit: millivolt
|
Unit: millivolt
|
||||||
Read only.
|
RO
|
||||||
Not always correct.
|
Not always correct.
|
||||||
|
|
||||||
vrm Voltage Regulator Module version number.
|
vrm Voltage Regulator Module version number.
|
||||||
Read only.
|
RW (but changing it should no more be necessary)
|
||||||
Two digit number, first is major version, second is
|
Originally the VRM standard version multiplied by 10, but now
|
||||||
minor version.
|
an arbitrary number, as not all standards have a version
|
||||||
|
number.
|
||||||
Affects the way the driver calculates the CPU core reference
|
Affects the way the driver calculates the CPU core reference
|
||||||
voltage from the vid pins.
|
voltage from the vid pins.
|
||||||
|
|
||||||
|
Also see the Alarms section for status flags associated with voltages.
|
||||||
|
|
||||||
|
|
||||||
********
|
********
|
||||||
* Fans *
|
* Fans *
|
||||||
********
|
********
|
||||||
|
|
||||||
fan[1-3]_min Fan minimum value
|
fan[1-*]_min Fan minimum value
|
||||||
Unit: revolution/min (RPM)
|
Unit: revolution/min (RPM)
|
||||||
Read/Write.
|
RW
|
||||||
|
|
||||||
fan[1-3]_input Fan input value.
|
fan[1-*]_input Fan input value.
|
||||||
Unit: revolution/min (RPM)
|
Unit: revolution/min (RPM)
|
||||||
Read only.
|
RO
|
||||||
|
|
||||||
fan[1-3]_div Fan divisor.
|
fan[1-*]_div Fan divisor.
|
||||||
Integer value in powers of two (1, 2, 4, 8, 16, 32, 64, 128).
|
Integer value in powers of two (1, 2, 4, 8, 16, 32, 64, 128).
|
||||||
|
RW
|
||||||
Some chips only support values 1, 2, 4 and 8.
|
Some chips only support values 1, 2, 4 and 8.
|
||||||
Note that this is actually an internal clock divisor, which
|
Note that this is actually an internal clock divisor, which
|
||||||
affects the measurable speed range, not the read value.
|
affects the measurable speed range, not the read value.
|
||||||
|
|
||||||
|
Also see the Alarms section for status flags associated with fans.
|
||||||
|
|
||||||
|
|
||||||
*******
|
*******
|
||||||
* PWM *
|
* PWM *
|
||||||
*******
|
*******
|
||||||
|
|
||||||
pwm[1-3] Pulse width modulation fan control.
|
pwm[1-*] Pulse width modulation fan control.
|
||||||
Integer value in the range 0 to 255
|
Integer value in the range 0 to 255
|
||||||
Read/Write
|
RW
|
||||||
255 is max or 100%.
|
255 is max or 100%.
|
||||||
|
|
||||||
pwm[1-3]_enable
|
pwm[1-*]_enable
|
||||||
Switch PWM on and off.
|
Switch PWM on and off.
|
||||||
Not always present even if fan*_pwm is.
|
Not always present even if fan*_pwm is.
|
||||||
0 to turn off
|
0: turn off
|
||||||
1 to turn on in manual mode
|
1: turn on in manual mode
|
||||||
2 to turn on in automatic mode
|
2+: turn on in automatic mode
|
||||||
Read/Write
|
Check individual chip documentation files for automatic mode details.
|
||||||
|
RW
|
||||||
|
|
||||||
|
pwm[1-*]_mode
|
||||||
|
0: DC mode
|
||||||
|
1: PWM mode
|
||||||
|
RW
|
||||||
|
|
||||||
pwm[1-*]_auto_channels_temp
|
pwm[1-*]_auto_channels_temp
|
||||||
Select which temperature channels affect this PWM output in
|
Select which temperature channels affect this PWM output in
|
||||||
auto mode. Bitfield, 1 is temp1, 2 is temp2, 4 is temp3 etc...
|
auto mode. Bitfield, 1 is temp1, 2 is temp2, 4 is temp3 etc...
|
||||||
Which values are possible depend on the chip used.
|
Which values are possible depend on the chip used.
|
||||||
|
RW
|
||||||
|
|
||||||
pwm[1-*]_auto_point[1-*]_pwm
|
pwm[1-*]_auto_point[1-*]_pwm
|
||||||
pwm[1-*]_auto_point[1-*]_temp
|
pwm[1-*]_auto_point[1-*]_temp
|
||||||
|
@ -163,6 +190,7 @@ pwm[1-*]_auto_point[1-*]_temp_hyst
|
||||||
Define the PWM vs temperature curve. Number of trip points is
|
Define the PWM vs temperature curve. Number of trip points is
|
||||||
chip-dependent. Use this for chips which associate trip points
|
chip-dependent. Use this for chips which associate trip points
|
||||||
to PWM output channels.
|
to PWM output channels.
|
||||||
|
RW
|
||||||
|
|
||||||
OR
|
OR
|
||||||
|
|
||||||
|
@ -172,50 +200,57 @@ temp[1-*]_auto_point[1-*]_temp_hyst
|
||||||
Define the PWM vs temperature curve. Number of trip points is
|
Define the PWM vs temperature curve. Number of trip points is
|
||||||
chip-dependent. Use this for chips which associate trip points
|
chip-dependent. Use this for chips which associate trip points
|
||||||
to temperature channels.
|
to temperature channels.
|
||||||
|
RW
|
||||||
|
|
||||||
|
|
||||||
****************
|
****************
|
||||||
* Temperatures *
|
* Temperatures *
|
||||||
****************
|
****************
|
||||||
|
|
||||||
temp[1-3]_type Sensor type selection.
|
temp[1-*]_type Sensor type selection.
|
||||||
Integers 1 to 4 or thermistor Beta value (typically 3435)
|
Integers 1 to 4 or thermistor Beta value (typically 3435)
|
||||||
Read/Write.
|
RW
|
||||||
1: PII/Celeron Diode
|
1: PII/Celeron Diode
|
||||||
2: 3904 transistor
|
2: 3904 transistor
|
||||||
3: thermal diode
|
3: thermal diode
|
||||||
4: thermistor (default/unknown Beta)
|
4: thermistor (default/unknown Beta)
|
||||||
Not all types are supported by all chips
|
Not all types are supported by all chips
|
||||||
|
|
||||||
temp[1-4]_max Temperature max value.
|
temp[1-*]_max Temperature max value.
|
||||||
Unit: millidegree Celcius
|
Unit: millidegree Celsius (or millivolt, see below)
|
||||||
Read/Write value.
|
RW
|
||||||
|
|
||||||
temp[1-3]_min Temperature min value.
|
temp[1-*]_min Temperature min value.
|
||||||
Unit: millidegree Celcius
|
Unit: millidegree Celsius
|
||||||
Read/Write value.
|
RW
|
||||||
|
|
||||||
temp[1-3]_max_hyst
|
temp[1-*]_max_hyst
|
||||||
Temperature hysteresis value for max limit.
|
Temperature hysteresis value for max limit.
|
||||||
Unit: millidegree Celcius
|
Unit: millidegree Celsius
|
||||||
Must be reported as an absolute temperature, NOT a delta
|
Must be reported as an absolute temperature, NOT a delta
|
||||||
from the max value.
|
from the max value.
|
||||||
Read/Write value.
|
RW
|
||||||
|
|
||||||
temp[1-4]_input Temperature input value.
|
temp[1-*]_input Temperature input value.
|
||||||
Unit: millidegree Celcius
|
Unit: millidegree Celsius
|
||||||
Read only value.
|
RO
|
||||||
|
|
||||||
temp[1-4]_crit Temperature critical value, typically greater than
|
temp[1-*]_crit Temperature critical value, typically greater than
|
||||||
corresponding temp_max values.
|
corresponding temp_max values.
|
||||||
Unit: millidegree Celcius
|
Unit: millidegree Celsius
|
||||||
Read/Write value.
|
RW
|
||||||
|
|
||||||
temp[1-2]_crit_hyst
|
temp[1-*]_crit_hyst
|
||||||
Temperature hysteresis value for critical limit.
|
Temperature hysteresis value for critical limit.
|
||||||
Unit: millidegree Celcius
|
Unit: millidegree Celsius
|
||||||
Must be reported as an absolute temperature, NOT a delta
|
Must be reported as an absolute temperature, NOT a delta
|
||||||
from the critical value.
|
from the critical value.
|
||||||
|
RW
|
||||||
|
|
||||||
|
temp[1-4]_offset
|
||||||
|
Temperature offset which is added to the temperature reading
|
||||||
|
by the chip.
|
||||||
|
Unit: millidegree Celsius
|
||||||
Read/Write value.
|
Read/Write value.
|
||||||
|
|
||||||
If there are multiple temperature sensors, temp1_* is
|
If there are multiple temperature sensors, temp1_* is
|
||||||
|
@ -225,6 +260,17 @@ temp[1-2]_crit_hyst
|
||||||
itself, for example the thermal diode inside the CPU or
|
itself, for example the thermal diode inside the CPU or
|
||||||
a thermistor nearby.
|
a thermistor nearby.
|
||||||
|
|
||||||
|
Some chips measure temperature using external thermistors and an ADC, and
|
||||||
|
report the temperature measurement as a voltage. Converting this voltage
|
||||||
|
back to a temperature (or the other way around for limits) requires
|
||||||
|
mathematical functions not available in the kernel, so the conversion
|
||||||
|
must occur in user space. For these chips, all temp* files described
|
||||||
|
above should contain values expressed in millivolt instead of millidegree
|
||||||
|
Celsius. In other words, such temperature channels are handled as voltage
|
||||||
|
channels by the driver.
|
||||||
|
|
||||||
|
Also see the Alarms section for status flags associated with temperatures.
|
||||||
|
|
||||||
|
|
||||||
************
|
************
|
||||||
* Currents *
|
* Currents *
|
||||||
|
@ -233,25 +279,88 @@ temp[1-2]_crit_hyst
|
||||||
Note that no known chip provides current measurements as of writing,
|
Note that no known chip provides current measurements as of writing,
|
||||||
so this part is theoretical, so to say.
|
so this part is theoretical, so to say.
|
||||||
|
|
||||||
curr[1-n]_max Current max value
|
curr[1-*]_max Current max value
|
||||||
Unit: milliampere
|
Unit: milliampere
|
||||||
Read/Write.
|
RW
|
||||||
|
|
||||||
curr[1-n]_min Current min value.
|
curr[1-*]_min Current min value.
|
||||||
Unit: milliampere
|
Unit: milliampere
|
||||||
Read/Write.
|
RW
|
||||||
|
|
||||||
curr[1-n]_input Current input value
|
curr[1-*]_input Current input value
|
||||||
Unit: milliampere
|
Unit: milliampere
|
||||||
Read only.
|
RO
|
||||||
|
|
||||||
|
|
||||||
*********
|
**********
|
||||||
* Other *
|
* Alarms *
|
||||||
*********
|
**********
|
||||||
|
|
||||||
|
Each channel or limit may have an associated alarm file, containing a
|
||||||
|
boolean value. 1 means than an alarm condition exists, 0 means no alarm.
|
||||||
|
|
||||||
|
Usually a given chip will either use channel-related alarms, or
|
||||||
|
limit-related alarms, not both. The driver should just reflect the hardware
|
||||||
|
implementation.
|
||||||
|
|
||||||
|
in[0-*]_alarm
|
||||||
|
fan[1-*]_alarm
|
||||||
|
temp[1-*]_alarm
|
||||||
|
Channel alarm
|
||||||
|
0: no alarm
|
||||||
|
1: alarm
|
||||||
|
RO
|
||||||
|
|
||||||
|
OR
|
||||||
|
|
||||||
|
in[0-*]_min_alarm
|
||||||
|
in[0-*]_max_alarm
|
||||||
|
fan[1-*]_min_alarm
|
||||||
|
temp[1-*]_min_alarm
|
||||||
|
temp[1-*]_max_alarm
|
||||||
|
temp[1-*]_crit_alarm
|
||||||
|
Limit alarm
|
||||||
|
0: no alarm
|
||||||
|
1: alarm
|
||||||
|
RO
|
||||||
|
|
||||||
|
Each input channel may have an associated fault file. This can be used
|
||||||
|
to notify open diodes, unconnected fans etc. where the hardware
|
||||||
|
supports it. When this boolean has value 1, the measurement for that
|
||||||
|
channel should not be trusted.
|
||||||
|
|
||||||
|
in[0-*]_input_fault
|
||||||
|
fan[1-*]_input_fault
|
||||||
|
temp[1-*]_input_fault
|
||||||
|
Input fault condition
|
||||||
|
0: no fault occured
|
||||||
|
1: fault condition
|
||||||
|
RO
|
||||||
|
|
||||||
|
Some chips also offer the possibility to get beeped when an alarm occurs:
|
||||||
|
|
||||||
|
beep_enable Master beep enable
|
||||||
|
0: no beeps
|
||||||
|
1: beeps
|
||||||
|
RW
|
||||||
|
|
||||||
|
in[0-*]_beep
|
||||||
|
fan[1-*]_beep
|
||||||
|
temp[1-*]_beep
|
||||||
|
Channel beep
|
||||||
|
0: disable
|
||||||
|
1: enable
|
||||||
|
RW
|
||||||
|
|
||||||
|
In theory, a chip could provide per-limit beep masking, but no such chip
|
||||||
|
was seen so far.
|
||||||
|
|
||||||
|
Old drivers provided a different, non-standard interface to alarms and
|
||||||
|
beeps. These interface files are deprecated, but will be kept around
|
||||||
|
for compatibility reasons:
|
||||||
|
|
||||||
alarms Alarm bitmask.
|
alarms Alarm bitmask.
|
||||||
Read only.
|
RO
|
||||||
Integer representation of one to four bytes.
|
Integer representation of one to four bytes.
|
||||||
A '1' bit means an alarm.
|
A '1' bit means an alarm.
|
||||||
Chips should be programmed for 'comparator' mode so that
|
Chips should be programmed for 'comparator' mode so that
|
||||||
|
@ -259,35 +368,26 @@ alarms Alarm bitmask.
|
||||||
if it is still valid.
|
if it is still valid.
|
||||||
Generally a direct representation of a chip's internal
|
Generally a direct representation of a chip's internal
|
||||||
alarm registers; there is no standard for the position
|
alarm registers; there is no standard for the position
|
||||||
of individual bits.
|
of individual bits. For this reason, the use of this
|
||||||
|
interface file for new drivers is discouraged. Use
|
||||||
|
individual *_alarm and *_fault files instead.
|
||||||
Bits are defined in kernel/include/sensors.h.
|
Bits are defined in kernel/include/sensors.h.
|
||||||
|
|
||||||
alarms_in Alarm bitmask relative to in (voltage) channels
|
|
||||||
Read only
|
|
||||||
A '1' bit means an alarm, LSB corresponds to in0 and so on
|
|
||||||
Prefered to 'alarms' for newer chips
|
|
||||||
|
|
||||||
alarms_fan Alarm bitmask relative to fan channels
|
|
||||||
Read only
|
|
||||||
A '1' bit means an alarm, LSB corresponds to fan1 and so on
|
|
||||||
Prefered to 'alarms' for newer chips
|
|
||||||
|
|
||||||
alarms_temp Alarm bitmask relative to temp (temperature) channels
|
|
||||||
Read only
|
|
||||||
A '1' bit means an alarm, LSB corresponds to temp1 and so on
|
|
||||||
Prefered to 'alarms' for newer chips
|
|
||||||
|
|
||||||
beep_enable Beep/interrupt enable
|
|
||||||
0 to disable.
|
|
||||||
1 to enable.
|
|
||||||
Read/Write
|
|
||||||
|
|
||||||
beep_mask Bitmask for beep.
|
beep_mask Bitmask for beep.
|
||||||
Same format as 'alarms' with the same bit locations.
|
Same format as 'alarms' with the same bit locations,
|
||||||
Read/Write
|
use discouraged for the same reason. Use individual
|
||||||
|
*_beep files instead.
|
||||||
|
RW
|
||||||
|
|
||||||
|
|
||||||
|
*********
|
||||||
|
* Other *
|
||||||
|
*********
|
||||||
|
|
||||||
eeprom Raw EEPROM data in binary form.
|
eeprom Raw EEPROM data in binary form.
|
||||||
Read only.
|
RO
|
||||||
|
|
||||||
pec Enable or disable PEC (SMBus only)
|
pec Enable or disable PEC (SMBus only)
|
||||||
Read/Write
|
0: disable
|
||||||
|
1: enable
|
||||||
|
RW
|
||||||
|
|
|
@ -6,31 +6,32 @@ voltages, fans speed). They are often connected through an I2C bus, but some
|
||||||
are also connected directly through the ISA bus.
|
are also connected directly through the ISA bus.
|
||||||
|
|
||||||
The kernel drivers make the data from the sensor chips available in the /sys
|
The kernel drivers make the data from the sensor chips available in the /sys
|
||||||
virtual filesystem. Userspace tools are then used to display or set or the
|
virtual filesystem. Userspace tools are then used to display the measured
|
||||||
data in a more friendly manner.
|
values or configure the chips in a more friendly manner.
|
||||||
|
|
||||||
Lm-sensors
|
Lm-sensors
|
||||||
----------
|
----------
|
||||||
|
|
||||||
Core set of utilites that will allow you to obtain health information,
|
Core set of utilities that will allow you to obtain health information,
|
||||||
setup monitoring limits etc. You can get them on their homepage
|
setup monitoring limits etc. You can get them on their homepage
|
||||||
http://www.lm-sensors.nu/ or as a package from your Linux distribution.
|
http://www.lm-sensors.nu/ or as a package from your Linux distribution.
|
||||||
|
|
||||||
If from website:
|
If from website:
|
||||||
Get lmsensors from project web site. Please note, you need only userspace
|
Get lm-sensors from project web site. Please note, you need only userspace
|
||||||
part, so compile with "make user_install" target.
|
part, so compile with "make user" and install with "make user_install".
|
||||||
|
|
||||||
General hints to get things working:
|
General hints to get things working:
|
||||||
|
|
||||||
0) get lm-sensors userspace utils
|
0) get lm-sensors userspace utils
|
||||||
1) compile all drivers in I2C section as modules in your kernel
|
1) compile all drivers in I2C and Hardware Monitoring sections as modules
|
||||||
|
in your kernel
|
||||||
2) run sensors-detect script, it will tell you what modules you need to load.
|
2) run sensors-detect script, it will tell you what modules you need to load.
|
||||||
3) load them and run "sensors" command, you should see some results.
|
3) load them and run "sensors" command, you should see some results.
|
||||||
4) fix sensors.conf, labels, limits, fan divisors
|
4) fix sensors.conf, labels, limits, fan divisors
|
||||||
5) if any more problems consult FAQ, or documentation
|
5) if any more problems consult FAQ, or documentation
|
||||||
|
|
||||||
Other utilites
|
Other utilities
|
||||||
--------------
|
---------------
|
||||||
|
|
||||||
If you want some graphical indicators of system health look for applications
|
If you want some graphical indicators of system health look for applications
|
||||||
like: gkrellm, ksensors, xsensors, wmtemp, wmsensors, wmgtemp, ksysguardd,
|
like: gkrellm, ksensors, xsensors, wmtemp, wmsensors, wmgtemp, ksysguardd,
|
||||||
|
|
|
@ -0,0 +1,113 @@
|
||||||
|
Kernel driver w83791d
|
||||||
|
=====================
|
||||||
|
|
||||||
|
Supported chips:
|
||||||
|
* Winbond W83791D
|
||||||
|
Prefix: 'w83791d'
|
||||||
|
Addresses scanned: I2C 0x2c - 0x2f
|
||||||
|
Datasheet: http://www.winbond-usa.com/products/winbond_products/pdfs/PCIC/W83791Da.pdf
|
||||||
|
|
||||||
|
Author: Charles Spirakis <bezaur@gmail.com>
|
||||||
|
|
||||||
|
This driver was derived from the w83781d.c and w83792d.c source files.
|
||||||
|
|
||||||
|
Credits:
|
||||||
|
w83781d.c:
|
||||||
|
Frodo Looijaard <frodol@dds.nl>,
|
||||||
|
Philip Edelbrock <phil@netroedge.com>,
|
||||||
|
and Mark Studebaker <mdsxyz123@yahoo.com>
|
||||||
|
w83792d.c:
|
||||||
|
Chunhao Huang <DZShen@Winbond.com.tw>,
|
||||||
|
Rudolf Marek <r.marek@sh.cvut.cz>
|
||||||
|
|
||||||
|
Module Parameters
|
||||||
|
-----------------
|
||||||
|
|
||||||
|
* init boolean
|
||||||
|
(default 0)
|
||||||
|
Use 'init=1' to have the driver do extra software initializations.
|
||||||
|
The default behavior is to do the minimum initialization possible
|
||||||
|
and depend on the BIOS to properly setup the chip. If you know you
|
||||||
|
have a w83791d and you're having problems, try init=1 before trying
|
||||||
|
reset=1.
|
||||||
|
|
||||||
|
* reset boolean
|
||||||
|
(default 0)
|
||||||
|
Use 'reset=1' to reset the chip (via index 0x40, bit 7). The default
|
||||||
|
behavior is no chip reset to preserve BIOS settings.
|
||||||
|
|
||||||
|
* force_subclients=bus,caddr,saddr,saddr
|
||||||
|
This is used to force the i2c addresses for subclients of
|
||||||
|
a certain chip. Example usage is `force_subclients=0,0x2f,0x4a,0x4b'
|
||||||
|
to force the subclients of chip 0x2f on bus 0 to i2c addresses
|
||||||
|
0x4a and 0x4b.
|
||||||
|
|
||||||
|
|
||||||
|
Description
|
||||||
|
-----------
|
||||||
|
|
||||||
|
This driver implements support for the Winbond W83791D chip.
|
||||||
|
|
||||||
|
Detection of the chip can sometimes be foiled because it can be in an
|
||||||
|
internal state that allows no clean access (Bank with ID register is not
|
||||||
|
currently selected). If you know the address of the chip, use a 'force'
|
||||||
|
parameter; this will put it into a more well-behaved state first.
|
||||||
|
|
||||||
|
The driver implements three temperature sensors, five fan rotation speed
|
||||||
|
sensors, and ten voltage sensors.
|
||||||
|
|
||||||
|
Temperatures are measured in degrees Celsius and measurement resolution is 1
|
||||||
|
degC for temp1 and 0.5 degC for temp2 and temp3. An alarm is triggered when
|
||||||
|
the temperature gets higher than the Overtemperature Shutdown value; it stays
|
||||||
|
on until the temperature falls below the Hysteresis value.
|
||||||
|
|
||||||
|
Fan rotation speeds are reported in RPM (rotations per minute). An alarm is
|
||||||
|
triggered if the rotation speed has dropped below a programmable limit. Fan
|
||||||
|
readings can be divided by a programmable divider (1, 2, 4, 8 for fan 1/2/3
|
||||||
|
and 1, 2, 4, 8, 16, 32, 64 or 128 for fan 4/5) to give the readings more
|
||||||
|
range or accuracy.
|
||||||
|
|
||||||
|
Voltage sensors (also known as IN sensors) report their values in millivolts.
|
||||||
|
An alarm is triggered if the voltage has crossed a programmable minimum
|
||||||
|
or maximum limit.
|
||||||
|
|
||||||
|
Alarms are provided as output from a "realtime status register". The
|
||||||
|
following bits are defined:
|
||||||
|
|
||||||
|
bit - alarm on:
|
||||||
|
0 - Vcore
|
||||||
|
1 - VINR0
|
||||||
|
2 - +3.3VIN
|
||||||
|
3 - 5VDD
|
||||||
|
4 - temp1
|
||||||
|
5 - temp2
|
||||||
|
6 - fan1
|
||||||
|
7 - fan2
|
||||||
|
8 - +12VIN
|
||||||
|
9 - -12VIN
|
||||||
|
10 - -5VIN
|
||||||
|
11 - fan3
|
||||||
|
12 - chassis
|
||||||
|
13 - temp3
|
||||||
|
14 - VINR1
|
||||||
|
15 - reserved
|
||||||
|
16 - tart1
|
||||||
|
17 - tart2
|
||||||
|
18 - tart3
|
||||||
|
19 - VSB
|
||||||
|
20 - VBAT
|
||||||
|
21 - fan4
|
||||||
|
22 - fan5
|
||||||
|
23 - reserved
|
||||||
|
|
||||||
|
When an alarm goes off, you can be warned by a beeping signal through your
|
||||||
|
computer speaker. It is possible to enable all beeping globally, or only
|
||||||
|
the beeping for some alarms.
|
||||||
|
|
||||||
|
The driver only reads the chip values each 3 seconds; reading them more
|
||||||
|
often will do no harm, but will return 'old' values.
|
||||||
|
|
||||||
|
W83791D TODO:
|
||||||
|
---------------
|
||||||
|
Provide a patch for per-file alarms as discussed on the mailing list
|
||||||
|
Provide a patch for smart-fan control (still need appropriate motherboard/fans)
|
|
@ -21,8 +21,7 @@ Authors:
|
||||||
Module Parameters
|
Module Parameters
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
* force_addr: int
|
None.
|
||||||
Forcibly enable the ICH at the given address. EXTREMELY DANGEROUS!
|
|
||||||
|
|
||||||
|
|
||||||
Description
|
Description
|
||||||
|
|
|
@ -7,6 +7,8 @@ Supported adapters:
|
||||||
* nForce3 250Gb MCP 10de:00E4
|
* nForce3 250Gb MCP 10de:00E4
|
||||||
* nForce4 MCP 10de:0052
|
* nForce4 MCP 10de:0052
|
||||||
* nForce4 MCP-04 10de:0034
|
* nForce4 MCP-04 10de:0034
|
||||||
|
* nForce4 MCP51 10de:0264
|
||||||
|
* nForce4 MCP55 10de:0368
|
||||||
|
|
||||||
Datasheet: not publically available, but seems to be similar to the
|
Datasheet: not publically available, but seems to be similar to the
|
||||||
AMD-8111 SMBus 2.0 adapter.
|
AMD-8111 SMBus 2.0 adapter.
|
||||||
|
|
|
@ -0,0 +1,51 @@
|
||||||
|
Kernel driver i2c-ocores
|
||||||
|
|
||||||
|
Supported adapters:
|
||||||
|
* OpenCores.org I2C controller by Richard Herveille (see datasheet link)
|
||||||
|
Datasheet: http://www.opencores.org/projects.cgi/web/i2c/overview
|
||||||
|
|
||||||
|
Author: Peter Korsgaard <jacmet@sunsite.dk>
|
||||||
|
|
||||||
|
Description
|
||||||
|
-----------
|
||||||
|
|
||||||
|
i2c-ocores is an i2c bus driver for the OpenCores.org I2C controller
|
||||||
|
IP core by Richard Herveille.
|
||||||
|
|
||||||
|
Usage
|
||||||
|
-----
|
||||||
|
|
||||||
|
i2c-ocores uses the platform bus, so you need to provide a struct
|
||||||
|
platform_device with the base address and interrupt number. The
|
||||||
|
dev.platform_data of the device should also point to a struct
|
||||||
|
ocores_i2c_platform_data (see linux/i2c-ocores.h) describing the
|
||||||
|
distance between registers and the input clock speed.
|
||||||
|
|
||||||
|
E.G. something like:
|
||||||
|
|
||||||
|
static struct resource ocores_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = MYI2C_BASEADDR,
|
||||||
|
.end = MYI2C_BASEADDR + 8,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = MYI2C_IRQ,
|
||||||
|
.end = MYI2C_IRQ,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct ocores_i2c_platform_data myi2c_data = {
|
||||||
|
.regstep = 2, /* two bytes between registers */
|
||||||
|
.clock_khz = 50000, /* input clock of 50MHz */
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device myi2c = {
|
||||||
|
.name = "ocores-i2c",
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &myi2c_data,
|
||||||
|
},
|
||||||
|
.num_resources = ARRAY_SIZE(ocores_resources),
|
||||||
|
.resource = ocores_resources,
|
||||||
|
};
|
|
@ -6,6 +6,8 @@ Supported adapters:
|
||||||
Datasheet: Publicly available at the Intel website
|
Datasheet: Publicly available at the Intel website
|
||||||
* ServerWorks OSB4, CSB5, CSB6 and HT-1000 southbridges
|
* ServerWorks OSB4, CSB5, CSB6 and HT-1000 southbridges
|
||||||
Datasheet: Only available via NDA from ServerWorks
|
Datasheet: Only available via NDA from ServerWorks
|
||||||
|
* ATI IXP southbridges IXP200, IXP300, IXP400
|
||||||
|
Datasheet: Not publicly available
|
||||||
* Standard Microsystems (SMSC) SLC90E66 (Victory66) southbridge
|
* Standard Microsystems (SMSC) SLC90E66 (Victory66) southbridge
|
||||||
Datasheet: Publicly available at the SMSC website http://www.smsc.com
|
Datasheet: Publicly available at the SMSC website http://www.smsc.com
|
||||||
|
|
||||||
|
@ -21,8 +23,6 @@ Module Parameters
|
||||||
Forcibly enable the PIIX4. DANGEROUS!
|
Forcibly enable the PIIX4. DANGEROUS!
|
||||||
* force_addr: int
|
* force_addr: int
|
||||||
Forcibly enable the PIIX4 at the given address. EXTREMELY DANGEROUS!
|
Forcibly enable the PIIX4 at the given address. EXTREMELY DANGEROUS!
|
||||||
* fix_hstcfg: int
|
|
||||||
Fix config register. Needed on some boards (Force CPCI735).
|
|
||||||
|
|
||||||
|
|
||||||
Description
|
Description
|
||||||
|
@ -63,10 +63,36 @@ The PIIX4E is just an new version of the PIIX4; it is supported as well.
|
||||||
The PIIX/PIIX3 does not implement an SMBus or I2C bus, so you can't use
|
The PIIX/PIIX3 does not implement an SMBus or I2C bus, so you can't use
|
||||||
this driver on those mainboards.
|
this driver on those mainboards.
|
||||||
|
|
||||||
The ServerWorks Southbridges, the Intel 440MX, and the Victory766 are
|
The ServerWorks Southbridges, the Intel 440MX, and the Victory66 are
|
||||||
identical to the PIIX4 in I2C/SMBus support.
|
identical to the PIIX4 in I2C/SMBus support.
|
||||||
|
|
||||||
A few OSB4 southbridges are known to be misconfigured by the BIOS. In this
|
If you own Force CPCI735 motherboard or other OSB4 based systems you may need
|
||||||
case, you have you use the fix_hstcfg module parameter. Do not use it
|
to change the SMBus Interrupt Select register so the SMBus controller uses
|
||||||
unless you know you have to, because in some cases it also breaks
|
the SMI mode.
|
||||||
configuration on southbridges that don't need it.
|
|
||||||
|
1) Use lspci command and locate the PCI device with the SMBus controller:
|
||||||
|
00:0f.0 ISA bridge: ServerWorks OSB4 South Bridge (rev 4f)
|
||||||
|
The line may vary for different chipsets. Please consult the driver source
|
||||||
|
for all possible PCI ids (and lspci -n to match them). Lets assume the
|
||||||
|
device is located at 00:0f.0.
|
||||||
|
2) Now you just need to change the value in 0xD2 register. Get it first with
|
||||||
|
command: lspci -xxx -s 00:0f.0
|
||||||
|
If the value is 0x3 then you need to change it to 0x1
|
||||||
|
setpci -s 00:0f.0 d2.b=1
|
||||||
|
|
||||||
|
Please note that you don't need to do that in all cases, just when the SMBus is
|
||||||
|
not working properly.
|
||||||
|
|
||||||
|
|
||||||
|
Hardware-specific issues
|
||||||
|
------------------------
|
||||||
|
|
||||||
|
This driver will refuse to load on IBM systems with an Intel PIIX4 SMBus.
|
||||||
|
Some of these machines have an RFID EEPROM (24RF08) connected to the SMBus,
|
||||||
|
which can easily get corrupted due to a state machine bug. These are mostly
|
||||||
|
Thinkpad laptops, but desktop systems may also be affected. We have no list
|
||||||
|
of all affected systems, so the only safe solution was to prevent access to
|
||||||
|
the SMBus on all IBM systems (detected using DMI data.)
|
||||||
|
|
||||||
|
For additional information, read:
|
||||||
|
http://www2.lm-sensors.nu/~lm78/cvs/lm_sensors2/README.thinkpad
|
||||||
|
|
|
@ -2,14 +2,31 @@ Kernel driver scx200_acb
|
||||||
|
|
||||||
Author: Christer Weinigel <wingel@nano-system.com>
|
Author: Christer Weinigel <wingel@nano-system.com>
|
||||||
|
|
||||||
|
The driver supersedes the older, never merged driver named i2c-nscacb.
|
||||||
|
|
||||||
Module Parameters
|
Module Parameters
|
||||||
-----------------
|
-----------------
|
||||||
|
|
||||||
* base: int
|
* base: up to 4 ints
|
||||||
Base addresses for the ACCESS.bus controllers on SCx200 and SC1100 devices
|
Base addresses for the ACCESS.bus controllers on SCx200 and SC1100 devices
|
||||||
|
|
||||||
|
By default the driver uses two base addresses 0x820 and 0x840.
|
||||||
|
If you want only one base address, specify the second as 0 so as to
|
||||||
|
override this default.
|
||||||
|
|
||||||
Description
|
Description
|
||||||
-----------
|
-----------
|
||||||
|
|
||||||
Enable the use of the ACCESS.bus controller on the Geode SCx200 and
|
Enable the use of the ACCESS.bus controller on the Geode SCx200 and
|
||||||
SC1100 processors and the CS5535 and CS5536 Geode companion devices.
|
SC1100 processors and the CS5535 and CS5536 Geode companion devices.
|
||||||
|
|
||||||
|
Device-specific notes
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
The SC1100 WRAP boards are known to use base addresses 0x810 and 0x820.
|
||||||
|
If the scx200_acb driver is built into the kernel, add the following
|
||||||
|
parameter to your boot command line:
|
||||||
|
scx200_acb.base=0x810,0x820
|
||||||
|
If the scx200_acb driver is built as a module, add the following line to
|
||||||
|
the file /etc/modprobe.conf instead:
|
||||||
|
options scx200_acb base=0x810,0x820
|
||||||
|
|
|
@ -124,7 +124,8 @@ GigaSet 307x Device Driver
|
||||||
|
|
||||||
You can use some configuration tool of your distribution to configure this
|
You can use some configuration tool of your distribution to configure this
|
||||||
"modem" or configure pppd/wvdial manually. There are some example ppp
|
"modem" or configure pppd/wvdial manually. There are some example ppp
|
||||||
configuration files and chat scripts in the gigaset-VERSION/ppp directory.
|
configuration files and chat scripts in the gigaset-VERSION/ppp directory
|
||||||
|
in the driver packages from http://sourceforge.net/projects/gigaset307x/.
|
||||||
Please note that the USB drivers are not able to change the state of the
|
Please note that the USB drivers are not able to change the state of the
|
||||||
control lines (the M105 driver can be configured to use some undocumented
|
control lines (the M105 driver can be configured to use some undocumented
|
||||||
control requests, if you really need the control lines, though). This means
|
control requests, if you really need the control lines, though). This means
|
||||||
|
@ -164,8 +165,8 @@ GigaSet 307x Device Driver
|
||||||
|
|
||||||
If you want both of these at once, you are out of luck.
|
If you want both of these at once, you are out of luck.
|
||||||
|
|
||||||
You can also use /sys/module/<name>/parameters/cidmode for changing
|
You can also use /sys/class/tty/ttyGxy/cidmode for changing the CID mode
|
||||||
the CID mode setting (<name> is usb_gigaset or bas_gigaset).
|
setting (ttyGxy is ttyGU0 or ttyGB0).
|
||||||
|
|
||||||
|
|
||||||
3. Troubleshooting
|
3. Troubleshooting
|
||||||
|
|
|
@ -19,6 +19,7 @@ This document has the following sections:
|
||||||
- Key overview
|
- Key overview
|
||||||
- Key service overview
|
- Key service overview
|
||||||
- Key access permissions
|
- Key access permissions
|
||||||
|
- SELinux support
|
||||||
- New procfs files
|
- New procfs files
|
||||||
- Userspace system call interface
|
- Userspace system call interface
|
||||||
- Kernel services
|
- Kernel services
|
||||||
|
@ -232,6 +233,34 @@ For changing the ownership, group ID or permissions mask, being the owner of
|
||||||
the key or having the sysadmin capability is sufficient.
|
the key or having the sysadmin capability is sufficient.
|
||||||
|
|
||||||
|
|
||||||
|
===============
|
||||||
|
SELINUX SUPPORT
|
||||||
|
===============
|
||||||
|
|
||||||
|
The security class "key" has been added to SELinux so that mandatory access
|
||||||
|
controls can be applied to keys created within various contexts. This support
|
||||||
|
is preliminary, and is likely to change quite significantly in the near future.
|
||||||
|
Currently, all of the basic permissions explained above are provided in SELinux
|
||||||
|
as well; SE Linux is simply invoked after all basic permission checks have been
|
||||||
|
performed.
|
||||||
|
|
||||||
|
Each key is labeled with the same context as the task to which it belongs.
|
||||||
|
Typically, this is the same task that was running when the key was created.
|
||||||
|
The default keyrings are handled differently, but in a way that is very
|
||||||
|
intuitive:
|
||||||
|
|
||||||
|
(*) The user and user session keyrings that are created when the user logs in
|
||||||
|
are currently labeled with the context of the login manager.
|
||||||
|
|
||||||
|
(*) The keyrings associated with new threads are each labeled with the context
|
||||||
|
of their associated thread, and both session and process keyrings are
|
||||||
|
handled similarly.
|
||||||
|
|
||||||
|
Note, however, that the default keyrings associated with the root user are
|
||||||
|
labeled with the default kernel context, since they are created early in the
|
||||||
|
boot process, before root has a chance to log in.
|
||||||
|
|
||||||
|
|
||||||
================
|
================
|
||||||
NEW PROCFS FILES
|
NEW PROCFS FILES
|
||||||
================
|
================
|
||||||
|
@ -935,6 +964,16 @@ The structure has a number of fields, some of which are mandatory:
|
||||||
It is not safe to sleep in this method; the caller may hold spinlocks.
|
It is not safe to sleep in this method; the caller may hold spinlocks.
|
||||||
|
|
||||||
|
|
||||||
|
(*) void (*revoke)(struct key *key);
|
||||||
|
|
||||||
|
This method is optional. It is called to discard part of the payload
|
||||||
|
data upon a key being revoked. The caller will have the key semaphore
|
||||||
|
write-locked.
|
||||||
|
|
||||||
|
It is safe to sleep in this method, though care should be taken to avoid
|
||||||
|
a deadlock against the key semaphore.
|
||||||
|
|
||||||
|
|
||||||
(*) void (*destroy)(struct key *key);
|
(*) void (*destroy)(struct key *key);
|
||||||
|
|
||||||
This method is optional. It is called to discard the payload data on a key
|
This method is optional. It is called to discard the payload data on a key
|
||||||
|
|
|
@ -213,9 +213,17 @@ have been remapped by the kernel.
|
||||||
|
|
||||||
See Documentation/IO-mapping.txt for how to access device memory.
|
See Documentation/IO-mapping.txt for how to access device memory.
|
||||||
|
|
||||||
You still need to call request_region() for I/O regions and
|
The device driver needs to call pci_request_region() to make sure
|
||||||
request_mem_region() for memory regions to make sure nobody else is using the
|
no other device is already using the same resource. The driver is expected
|
||||||
same device.
|
to determine MMIO and IO Port resource availability _before_ calling
|
||||||
|
pci_enable_device(). Conversely, drivers should call pci_release_region()
|
||||||
|
_after_ calling pci_disable_device(). The idea is to prevent two devices
|
||||||
|
colliding on the same address range.
|
||||||
|
|
||||||
|
Generic flavors of pci_request_region() are request_mem_region()
|
||||||
|
(for MMIO ranges) and request_region() (for IO Port ranges).
|
||||||
|
Use these for address resources that are not described by "normal" PCI
|
||||||
|
interfaces (e.g. BAR).
|
||||||
|
|
||||||
All interrupt handlers should be registered with SA_SHIRQ and use the devid
|
All interrupt handlers should be registered with SA_SHIRQ and use the devid
|
||||||
to map IRQs to devices (remember that all PCI interrupts are shared).
|
to map IRQs to devices (remember that all PCI interrupts are shared).
|
||||||
|
|
|
@ -118,96 +118,6 @@ will fail.
|
||||||
There is currently no way to know what states a device or driver
|
There is currently no way to know what states a device or driver
|
||||||
supports a priori. This will change in the future.
|
supports a priori. This will change in the future.
|
||||||
|
|
||||||
pm_message_t meaning
|
|
||||||
|
|
||||||
pm_message_t has two fields. event ("major"), and flags. If driver
|
|
||||||
does not know event code, it aborts the request, returning error. Some
|
|
||||||
drivers may need to deal with special cases based on the actual type
|
|
||||||
of suspend operation being done at the system level. This is why
|
|
||||||
there are flags.
|
|
||||||
|
|
||||||
Event codes are:
|
|
||||||
|
|
||||||
ON -- no need to do anything except special cases like broken
|
|
||||||
HW.
|
|
||||||
|
|
||||||
# NOTIFICATION -- pretty much same as ON?
|
|
||||||
|
|
||||||
FREEZE -- stop DMA and interrupts, and be prepared to reinit HW from
|
|
||||||
scratch. That probably means stop accepting upstream requests, the
|
|
||||||
actual policy of what to do with them beeing specific to a given
|
|
||||||
driver. It's acceptable for a network driver to just drop packets
|
|
||||||
while a block driver is expected to block the queue so no request is
|
|
||||||
lost. (Use IDE as an example on how to do that). FREEZE requires no
|
|
||||||
power state change, and it's expected for drivers to be able to
|
|
||||||
quickly transition back to operating state.
|
|
||||||
|
|
||||||
SUSPEND -- like FREEZE, but also put hardware into low-power state. If
|
|
||||||
there's need to distinguish several levels of sleep, additional flag
|
|
||||||
is probably best way to do that.
|
|
||||||
|
|
||||||
Transitions are only from a resumed state to a suspended state, never
|
|
||||||
between 2 suspended states. (ON -> FREEZE or ON -> SUSPEND can happen,
|
|
||||||
FREEZE -> SUSPEND or SUSPEND -> FREEZE can not).
|
|
||||||
|
|
||||||
All events are:
|
|
||||||
|
|
||||||
[NOTE NOTE NOTE: If you are driver author, you should not care; you
|
|
||||||
should only look at event, and ignore flags.]
|
|
||||||
|
|
||||||
#Prepare for suspend -- userland is still running but we are going to
|
|
||||||
#enter suspend state. This gives drivers chance to load firmware from
|
|
||||||
#disk and store it in memory, or do other activities taht require
|
|
||||||
#operating userland, ability to kmalloc GFP_KERNEL, etc... All of these
|
|
||||||
#are forbiden once the suspend dance is started.. event = ON, flags =
|
|
||||||
#PREPARE_TO_SUSPEND
|
|
||||||
|
|
||||||
Apm standby -- prepare for APM event. Quiesce devices to make life
|
|
||||||
easier for APM BIOS. event = FREEZE, flags = APM_STANDBY
|
|
||||||
|
|
||||||
Apm suspend -- same as APM_STANDBY, but it we should probably avoid
|
|
||||||
spinning down disks. event = FREEZE, flags = APM_SUSPEND
|
|
||||||
|
|
||||||
System halt, reboot -- quiesce devices to make life easier for BIOS. event
|
|
||||||
= FREEZE, flags = SYSTEM_HALT or SYSTEM_REBOOT
|
|
||||||
|
|
||||||
System shutdown -- at least disks need to be spun down, or data may be
|
|
||||||
lost. Quiesce devices, just to make life easier for BIOS. event =
|
|
||||||
FREEZE, flags = SYSTEM_SHUTDOWN
|
|
||||||
|
|
||||||
Kexec -- turn off DMAs and put hardware into some state where new
|
|
||||||
kernel can take over. event = FREEZE, flags = KEXEC
|
|
||||||
|
|
||||||
Powerdown at end of swsusp -- very similar to SYSTEM_SHUTDOWN, except wake
|
|
||||||
may need to be enabled on some devices. This actually has at least 3
|
|
||||||
subtypes, system can reboot, enter S4 and enter S5 at the end of
|
|
||||||
swsusp. event = FREEZE, flags = SWSUSP and one of SYSTEM_REBOOT,
|
|
||||||
SYSTEM_SHUTDOWN, SYSTEM_S4
|
|
||||||
|
|
||||||
Suspend to ram -- put devices into low power state. event = SUSPEND,
|
|
||||||
flags = SUSPEND_TO_RAM
|
|
||||||
|
|
||||||
Freeze for swsusp snapshot -- stop DMA and interrupts. No need to put
|
|
||||||
devices into low power mode, but you must be able to reinitialize
|
|
||||||
device from scratch in resume method. This has two flavors, its done
|
|
||||||
once on suspending kernel, once on resuming kernel. event = FREEZE,
|
|
||||||
flags = DURING_SUSPEND or DURING_RESUME
|
|
||||||
|
|
||||||
Device detach requested from /sys -- deinitialize device; proably same as
|
|
||||||
SYSTEM_SHUTDOWN, I do not understand this one too much. probably event
|
|
||||||
= FREEZE, flags = DEV_DETACH.
|
|
||||||
|
|
||||||
#These are not really events sent:
|
|
||||||
#
|
|
||||||
#System fully on -- device is working normally; this is probably never
|
|
||||||
#passed to suspend() method... event = ON, flags = 0
|
|
||||||
#
|
|
||||||
#Ready after resume -- userland is now running, again. Time to free any
|
|
||||||
#memory you ate during prepare to suspend... event = ON, flags =
|
|
||||||
#READY_AFTER_RESUME
|
|
||||||
#
|
|
||||||
|
|
||||||
|
|
||||||
pm_message_t meaning
|
pm_message_t meaning
|
||||||
|
|
||||||
pm_message_t has two fields. event ("major"), and flags. If driver
|
pm_message_t has two fields. event ("major"), and flags. If driver
|
||||||
|
|
|
@ -18,10 +18,11 @@ Some warnings, first.
|
||||||
*
|
*
|
||||||
* (*) suspend/resume support is needed to make it safe.
|
* (*) suspend/resume support is needed to make it safe.
|
||||||
*
|
*
|
||||||
* If you have any filesystems on USB devices mounted before suspend,
|
* If you have any filesystems on USB devices mounted before software suspend,
|
||||||
* they won't be accessible after resume and you may lose data, as though
|
* they won't be accessible after resume and you may lose data, as though
|
||||||
* you have unplugged the USB devices with mounted filesystems on them
|
* you have unplugged the USB devices with mounted filesystems on them;
|
||||||
* (see the FAQ below for details).
|
* see the FAQ below for details. (This is not true for more traditional
|
||||||
|
* power states like "standby", which normally don't turn USB off.)
|
||||||
|
|
||||||
You need to append resume=/dev/your_swap_partition to kernel command
|
You need to append resume=/dev/your_swap_partition to kernel command
|
||||||
line. Then you suspend by
|
line. Then you suspend by
|
||||||
|
@ -204,7 +205,7 @@ Q: There don't seem to be any generally useful behavioral
|
||||||
distinctions between SUSPEND and FREEZE.
|
distinctions between SUSPEND and FREEZE.
|
||||||
|
|
||||||
A: Doing SUSPEND when you are asked to do FREEZE is always correct,
|
A: Doing SUSPEND when you are asked to do FREEZE is always correct,
|
||||||
but it may be unneccessarily slow. If you want USB to stay simple,
|
but it may be unneccessarily slow. If you want your driver to stay simple,
|
||||||
slowness may not matter to you. It can always be fixed later.
|
slowness may not matter to you. It can always be fixed later.
|
||||||
|
|
||||||
For devices like disk it does matter, you do not want to spindown for
|
For devices like disk it does matter, you do not want to spindown for
|
||||||
|
@ -357,17 +358,25 @@ Q: Is this true that if I have a mounted filesystem on a USB device and
|
||||||
I suspend to disk, I can lose data unless the filesystem has been mounted
|
I suspend to disk, I can lose data unless the filesystem has been mounted
|
||||||
with "sync"?
|
with "sync"?
|
||||||
|
|
||||||
A: That's right. It depends on your hardware, and it could be true even for
|
A: That's right ... if you disconnect that device, you may lose data.
|
||||||
suspend-to-RAM. In fact, even with "-o sync" you can lose data if your
|
In fact, even with "-o sync" you can lose data if your programs have
|
||||||
programs have information in buffers they haven't written out to disk.
|
information in buffers they haven't written out to a disk you disconnect,
|
||||||
|
or if you disconnect before the device finished saving data you wrote.
|
||||||
|
|
||||||
If you're lucky, your hardware will support low-power modes for USB
|
Software suspend normally powers down USB controllers, which is equivalent
|
||||||
controllers while the system is asleep. Lots of hardware doesn't,
|
to disconnecting all USB devices attached to your system.
|
||||||
however. Shutting off the power to a USB controller is equivalent to
|
|
||||||
unplugging all the attached devices.
|
Your system might well support low-power modes for its USB controllers
|
||||||
|
while the system is asleep, maintaining the connection, using true sleep
|
||||||
|
modes like "suspend-to-RAM" or "standby". (Don't write "disk" to the
|
||||||
|
/sys/power/state file; write "standby" or "mem".) We've not seen any
|
||||||
|
hardware that can use these modes through software suspend, although in
|
||||||
|
theory some systems might support "platform" or "firmware" modes that
|
||||||
|
won't break the USB connections.
|
||||||
|
|
||||||
Remember that it's always a bad idea to unplug a disk drive containing a
|
Remember that it's always a bad idea to unplug a disk drive containing a
|
||||||
mounted filesystem. With USB that's true even when your system is asleep!
|
mounted filesystem. That's true even when your system is asleep! The
|
||||||
The safest thing is to unmount all USB-based filesystems before suspending
|
safest thing is to unmount all filesystems on removable media (such USB,
|
||||||
and remount them after resuming.
|
Firewire, CompactFlash, MMC, external SATA, or even IDE hotplug bays)
|
||||||
|
before suspending; then remount them after resuming.
|
||||||
|
|
||||||
|
|
|
@ -30,8 +30,6 @@ aic7xxx.txt
|
||||||
- info on driver for Adaptec controllers
|
- info on driver for Adaptec controllers
|
||||||
aic7xxx_old.txt
|
aic7xxx_old.txt
|
||||||
- info on driver for Adaptec controllers, old generation
|
- info on driver for Adaptec controllers, old generation
|
||||||
cpqfc.txt
|
|
||||||
- info on driver for Compaq Tachyon TS adapters
|
|
||||||
dpti.txt
|
dpti.txt
|
||||||
- info on driver for DPT SmartRAID and Adaptec I2O RAID based adapters
|
- info on driver for DPT SmartRAID and Adaptec I2O RAID based adapters
|
||||||
dtc3x80.txt
|
dtc3x80.txt
|
||||||
|
|
|
@ -1,3 +1,16 @@
|
||||||
|
|
||||||
|
1 Release Date : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
|
||||||
|
2 Current Version : 00.00.02.04
|
||||||
|
3 Older Version : 00.00.02.04
|
||||||
|
|
||||||
|
i. Remove superflous instance_lock
|
||||||
|
|
||||||
|
gets rid of the otherwise superflous instance_lock and avoids an unsave
|
||||||
|
unsynchronized access in the error handler.
|
||||||
|
|
||||||
|
- Christoph Hellwig <hch@lst.de>
|
||||||
|
|
||||||
|
|
||||||
1 Release Date : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
|
1 Release Date : Wed Feb 03 14:31:44 PST 2006 - Sumant Patro <Sumant.Patro@lsil.com>
|
||||||
2 Current Version : 00.00.02.04
|
2 Current Version : 00.00.02.04
|
||||||
3 Older Version : 00.00.02.04
|
3 Older Version : 00.00.02.04
|
||||||
|
|
|
@ -24,10 +24,10 @@ Supported Cards/Chipsets
|
||||||
9005:0285:9005:0296 Adaptec 2240S (SabreExpress)
|
9005:0285:9005:0296 Adaptec 2240S (SabreExpress)
|
||||||
9005:0285:9005:0290 Adaptec 2410SA (Jaguar)
|
9005:0285:9005:0290 Adaptec 2410SA (Jaguar)
|
||||||
9005:0285:9005:0293 Adaptec 21610SA (Corsair-16)
|
9005:0285:9005:0293 Adaptec 21610SA (Corsair-16)
|
||||||
9005:0285:103c:3227 Adaptec 2610SA (Bearcat)
|
9005:0285:103c:3227 Adaptec 2610SA (Bearcat HP release)
|
||||||
9005:0285:9005:0292 Adaptec 2810SA (Corsair-8)
|
9005:0285:9005:0292 Adaptec 2810SA (Corsair-8)
|
||||||
9005:0285:9005:0294 Adaptec Prowler
|
9005:0285:9005:0294 Adaptec Prowler
|
||||||
9005:0286:9005:029d Adaptec 2420SA (Intruder)
|
9005:0286:9005:029d Adaptec 2420SA (Intruder HP release)
|
||||||
9005:0286:9005:029c Adaptec 2620SA (Intruder)
|
9005:0286:9005:029c Adaptec 2620SA (Intruder)
|
||||||
9005:0286:9005:029b Adaptec 2820SA (Intruder)
|
9005:0286:9005:029b Adaptec 2820SA (Intruder)
|
||||||
9005:0286:9005:02a7 Adaptec 2830SA (Skyray)
|
9005:0286:9005:02a7 Adaptec 2830SA (Skyray)
|
||||||
|
@ -38,7 +38,7 @@ Supported Cards/Chipsets
|
||||||
9005:0285:9005:0297 Adaptec 4005SAS (AvonPark)
|
9005:0285:9005:0297 Adaptec 4005SAS (AvonPark)
|
||||||
9005:0285:9005:0299 Adaptec 4800SAS (Marauder-X)
|
9005:0285:9005:0299 Adaptec 4800SAS (Marauder-X)
|
||||||
9005:0285:9005:029a Adaptec 4805SAS (Marauder-E)
|
9005:0285:9005:029a Adaptec 4805SAS (Marauder-E)
|
||||||
9005:0286:9005:02a2 Adaptec 4810SAS (Hurricane)
|
9005:0286:9005:02a2 Adaptec 3800SAS (Hurricane44)
|
||||||
1011:0046:9005:0364 Adaptec 5400S (Mustang)
|
1011:0046:9005:0364 Adaptec 5400S (Mustang)
|
||||||
1011:0046:9005:0365 Adaptec 5400S (Mustang)
|
1011:0046:9005:0365 Adaptec 5400S (Mustang)
|
||||||
9005:0283:9005:0283 Adaptec Catapult (3210S with arc firmware)
|
9005:0283:9005:0283 Adaptec Catapult (3210S with arc firmware)
|
||||||
|
@ -72,7 +72,7 @@ Supported Cards/Chipsets
|
||||||
9005:0286:9005:02a1 ICP ICP9087MA (Lancer)
|
9005:0286:9005:02a1 ICP ICP9087MA (Lancer)
|
||||||
9005:0286:9005:02a4 ICP ICP9085LI (Marauder-X)
|
9005:0286:9005:02a4 ICP ICP9085LI (Marauder-X)
|
||||||
9005:0286:9005:02a5 ICP ICP5085BR (Marauder-E)
|
9005:0286:9005:02a5 ICP ICP5085BR (Marauder-E)
|
||||||
9005:0286:9005:02a3 ICP ICP5085AU (Hurricane)
|
9005:0286:9005:02a3 ICP ICP5445AU (Hurricane44)
|
||||||
9005:0286:9005:02a6 ICP ICP9067MA (Intruder-6)
|
9005:0286:9005:02a6 ICP ICP9067MA (Intruder-6)
|
||||||
9005:0286:9005:02a9 ICP ICP5087AU (Skyray)
|
9005:0286:9005:02a9 ICP ICP5087AU (Skyray)
|
||||||
9005:0286:9005:02aa ICP ICP5047AU (Skyray)
|
9005:0286:9005:02aa ICP ICP5047AU (Skyray)
|
||||||
|
|
|
@ -1,272 +0,0 @@
|
||||||
Notes for CPQFCTS driver for Compaq Tachyon TS
|
|
||||||
Fibre Channel Host Bus Adapter, PCI 64-bit, 66MHz
|
|
||||||
for Linux (RH 6.1, 6.2 kernel 2.2.12-32, 2.2.14-5)
|
|
||||||
SMP tested
|
|
||||||
Tested in single and dual HBA configuration, 32 and 64bit busses,
|
|
||||||
33 and 66MHz. Only supports FC-AL.
|
|
||||||
SEST size 512 Exchanges (simultaneous I/Os) limited by module kmalloc()
|
|
||||||
max of 128k bytes contiguous.
|
|
||||||
|
|
||||||
Ver 2.5.4 Oct 03, 2002
|
|
||||||
* fixed memcpy of sense buffer in ioctl to copy the smaller defined size
|
|
||||||
Ver 2.5.3 Aug 01, 2002
|
|
||||||
* fix the passthru ioctl to handle the Scsi_Cmnd->request being a pointer
|
|
||||||
Ver 2.5.1 Jul 30, 2002
|
|
||||||
* fix ioctl to pay attention to the specified LUN.
|
|
||||||
Ver 2.5.0 Nov 29, 2001
|
|
||||||
* eliminated io_request_lock. This change makes the driver specific
|
|
||||||
to the 2.5.x kernels.
|
|
||||||
* silenced excessively noisy printks.
|
|
||||||
|
|
||||||
Ver 2.1.2 July 23, 2002
|
|
||||||
* initialize DumCmnd->lun in cpqfcTS_ioctl (used in fcFindLoggedInPorts as LUN index)
|
|
||||||
|
|
||||||
Ver 2.1.1 Oct 18, 2001
|
|
||||||
* reinitialize Cmnd->SCp.sent_command (used to identify commands as
|
|
||||||
passthrus) on calling scsi_done, since the scsi mid layer does not
|
|
||||||
use (or reinitialize) this field to prevent subsequent comands from
|
|
||||||
having it set incorrectly.
|
|
||||||
|
|
||||||
Ver 2.1.0 Aug 27, 2001
|
|
||||||
* Revise driver to use new kernel 2.4.x PCI DMA API, instead of
|
|
||||||
virt_to_bus(). (enables driver to work w/ ia64 systems with >2Gb RAM.)
|
|
||||||
Rework main scatter-gather code to handle cases where SG element
|
|
||||||
lengths are larger than 0x7FFFF bytes and use as many scatter
|
|
||||||
gather pages as necessary. (Steve Cameron)
|
|
||||||
* Makefile changes to bring cpqfc into line w/ rest of SCSI drivers
|
|
||||||
(thanks to Keith Owens)
|
|
||||||
|
|
||||||
Ver 2.0.5 Aug 06, 2001
|
|
||||||
* Reject non-existent luns in the driver rather than letting the
|
|
||||||
hardware do it. (some HW behaves differently than others in this area.)
|
|
||||||
* Changed Makefile to rely on "make dep" instead of explicit dependencies
|
|
||||||
* ifdef'ed out fibre channel analyzer triggering debug code
|
|
||||||
* fixed a jiffies wrapping issue
|
|
||||||
|
|
||||||
Ver 2.0.4 Aug 01, 2001
|
|
||||||
* Incorporated fix for target device reset from Steeleye
|
|
||||||
* Fixed passthrough ioctl so it doesn't hang.
|
|
||||||
* Fixed hang in launch_FCworker_thread() that occurred on some machines.
|
|
||||||
* Avoid problem when number of volumes in a single cabinet > 8
|
|
||||||
|
|
||||||
Ver 2.0.2 July 23, 2001
|
|
||||||
Changed the semiphore changes so the driver would compile in 2.4.7.
|
|
||||||
This version is for 2.4.7 and beyond.
|
|
||||||
|
|
||||||
Ver 2.0.1 May 7, 2001
|
|
||||||
Merged version 1.3.6 fixes into version 2.0.0.
|
|
||||||
|
|
||||||
Ver 2.0.0 May 7, 2001
|
|
||||||
Fixed problem so spinlock is being initialized to UNLOCKED.
|
|
||||||
Fixed updated driver so it compiles in the 2.4 tree.
|
|
||||||
|
|
||||||
Ver 1.3.6 Feb 27, 2001
|
|
||||||
Added Target_Device_Reset function for SCSI error handling
|
|
||||||
Fixed problem with not reseting addressing mode after implicit logout
|
|
||||||
|
|
||||||
|
|
||||||
Ver 1.3.4 Sep 7, 2000
|
|
||||||
Added Modinfo information
|
|
||||||
Fixed problem with statically linking the driver
|
|
||||||
|
|
||||||
Ver 1.3.3, Aug 23, 2000
|
|
||||||
Fixed device/function number in ioctl
|
|
||||||
|
|
||||||
Ver 1.3.2, July 27, 2000
|
|
||||||
Add include for Alpha compile on 2.2.14 kernel (cpq*i2c.c)
|
|
||||||
Change logic for different FCP-RSP sense_buffer location for HSG80 target
|
|
||||||
And search for Agilent Tachyon XL2 HBAs (not finished! - in test)
|
|
||||||
|
|
||||||
Tested with
|
|
||||||
(storage):
|
|
||||||
Compaq RA-4x000, RAID firmware ver 2.40 - 2.54
|
|
||||||
Seagate FC drives model ST39102FC, rev 0006
|
|
||||||
Hitachi DK31CJ-72FC rev J8A8
|
|
||||||
IBM DDYF-T18350R rev F60K
|
|
||||||
Compaq FC-SCSI bridge w/ DLT 35/70 Gb DLT (tape)
|
|
||||||
(servers):
|
|
||||||
Compaq PL-1850R
|
|
||||||
Compaq PL-6500 Xeon (400MHz)
|
|
||||||
Compaq PL-8500 (500MHz, 66MHz, 64bit PCI)
|
|
||||||
Compaq Alpha DS20 (RH 6.1)
|
|
||||||
(hubs):
|
|
||||||
Vixel Rapport 1000 (7-port "dumb")
|
|
||||||
Gadzoox Gibralter (12-port "dumb")
|
|
||||||
Gadzoox Capellix 2000, 3000
|
|
||||||
(switches):
|
|
||||||
Brocade 2010, 2400, 2800, rev 2.0.3a (& later)
|
|
||||||
Gadzoox 3210 (Fabric blade beta)
|
|
||||||
Vixel 7100 (Fabric beta firmare - known hot plug issues)
|
|
||||||
using "qa_test" (esp. io_test script) suite modified from Unix tests.
|
|
||||||
|
|
||||||
Installation:
|
|
||||||
make menuconfig
|
|
||||||
(select SCSI low-level, Compaq FC HBA)
|
|
||||||
make modules
|
|
||||||
make modules_install
|
|
||||||
|
|
||||||
e.g. insmod -f cpqfc
|
|
||||||
|
|
||||||
Due to Fabric/switch delays, driver requires 4 seconds
|
|
||||||
to initialize. If adapters are found, there will be a entries at
|
|
||||||
/proc/scsi/cpqfcTS/*
|
|
||||||
|
|
||||||
sample contents of startup messages
|
|
||||||
|
|
||||||
*************************
|
|
||||||
scsi_register allocating 3596 bytes for CPQFCHBA
|
|
||||||
ioremap'd Membase: c887e600
|
|
||||||
HBA Tachyon RevId 1.2
|
|
||||||
Allocating 119808 for 576 Exchanges @ c0dc0000
|
|
||||||
Allocating 112904 for LinkQ @ c0c20000 (576 elements)
|
|
||||||
Allocating 110600 for TachSEST for 512 Exchanges
|
|
||||||
cpqfcTS: writing IMQ BASE 7C0000h PI 7C4000h
|
|
||||||
cpqfcTS: SEST c0e40000(virt): Wrote base E40000h @ c887e740
|
|
||||||
cpqfcTS: New FC port 0000E8h WWN: 500507650642499D SCSI Chan/Trgt 0/0
|
|
||||||
cpqfcTS: New FC port 0000EFh WWN: 50000E100000D5A6 SCSI Chan/Trgt 0/1
|
|
||||||
cpqfcTS: New FC port 0000E4h WWN: 21000020370097BB SCSI Chan/Trgt 0/2
|
|
||||||
cpqfcTS: New FC port 0000E2h WWN: 2100002037009946 SCSI Chan/Trgt 0/3
|
|
||||||
cpqfcTS: New FC port 0000E1h WWN: 21000020370098FE SCSI Chan/Trgt 0/4
|
|
||||||
cpqfcTS: New FC port 0000E0h WWN: 21000020370097B2 SCSI Chan/Trgt 0/5
|
|
||||||
cpqfcTS: New FC port 0000DCh WWN: 2100002037006CC1 SCSI Chan/Trgt 0/6
|
|
||||||
cpqfcTS: New FC port 0000DAh WWN: 21000020370059F6 SCSI Chan/Trgt 0/7
|
|
||||||
cpqfcTS: New FC port 00000Fh WWN: 500805F1FADB0E20 SCSI Chan/Trgt 0/8
|
|
||||||
cpqfcTS: New FC port 000008h WWN: 500805F1FADB0EBA SCSI Chan/Trgt 0/9
|
|
||||||
cpqfcTS: New FC port 000004h WWN: 500805F1FADB1EB9 SCSI Chan/Trgt 0/10
|
|
||||||
cpqfcTS: New FC port 000002h WWN: 500805F1FADB1ADE SCSI Chan/Trgt 0/11
|
|
||||||
cpqfcTS: New FC port 000001h WWN: 500805F1FADBA2CA SCSI Chan/Trgt 0/12
|
|
||||||
scsi4 : Compaq FibreChannel HBA Tachyon TS HPFC-5166A/1.2: WWN 500508B200193F50
|
|
||||||
on PCI bus 0 device 0xa0fc irq 5 IObaseL 0x3400, MEMBASE 0xc6ef8600
|
|
||||||
PCI bus width 32 bits, bus speed 33 MHz
|
|
||||||
FCP-SCSI Driver v1.3.0
|
|
||||||
GBIC detected: Short-wave. LPSM 0h Monitor
|
|
||||||
scsi : 5 hosts.
|
|
||||||
Vendor: IBM Model: DDYF-T18350R Rev: F60K
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 03
|
|
||||||
Detected scsi disk sdb at scsi4, channel 0, id 0, lun 0
|
|
||||||
Vendor: HITACHI Model: DK31CJ-72FC Rev: J8A8
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdc at scsi4, channel 0, id 1, lun 0
|
|
||||||
Vendor: SEAGATE Model: ST39102FC Rev: 0006
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdd at scsi4, channel 0, id 2, lun 0
|
|
||||||
Vendor: SEAGATE Model: ST39102FC Rev: 0006
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sde at scsi4, channel 0, id 3, lun 0
|
|
||||||
Vendor: SEAGATE Model: ST39102FC Rev: 0006
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdf at scsi4, channel 0, id 4, lun 0
|
|
||||||
Vendor: SEAGATE Model: ST39102FC Rev: 0006
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdg at scsi4, channel 0, id 5, lun 0
|
|
||||||
Vendor: SEAGATE Model: ST39102FC Rev: 0006
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdh at scsi4, channel 0, id 6, lun 0
|
|
||||||
Vendor: SEAGATE Model: ST39102FC Rev: 0006
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdi at scsi4, channel 0, id 7, lun 0
|
|
||||||
Vendor: COMPAQ Model: LOGICAL VOLUME Rev: 2.48
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdj at scsi4, channel 0, id 8, lun 0
|
|
||||||
Vendor: COMPAQ Model: LOGICAL VOLUME Rev: 2.48
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdk at scsi4, channel 0, id 8, lun 1
|
|
||||||
Vendor: COMPAQ Model: LOGICAL VOLUME Rev: 2.40
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdl at scsi4, channel 0, id 9, lun 0
|
|
||||||
Vendor: COMPAQ Model: LOGICAL VOLUME Rev: 2.40
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdm at scsi4, channel 0, id 9, lun 1
|
|
||||||
Vendor: COMPAQ Model: LOGICAL VOLUME Rev: 2.54
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdn at scsi4, channel 0, id 10, lun 0
|
|
||||||
Vendor: COMPAQ Model: LOGICAL VOLUME Rev: 2.54
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdo at scsi4, channel 0, id 11, lun 0
|
|
||||||
Vendor: COMPAQ Model: LOGICAL VOLUME Rev: 2.54
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdp at scsi4, channel 0, id 11, lun 1
|
|
||||||
Vendor: COMPAQ Model: LOGICAL VOLUME Rev: 2.54
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdq at scsi4, channel 0, id 12, lun 0
|
|
||||||
Vendor: COMPAQ Model: LOGICAL VOLUME Rev: 2.54
|
|
||||||
Type: Direct-Access ANSI SCSI revision: 02
|
|
||||||
Detected scsi disk sdr at scsi4, channel 0, id 12, lun 1
|
|
||||||
resize_dma_pool: unknown device type 12
|
|
||||||
resize_dma_pool: unknown device type 12
|
|
||||||
SCSI device sdb: hdwr sector= 512 bytes. Sectors= 35843670 [17501 MB] [17.5 GB]
|
|
||||||
sdb: sdb1
|
|
||||||
SCSI device sdc: hdwr sector= 512 bytes. Sectors= 144410880 [70513 MB] [70.5 GB]
|
|
||||||
sdc: sdc1
|
|
||||||
SCSI device sdd: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7 GB]
|
|
||||||
sdd: sdd1
|
|
||||||
SCSI device sde: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7 GB]
|
|
||||||
sde: sde1
|
|
||||||
SCSI device sdf: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7 GB]
|
|
||||||
sdf: sdf1
|
|
||||||
SCSI device sdg: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7 GB]
|
|
||||||
sdg: sdg1
|
|
||||||
SCSI device sdh: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7 GB]
|
|
||||||
sdh: sdh1
|
|
||||||
SCSI device sdi: hdwr sector= 512 bytes. Sectors= 17783240 [8683 MB] [8.7 GB]
|
|
||||||
sdi: sdi1
|
|
||||||
SCSI device sdj: hdwr sector= 512 bytes. Sectors= 2056160 [1003 MB] [1.0 GB]
|
|
||||||
sdj: sdj1
|
|
||||||
SCSI device sdk: hdwr sector= 512 bytes. Sectors= 2052736 [1002 MB] [1.0 GB]
|
|
||||||
sdk: sdk1
|
|
||||||
SCSI device sdl: hdwr sector= 512 bytes. Sectors= 17764320 [8673 MB] [8.7 GB]
|
|
||||||
sdl: sdl1
|
|
||||||
SCSI device sdm: hdwr sector= 512 bytes. Sectors= 8380320 [4091 MB] [4.1 GB]
|
|
||||||
sdm: sdm1
|
|
||||||
SCSI device sdn: hdwr sector= 512 bytes. Sectors= 17764320 [8673 MB] [8.7 GB]
|
|
||||||
sdn: sdn1
|
|
||||||
SCSI device sdo: hdwr sector= 512 bytes. Sectors= 17764320 [8673 MB] [8.7 GB]
|
|
||||||
sdo: sdo1
|
|
||||||
SCSI device sdp: hdwr sector= 512 bytes. Sectors= 17764320 [8673 MB] [8.7 GB]
|
|
||||||
sdp: sdp1
|
|
||||||
SCSI device sdq: hdwr sector= 512 bytes. Sectors= 2056160 [1003 MB] [1.0 GB]
|
|
||||||
sdq: sdq1
|
|
||||||
SCSI device sdr: hdwr sector= 512 bytes. Sectors= 2052736 [1002 MB] [1.0 GB]
|
|
||||||
sdr: sdr1
|
|
||||||
|
|
||||||
*************************
|
|
||||||
|
|
||||||
If a GBIC of type Short-wave, Long-wave, or Copper is detected, it will
|
|
||||||
print out; otherwise, "none" is displayed. If the cabling is correct
|
|
||||||
and a loop circuit is completed, you should see "Monitor"; otherwise,
|
|
||||||
"LoopFail" (on open circuit) or some LPSM number/state with bit 3 set.
|
|
||||||
|
|
||||||
|
|
||||||
ERRATA:
|
|
||||||
1. Normally, Linux Scsi queries FC devices with INQUIRY strings. All LUNs
|
|
||||||
found according to INQUIRY should get READ commands at sector 0 to find
|
|
||||||
partition table, etc. Older kernels only query the first 4 devices. Some
|
|
||||||
Linux kernels only look for one LUN per target (i.e. FC device).
|
|
||||||
|
|
||||||
2. Physically removing a device, or a malfunctioning system which hides a
|
|
||||||
device, leads to a 30-second timeout and subsequent _abort call.
|
|
||||||
In some process contexts, this will hang the kernel (crashing the system).
|
|
||||||
Single bit errors in frames and virtually all hot plugging events are
|
|
||||||
gracefully handled with internal driver timer and Abort processing.
|
|
||||||
|
|
||||||
3. Some SCSI drives with error conditions will not handle the 7 second timeout
|
|
||||||
in this software driver, leading to infinite retries on timed out SCSI commands.
|
|
||||||
The 7 secs balances the need to quickly recover from lost frames (esp. on sequence
|
|
||||||
initiatives) and time needed by older/slower/error-state drives in responding.
|
|
||||||
This can be easily changed in "Exchanges[].timeOut".
|
|
||||||
|
|
||||||
4. Due to the nature of FC soft addressing, there is no assurance that the
|
|
||||||
same LUNs (drives) will have the same path (e.g. /dev/sdb1) from one boot to
|
|
||||||
next. Dynamic soft address changes (i.e. 24-bit FC port_id) are
|
|
||||||
supported during run time (e.g. due to hot plug event) by the use of WWN to
|
|
||||||
SCSI Nexus (channel/target/LUN) mapping.
|
|
||||||
|
|
||||||
5. Compaq RA4x00 firmware version 2.54 and later supports SSP (Selective
|
|
||||||
Storage Presentation), which maps LUNs to a WWN. If RA4x00 firmware prior
|
|
||||||
2.54 (e.g. older controller) is used, or the FC HBA is replaced (another WWN
|
|
||||||
is used), logical volumes on the RA4x00 will no longer be visible.
|
|
||||||
|
|
||||||
|
|
||||||
Send questions/comments to:
|
|
||||||
Amy Vanzant-Hodge (fibrechannel@compaq.com)
|
|
||||||
|
|
|
@ -0,0 +1,92 @@
|
||||||
|
HIGHPOINT ROCKETRAID 3xxx RAID DRIVER (hptiop)
|
||||||
|
|
||||||
|
Controller Register Map
|
||||||
|
-------------------------
|
||||||
|
|
||||||
|
The controller IOP is accessed via PCI BAR0.
|
||||||
|
|
||||||
|
BAR0 offset Register
|
||||||
|
0x10 Inbound Message Register 0
|
||||||
|
0x14 Inbound Message Register 1
|
||||||
|
0x18 Outbound Message Register 0
|
||||||
|
0x1C Outbound Message Register 1
|
||||||
|
0x20 Inbound Doorbell Register
|
||||||
|
0x24 Inbound Interrupt Status Register
|
||||||
|
0x28 Inbound Interrupt Mask Register
|
||||||
|
0x30 Outbound Interrupt Status Register
|
||||||
|
0x34 Outbound Interrupt Mask Register
|
||||||
|
0x40 Inbound Queue Port
|
||||||
|
0x44 Outbound Queue Port
|
||||||
|
|
||||||
|
|
||||||
|
I/O Request Workflow
|
||||||
|
----------------------
|
||||||
|
|
||||||
|
All queued requests are handled via inbound/outbound queue port.
|
||||||
|
A request packet can be allocated in either IOP or host memory.
|
||||||
|
|
||||||
|
To send a request to the controller:
|
||||||
|
|
||||||
|
- Get a free request packet by reading the inbound queue port or
|
||||||
|
allocate a free request in host DMA coherent memory.
|
||||||
|
|
||||||
|
The value returned from the inbound queue port is an offset
|
||||||
|
relative to the IOP BAR0.
|
||||||
|
|
||||||
|
Requests allocated in host memory must be aligned on 32-bytes boundary.
|
||||||
|
|
||||||
|
- Fill the packet.
|
||||||
|
|
||||||
|
- Post the packet to IOP by writing it to inbound queue. For requests
|
||||||
|
allocated in IOP memory, write the offset to inbound queue port. For
|
||||||
|
requests allocated in host memory, write (0x80000000|(bus_addr>>5))
|
||||||
|
to the inbound queue port.
|
||||||
|
|
||||||
|
- The IOP process the request. When the request is completed, it
|
||||||
|
will be put into outbound queue. An outbound interrupt will be
|
||||||
|
generated.
|
||||||
|
|
||||||
|
For requests allocated in IOP memory, the request offset is posted to
|
||||||
|
outbound queue.
|
||||||
|
|
||||||
|
For requests allocated in host memory, (0x80000000|(bus_addr>>5))
|
||||||
|
is posted to the outbound queue. If IOP_REQUEST_FLAG_OUTPUT_CONTEXT
|
||||||
|
flag is set in the request, the low 32-bit context value will be
|
||||||
|
posted instead.
|
||||||
|
|
||||||
|
- The host read the outbound queue and complete the request.
|
||||||
|
|
||||||
|
For requests allocated in IOP memory, the host driver free the request
|
||||||
|
by writing it to the outbound queue.
|
||||||
|
|
||||||
|
Non-queued requests (reset/flush etc) can be sent via inbound message
|
||||||
|
register 0. An outbound message with the same value indicates the completion
|
||||||
|
of an inbound message.
|
||||||
|
|
||||||
|
|
||||||
|
User-level Interface
|
||||||
|
---------------------
|
||||||
|
|
||||||
|
The driver exposes following sysfs attributes:
|
||||||
|
|
||||||
|
NAME R/W Description
|
||||||
|
driver-version R driver version string
|
||||||
|
firmware-version R firmware version string
|
||||||
|
|
||||||
|
The driver registers char device "hptiop" to communicate with HighPoint RAID
|
||||||
|
management software. Its ioctl routine acts as a general binary interface
|
||||||
|
between the IOP firmware and HighPoint RAID management software. New management
|
||||||
|
functions can be implemented in application/firmware without modification
|
||||||
|
in driver code.
|
||||||
|
|
||||||
|
|
||||||
|
-----------------------------------------------------------------------------
|
||||||
|
Copyright (C) 2006 HighPoint Technologies, Inc. All Rights Reserved.
|
||||||
|
|
||||||
|
This file 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.
|
||||||
|
|
||||||
|
linux@highpoint-tech.com
|
||||||
|
http://www.highpoint-tech.com
|
|
@ -366,7 +366,9 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
|
||||||
|
|
||||||
Module for C-Media CMI8338 and 8738 PCI sound cards.
|
Module for C-Media CMI8338 and 8738 PCI sound cards.
|
||||||
|
|
||||||
mpu_port - 0x300,0x310,0x320,0x330, 0 = disable (default)
|
mpu_port - 0x300,0x310,0x320,0x330 = legacy port,
|
||||||
|
1 = integrated PCI port,
|
||||||
|
0 = disable (default)
|
||||||
fm_port - 0x388 (default), 0 = disable (default)
|
fm_port - 0x388 (default), 0 = disable (default)
|
||||||
soft_ac3 - Software-conversion of raw SPDIF packets (model 033 only)
|
soft_ac3 - Software-conversion of raw SPDIF packets (model 033 only)
|
||||||
(default = 1)
|
(default = 1)
|
||||||
|
@ -468,7 +470,7 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
|
||||||
|
|
||||||
Module for multifunction CS5535 companion PCI device
|
Module for multifunction CS5535 companion PCI device
|
||||||
|
|
||||||
This module supports multiple cards.
|
The power-management is supported.
|
||||||
|
|
||||||
Module snd-dt019x
|
Module snd-dt019x
|
||||||
-----------------
|
-----------------
|
||||||
|
@ -707,8 +709,10 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
|
||||||
Module snd-hda-intel
|
Module snd-hda-intel
|
||||||
--------------------
|
--------------------
|
||||||
|
|
||||||
Module for Intel HD Audio (ICH6, ICH6M, ICH7), ATI SB450,
|
Module for Intel HD Audio (ICH6, ICH6M, ESB2, ICH7, ICH8),
|
||||||
VIA VT8251/VT8237A
|
ATI SB450, SB600, RS600,
|
||||||
|
VIA VT8251/VT8237A,
|
||||||
|
SIS966, ULI M5461
|
||||||
|
|
||||||
model - force the model name
|
model - force the model name
|
||||||
position_fix - Fix DMA pointer (0 = auto, 1 = none, 2 = POSBUF, 3 = FIFO size)
|
position_fix - Fix DMA pointer (0 = auto, 1 = none, 2 = POSBUF, 3 = FIFO size)
|
||||||
|
@ -778,6 +782,7 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
|
||||||
AD1981
|
AD1981
|
||||||
basic 3-jack (default)
|
basic 3-jack (default)
|
||||||
hp HP nx6320
|
hp HP nx6320
|
||||||
|
thinkpad Lenovo Thinkpad T60/X60/Z60
|
||||||
|
|
||||||
AD1986A
|
AD1986A
|
||||||
6stack 6-jack, separate surrounds (default)
|
6stack 6-jack, separate surrounds (default)
|
||||||
|
@ -1633,9 +1638,7 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
|
||||||
|
|
||||||
About capture IBL, see the description of snd-vx222 module.
|
About capture IBL, see the description of snd-vx222 module.
|
||||||
|
|
||||||
Note: the driver is build only when CONFIG_ISA is set.
|
Note: snd-vxp440 driver is merged to snd-vxpocket driver since
|
||||||
|
|
||||||
Note2: snd-vxp440 driver is merged to snd-vxpocket driver since
|
|
||||||
ALSA 1.0.10.
|
ALSA 1.0.10.
|
||||||
|
|
||||||
The power-management is supported.
|
The power-management is supported.
|
||||||
|
@ -1662,8 +1665,6 @@ Prior to version 0.9.0rc4 options had a 'snd_' prefix. This was removed.
|
||||||
|
|
||||||
Module for Sound Core PDAudioCF sound card.
|
Module for Sound Core PDAudioCF sound card.
|
||||||
|
|
||||||
Note: the driver is build only when CONFIG_ISA is set.
|
|
||||||
|
|
||||||
The power-management is supported.
|
The power-management is supported.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -4215,7 +4215,7 @@ struct _snd_pcm_runtime {
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
struct snd_rawmidi *rmidi;
|
struct snd_rawmidi *rmidi;
|
||||||
snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, port, integrated,
|
snd_mpu401_uart_new(card, 0, MPU401_HW_MPU401, port, info_flags,
|
||||||
irq, irq_flags, &rmidi);
|
irq, irq_flags, &rmidi);
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
|
@ -4242,15 +4242,36 @@ struct _snd_pcm_runtime {
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
|
The 5th argument is bitflags for additional information.
|
||||||
When the i/o port address above is a part of the PCI i/o
|
When the i/o port address above is a part of the PCI i/o
|
||||||
region, the MPU401 i/o port might have been already allocated
|
region, the MPU401 i/o port might have been already allocated
|
||||||
(reserved) by the driver itself. In such a case, pass non-zero
|
(reserved) by the driver itself. In such a case, pass a bit flag
|
||||||
to the 5th argument
|
<constant>MPU401_INFO_INTEGRATED</constant>,
|
||||||
(<parameter>integrated</parameter>). Otherwise, pass 0 to it,
|
|
||||||
and
|
and
|
||||||
the mpu401-uart layer will allocate the i/o ports by itself.
|
the mpu401-uart layer will allocate the i/o ports by itself.
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
When the controller supports only the input or output MIDI stream,
|
||||||
|
pass <constant>MPU401_INFO_INPUT</constant> or
|
||||||
|
<constant>MPU401_INFO_OUTPUT</constant> bitflag, respectively.
|
||||||
|
Then the rawmidi instance is created as a single stream.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
<constant>MPU401_INFO_MMIO</constant> bitflag is used to change
|
||||||
|
the access method to MMIO (via readb and writeb) instead of
|
||||||
|
iob and outb. In this case, you have to pass the iomapped address
|
||||||
|
to <function>snd_mpu401_uart_new()</function>.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
When <constant>MPU401_INFO_TX_IRQ</constant> is set, the output
|
||||||
|
stream isn't checked in the default interrupt handler. The driver
|
||||||
|
needs to call <function>snd_mpu401_uart_interrupt_tx()</function>
|
||||||
|
by itself to start processing the output stream in irq handler.
|
||||||
|
</para>
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
Usually, the port address corresponds to the command port and
|
Usually, the port address corresponds to the command port and
|
||||||
port + 1 corresponds to the data port. If not, you may change
|
port + 1 corresponds to the data port. If not, you may change
|
||||||
|
@ -5333,7 +5354,7 @@ struct _snd_pcm_runtime {
|
||||||
<informalexample>
|
<informalexample>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
snd_info_set_text_ops(entry, chip, read_size, my_proc_read);
|
snd_info_set_text_ops(entry, chip, my_proc_read);
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</informalexample>
|
</informalexample>
|
||||||
|
@ -5394,29 +5415,12 @@ struct _snd_pcm_runtime {
|
||||||
<informalexample>
|
<informalexample>
|
||||||
<programlisting>
|
<programlisting>
|
||||||
<![CDATA[
|
<![CDATA[
|
||||||
entry->c.text.write_size = 256;
|
|
||||||
entry->c.text.write = my_proc_write;
|
entry->c.text.write = my_proc_write;
|
||||||
]]>
|
]]>
|
||||||
</programlisting>
|
</programlisting>
|
||||||
</informalexample>
|
</informalexample>
|
||||||
</para>
|
</para>
|
||||||
|
|
||||||
<para>
|
|
||||||
The buffer size for read is set to 1024 implicitly by
|
|
||||||
<function>snd_info_set_text_ops()</function>. It should suffice
|
|
||||||
in most cases (the size will be aligned to
|
|
||||||
<constant>PAGE_SIZE</constant> anyway), but if you need to handle
|
|
||||||
very large text files, you can set it explicitly, too.
|
|
||||||
|
|
||||||
<informalexample>
|
|
||||||
<programlisting>
|
|
||||||
<![CDATA[
|
|
||||||
entry->c.text.read_size = 65536;
|
|
||||||
]]>
|
|
||||||
</programlisting>
|
|
||||||
</informalexample>
|
|
||||||
</para>
|
|
||||||
|
|
||||||
<para>
|
<para>
|
||||||
For the write callback, you can use
|
For the write callback, you can use
|
||||||
<function>snd_info_get_line()</function> to get a text line, and
|
<function>snd_info_get_line()</function> to get a text line, and
|
||||||
|
@ -5562,7 +5566,7 @@ struct _snd_pcm_runtime {
|
||||||
power status.</para></listitem>
|
power status.</para></listitem>
|
||||||
<listitem><para>Call <function>snd_pcm_suspend_all()</function> to suspend the running PCM streams.</para></listitem>
|
<listitem><para>Call <function>snd_pcm_suspend_all()</function> to suspend the running PCM streams.</para></listitem>
|
||||||
<listitem><para>If AC97 codecs are used, call
|
<listitem><para>If AC97 codecs are used, call
|
||||||
<function>snd_ac97_resume()</function> for each codec.</para></listitem>
|
<function>snd_ac97_suspend()</function> for each codec.</para></listitem>
|
||||||
<listitem><para>Save the register values if necessary.</para></listitem>
|
<listitem><para>Save the register values if necessary.</para></listitem>
|
||||||
<listitem><para>Stop the hardware if necessary.</para></listitem>
|
<listitem><para>Stop the hardware if necessary.</para></listitem>
|
||||||
<listitem><para>Disable the PCI device by calling
|
<listitem><para>Disable the PCI device by calling
|
||||||
|
|
|
@ -29,14 +29,13 @@ if usbmon is built into the kernel.
|
||||||
|
|
||||||
# mount -t debugfs none_debugs /sys/kernel/debug
|
# mount -t debugfs none_debugs /sys/kernel/debug
|
||||||
# modprobe usbmon
|
# modprobe usbmon
|
||||||
|
#
|
||||||
|
|
||||||
Verify that bus sockets are present.
|
Verify that bus sockets are present.
|
||||||
|
|
||||||
[root@lembas zaitcev]# ls /sys/kernel/debug/usbmon
|
# ls /sys/kernel/debug/usbmon
|
||||||
1s 1t 2s 2t 3s 3t 4s 4t
|
1s 1t 2s 2t 3s 3t 4s 4t
|
||||||
[root@lembas zaitcev]#
|
#
|
||||||
|
|
||||||
# ls /sys/kernel
|
|
||||||
|
|
||||||
2. Find which bus connects to the desired device
|
2. Find which bus connects to the desired device
|
||||||
|
|
||||||
|
@ -76,7 +75,7 @@ that the file size is not excessive for your favourite editor.
|
||||||
|
|
||||||
* Raw text data format
|
* Raw text data format
|
||||||
|
|
||||||
The '0t' type data consists of a stream of events, such as URB submission,
|
The '1t' type data consists of a stream of events, such as URB submission,
|
||||||
URB callback, submission error. Every event is a text line, which consists
|
URB callback, submission error. Every event is a text line, which consists
|
||||||
of whitespace separated words. The number of position of words may depend
|
of whitespace separated words. The number of position of words may depend
|
||||||
on the event type, but there is a set of words, common for all types.
|
on the event type, but there is a set of words, common for all types.
|
||||||
|
@ -97,20 +96,25 @@ Here is the list of words, from left to right:
|
||||||
Zi Zo Isochronous input and output
|
Zi Zo Isochronous input and output
|
||||||
Ii Io Interrupt input and output
|
Ii Io Interrupt input and output
|
||||||
Bi Bo Bulk input and output
|
Bi Bo Bulk input and output
|
||||||
Device address and Endpoint number are decimal numbers with leading zeroes
|
Device address and Endpoint number are 3-digit and 2-digit (respectively)
|
||||||
or 3 and 2 positions, correspondingly.
|
decimal numbers, with leading zeroes.
|
||||||
- URB Status. This field makes no sense for submissions, but is present
|
- URB Status. In most cases, this field contains a number, sometimes negative,
|
||||||
to help scripts with parsing. In error case, it contains the error code.
|
which represents a "status" field of the URB. This field makes no sense for
|
||||||
In case of a setup packet, it contains a Setup Tag. If scripts read a number
|
submissions, but is present anyway to help scripts with parsing. When an
|
||||||
in this field, they proceed to read Data Length. Otherwise, they read
|
error occurs, the field contains the error code. In case of a submission of
|
||||||
the setup packet before reading the Data Length.
|
a Control packet, this field contains a Setup Tag instead of an error code.
|
||||||
|
It is easy to tell whether the Setup Tag is present because it is never a
|
||||||
|
number. Thus if scripts find a number in this field, they proceed to read
|
||||||
|
Data Length. If they find something else, like a letter, they read the setup
|
||||||
|
packet before reading the Data Length.
|
||||||
- Setup packet, if present, consists of 5 words: one of each for bmRequestType,
|
- Setup packet, if present, consists of 5 words: one of each for bmRequestType,
|
||||||
bRequest, wValue, wIndex, wLength, as specified by the USB Specification 2.0.
|
bRequest, wValue, wIndex, wLength, as specified by the USB Specification 2.0.
|
||||||
These words are safe to decode if Setup Tag was 's'. Otherwise, the setup
|
These words are safe to decode if Setup Tag was 's'. Otherwise, the setup
|
||||||
packet was present, but not captured, and the fields contain filler.
|
packet was present, but not captured, and the fields contain filler.
|
||||||
- Data Length. This is the actual length in the URB.
|
- Data Length. For submissions, this is the requested length. For callbacks,
|
||||||
|
this is the actual length.
|
||||||
- Data tag. The usbmon may not always capture data, even if length is nonzero.
|
- Data tag. The usbmon may not always capture data, even if length is nonzero.
|
||||||
Only if tag is '=', the data words are present.
|
The data words are present only if this tag is '='.
|
||||||
- Data words follow, in big endian hexadecimal format. Notice that they are
|
- Data words follow, in big endian hexadecimal format. Notice that they are
|
||||||
not machine words, but really just a byte stream split into words to make
|
not machine words, but really just a byte stream split into words to make
|
||||||
it easier to read. Thus, the last word may contain from one to four bytes.
|
it easier to read. Thus, the last word may contain from one to four bytes.
|
||||||
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
Kernel driver ds2490
|
||||||
|
====================
|
||||||
|
|
||||||
|
Supported chips:
|
||||||
|
* Maxim DS2490 based
|
||||||
|
|
||||||
|
Author: Evgeniy Polyakov <johnpol@2ka.mipt.ru>
|
||||||
|
|
||||||
|
|
||||||
|
Description
|
||||||
|
-----------
|
||||||
|
|
||||||
|
The Maixm/Dallas Semiconductor DS2490 is a chip
|
||||||
|
which allows to build USB <-> W1 bridges.
|
||||||
|
|
||||||
|
DS9490(R) is a USB <-> W1 bus master device
|
||||||
|
which has 0x81 family ID integrated chip and DS2490
|
||||||
|
low-level operational chip.
|
|
@ -27,8 +27,19 @@ When a w1 master driver registers with the w1 subsystem, the following occurs:
|
||||||
|
|
||||||
When a device is found on the bus, w1 core checks if driver for it's family is
|
When a device is found on the bus, w1 core checks if driver for it's family is
|
||||||
loaded. If so, the family driver is attached to the slave.
|
loaded. If so, the family driver is attached to the slave.
|
||||||
If there is no driver for the family, a simple sysfs entry is created
|
If there is no driver for the family, default one is assigned, which allows to perform
|
||||||
for the slave device.
|
almost any kind of operations. Each logical operation is a transaction
|
||||||
|
in nature, which can contain several (two or one) low-level operations.
|
||||||
|
Let's see how one can read EEPROM context:
|
||||||
|
1. one must write control buffer, i.e. buffer containing command byte
|
||||||
|
and two byte address. At this step bus is reset and appropriate device
|
||||||
|
is selected using either W1_SKIP_ROM or W1_MATCH_ROM command.
|
||||||
|
Then provided control buffer is being written to the wire.
|
||||||
|
2. reading. This will issue reading eeprom response.
|
||||||
|
|
||||||
|
It is possible that between 1. and 2. w1 master thread will reset bus for searching
|
||||||
|
and slave device will be even removed, but in this case 0xff will
|
||||||
|
be read, since no device was selected.
|
||||||
|
|
||||||
|
|
||||||
W1 device families
|
W1 device families
|
||||||
|
@ -89,4 +100,5 @@ driver - (standard) symlink to the w1 driver
|
||||||
name - the device name, usually the same as the directory name
|
name - the device name, usually the same as the directory name
|
||||||
w1_slave - (optional) a binary file whose meaning depends on the
|
w1_slave - (optional) a binary file whose meaning depends on the
|
||||||
family driver
|
family driver
|
||||||
|
rw - (optional) created for slave devices which do not have
|
||||||
|
appropriate family driver. Allows to read/write binary data.
|
||||||
|
|
|
@ -0,0 +1,98 @@
|
||||||
|
Userspace communication protocol over connector [1].
|
||||||
|
|
||||||
|
|
||||||
|
Message types.
|
||||||
|
=============
|
||||||
|
|
||||||
|
There are three types of messages between w1 core and userspace:
|
||||||
|
1. Events. They are generated each time new master or slave device found
|
||||||
|
either due to automatic or requested search.
|
||||||
|
2. Userspace commands. Includes read/write and search/alarm search comamnds.
|
||||||
|
3. Replies to userspace commands.
|
||||||
|
|
||||||
|
|
||||||
|
Protocol.
|
||||||
|
========
|
||||||
|
|
||||||
|
[struct cn_msg] - connector header. It's length field is equal to size of the attached data.
|
||||||
|
[struct w1_netlink_msg] - w1 netlink header.
|
||||||
|
__u8 type - message type.
|
||||||
|
W1_SLAVE_ADD/W1_SLAVE_REMOVE - slave add/remove events.
|
||||||
|
W1_MASTER_ADD/W1_MASTER_REMOVE - master add/remove events.
|
||||||
|
W1_MASTER_CMD - userspace command for bus master device (search/alarm search).
|
||||||
|
W1_SLAVE_CMD - userspace command for slave device (read/write/ search/alarm search
|
||||||
|
for bus master device where given slave device found).
|
||||||
|
__u8 res - reserved
|
||||||
|
__u16 len - size of attached to this header data.
|
||||||
|
union {
|
||||||
|
__u8 id; - slave unique device id
|
||||||
|
struct w1_mst {
|
||||||
|
__u32 id; - master's id.
|
||||||
|
__u32 res; - reserved
|
||||||
|
} mst;
|
||||||
|
} id;
|
||||||
|
|
||||||
|
[strucrt w1_netlink_cmd] - command for gived master or slave device.
|
||||||
|
__u8 cmd - command opcode.
|
||||||
|
W1_CMD_READ - read command.
|
||||||
|
W1_CMD_WRITE - write command.
|
||||||
|
W1_CMD_SEARCH - search command.
|
||||||
|
W1_CMD_ALARM_SEARCH - alarm search command.
|
||||||
|
__u8 res - reserved
|
||||||
|
__u16 len - length of data for this command.
|
||||||
|
For read command data must be allocated like for write command.
|
||||||
|
__u8 data[0] - data for this command.
|
||||||
|
|
||||||
|
|
||||||
|
Each connector message can include one or more w1_netlink_msg with zero of more attached w1_netlink_cmd messages.
|
||||||
|
|
||||||
|
For event messages there are no w1_netlink_cmd embedded structures, only connector header
|
||||||
|
and w1_netlink_msg strucutre with "len" field being zero and filled type (one of event types)
|
||||||
|
and id - either 8 bytes of slave unique id in host order, or master's id, which is assigned
|
||||||
|
to bus master device when it is added to w1 core.
|
||||||
|
|
||||||
|
Currently replies to userspace commands are only generated for read command request.
|
||||||
|
One reply is generated exactly for one w1_netlink_cmd read request.
|
||||||
|
Replies are not combined when sent - i.e. typical reply messages looks like the following:
|
||||||
|
[cn_msg][w1_netlink_msg][w1_netlink_cmd]
|
||||||
|
cn_msg.len = sizeof(struct w1_netlink_msg) + sizeof(struct w1_netlink_cmd) + cmd->len;
|
||||||
|
w1_netlink_msg.len = sizeof(struct w1_netlink_cmd) + cmd->len;
|
||||||
|
w1_netlink_cmd.len = cmd->len;
|
||||||
|
|
||||||
|
|
||||||
|
Operation steps in w1 core when new command is received.
|
||||||
|
=======================================================
|
||||||
|
|
||||||
|
When new message (w1_netlink_msg) is received w1 core detects if it is master of slave request,
|
||||||
|
according to w1_netlink_msg.type field.
|
||||||
|
Then master or slave device is searched for.
|
||||||
|
When found, master device (requested or those one on where slave device is found) is locked.
|
||||||
|
If slave command is requested, then reset/select procedure is started to select given device.
|
||||||
|
|
||||||
|
Then all requested in w1_netlink_msg operations are performed one by one.
|
||||||
|
If command requires reply (like read command) it is sent on command completion.
|
||||||
|
|
||||||
|
When all commands (w1_netlink_cmd) are processed muster device is unlocked
|
||||||
|
and next w1_netlink_msg header processing started.
|
||||||
|
|
||||||
|
|
||||||
|
Connector [1] specific documentation.
|
||||||
|
====================================
|
||||||
|
|
||||||
|
Each connector message includes two u32 fields as "address".
|
||||||
|
w1 uses CN_W1_IDX and CN_W1_VAL defined in include/linux/connector.h header.
|
||||||
|
Each message also includes sequence and acknowledge numbers.
|
||||||
|
Sequence number for event messages is appropriate bus master sequence number increased with
|
||||||
|
each event message sent "through" this master.
|
||||||
|
Sequence number for userspace requests is set by userspace application.
|
||||||
|
Sequence number for reply is the same as was in request, and
|
||||||
|
acknowledge number is set to seq+1.
|
||||||
|
|
||||||
|
|
||||||
|
Additional documantion, source code examples.
|
||||||
|
============================================
|
||||||
|
|
||||||
|
1. Documentation/connector
|
||||||
|
2. http://tservice.net.ru/~s0mbre/archive/w1
|
||||||
|
This archive includes userspace application w1d.c which
|
||||||
|
uses read/write/search commands for all master/slave devices found on the bus.
|
38
MAINTAINERS
38
MAINTAINERS
|
@ -181,6 +181,12 @@ M: bcrl@kvack.org
|
||||||
L: linux-aio@kvack.org
|
L: linux-aio@kvack.org
|
||||||
S: Supported
|
S: Supported
|
||||||
|
|
||||||
|
ABIT UGURU HARDWARE MONITOR DRIVER
|
||||||
|
P: Hans de Goede
|
||||||
|
M: j.w.r.degoede@hhs.nl
|
||||||
|
L: lm-sensors@lm-sensors.org
|
||||||
|
S: Maintained
|
||||||
|
|
||||||
ACENIC DRIVER
|
ACENIC DRIVER
|
||||||
P: Jes Sorensen
|
P: Jes Sorensen
|
||||||
M: jes@trained-monkey.org
|
M: jes@trained-monkey.org
|
||||||
|
@ -1147,6 +1153,12 @@ L: linux-hams@vger.kernel.org
|
||||||
W: http://www.nt.tuwien.ac.at/~kkudielk/Linux/
|
W: http://www.nt.tuwien.ac.at/~kkudielk/Linux/
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
|
||||||
|
HIGHPOINT ROCKETRAID 3xxx RAID DRIVER
|
||||||
|
P: HighPoint Linux Team
|
||||||
|
M: linux@highpoint-tech.com
|
||||||
|
W: http://www.highpoint-tech.com
|
||||||
|
S: Supported
|
||||||
|
|
||||||
HIPPI
|
HIPPI
|
||||||
P: Jes Sorensen
|
P: Jes Sorensen
|
||||||
M: jes@trained-monkey.org
|
M: jes@trained-monkey.org
|
||||||
|
@ -1843,12 +1855,12 @@ S: linux-scsi@vger.kernel.org
|
||||||
W: http://megaraid.lsilogic.com
|
W: http://megaraid.lsilogic.com
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
|
||||||
MEMORY TECHNOLOGY DEVICES
|
MEMORY TECHNOLOGY DEVICES (MTD)
|
||||||
P: David Woodhouse
|
P: David Woodhouse
|
||||||
M: dwmw2@infradead.org
|
M: dwmw2@infradead.org
|
||||||
W: http://www.linux-mtd.infradead.org/
|
W: http://www.linux-mtd.infradead.org/
|
||||||
L: linux-mtd@lists.infradead.org
|
L: linux-mtd@lists.infradead.org
|
||||||
T: git kernel.org:/pub/scm/linux/kernel/git/tglx/mtd-2.6.git
|
T: git git://git.infradead.org/mtd-2.6.git
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
|
||||||
MICROTEK X6 SCANNER
|
MICROTEK X6 SCANNER
|
||||||
|
@ -1895,7 +1907,7 @@ L: linux-kernel@vger.kernel.org
|
||||||
W: http://www.atnf.csiro.au/~rgooch/linux/kernel-patches.html
|
W: http://www.atnf.csiro.au/~rgooch/linux/kernel-patches.html
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
|
||||||
MULTIMEDIA CARD SUBSYSTEM
|
MULTIMEDIA CARD (MMC) SUBSYSTEM
|
||||||
P: Russell King
|
P: Russell King
|
||||||
M: rmk+mmc@arm.linux.org.uk
|
M: rmk+mmc@arm.linux.org.uk
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
@ -2051,6 +2063,12 @@ M: adaplas@pol.net
|
||||||
L: linux-fbdev-devel@lists.sourceforge.net
|
L: linux-fbdev-devel@lists.sourceforge.net
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
|
||||||
|
OPENCORES I2C BUS DRIVER
|
||||||
|
P: Peter Korsgaard
|
||||||
|
M: jacmet@sunsite.dk
|
||||||
|
L: lm-sensors@lm-sensors.org
|
||||||
|
S: Maintained
|
||||||
|
|
||||||
ORACLE CLUSTER FILESYSTEM 2 (OCFS2)
|
ORACLE CLUSTER FILESYSTEM 2 (OCFS2)
|
||||||
P: Mark Fasheh
|
P: Mark Fasheh
|
||||||
M: mark.fasheh@oracle.com
|
M: mark.fasheh@oracle.com
|
||||||
|
@ -2522,12 +2540,6 @@ M: thomas@winischhofer.net
|
||||||
W: http://www.winischhofer.at/linuxsisusbvga.shtml
|
W: http://www.winischhofer.at/linuxsisusbvga.shtml
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
|
||||||
SMSC47M1 HARDWARE MONITOR DRIVER
|
|
||||||
P: Jean Delvare
|
|
||||||
M: khali@linux-fr.org
|
|
||||||
L: lm-sensors@lm-sensors.org
|
|
||||||
S: Odd Fixes
|
|
||||||
|
|
||||||
SMB FILESYSTEM
|
SMB FILESYSTEM
|
||||||
P: Urban Widmark
|
P: Urban Widmark
|
||||||
M: urban@teststation.com
|
M: urban@teststation.com
|
||||||
|
@ -3140,12 +3152,6 @@ L: wbsd-devel@list.drzeus.cx
|
||||||
W: http://projects.drzeus.cx/wbsd
|
W: http://projects.drzeus.cx/wbsd
|
||||||
S: Maintained
|
S: Maintained
|
||||||
|
|
||||||
W83L785TS HARDWARE MONITOR DRIVER
|
|
||||||
P: Jean Delvare
|
|
||||||
M: khali@linux-fr.org
|
|
||||||
L: lm-sensors@lm-sensors.org
|
|
||||||
S: Odd Fixes
|
|
||||||
|
|
||||||
WATCHDOG DEVICE DRIVERS
|
WATCHDOG DEVICE DRIVERS
|
||||||
P: Wim Van Sebroeck
|
P: Wim Van Sebroeck
|
||||||
M: wim@iguana.be
|
M: wim@iguana.be
|
||||||
|
@ -3185,7 +3191,7 @@ XFS FILESYSTEM
|
||||||
P: Silicon Graphics Inc
|
P: Silicon Graphics Inc
|
||||||
M: xfs-masters@oss.sgi.com
|
M: xfs-masters@oss.sgi.com
|
||||||
M: nathans@sgi.com
|
M: nathans@sgi.com
|
||||||
L: linux-xfs@oss.sgi.com
|
L: xfs@oss.sgi.com
|
||||||
W: http://oss.sgi.com/projects/xfs
|
W: http://oss.sgi.com/projects/xfs
|
||||||
S: Supported
|
S: Supported
|
||||||
|
|
||||||
|
|
103
arch/arm/Kconfig
103
arch/arm/Kconfig
|
@ -93,15 +93,49 @@ choice
|
||||||
prompt "ARM system type"
|
prompt "ARM system type"
|
||||||
default ARCH_VERSATILE
|
default ARCH_VERSATILE
|
||||||
|
|
||||||
|
config ARCH_AAEC2000
|
||||||
|
bool "Agilent AAEC-2000 based"
|
||||||
|
select ARM_AMBA
|
||||||
|
help
|
||||||
|
This enables support for systems based on the Agilent AAEC-2000
|
||||||
|
|
||||||
|
config ARCH_INTEGRATOR
|
||||||
|
bool "ARM Ltd. Integrator family"
|
||||||
|
select ARM_AMBA
|
||||||
|
select ICST525
|
||||||
|
help
|
||||||
|
Support for ARM's Integrator platform.
|
||||||
|
|
||||||
|
config ARCH_REALVIEW
|
||||||
|
bool "ARM Ltd. RealView family"
|
||||||
|
select ARM_AMBA
|
||||||
|
select ICST307
|
||||||
|
help
|
||||||
|
This enables support for ARM Ltd RealView boards.
|
||||||
|
|
||||||
|
config ARCH_VERSATILE
|
||||||
|
bool "ARM Ltd. Versatile family"
|
||||||
|
select ARM_AMBA
|
||||||
|
select ARM_VIC
|
||||||
|
select ICST307
|
||||||
|
help
|
||||||
|
This enables support for ARM Ltd Versatile board.
|
||||||
|
|
||||||
|
config ARCH_AT91RM9200
|
||||||
|
bool "Atmel AT91RM9200"
|
||||||
|
help
|
||||||
|
Say Y here if you intend to run this kernel on an Atmel
|
||||||
|
AT91RM9200-based board.
|
||||||
|
|
||||||
config ARCH_CLPS7500
|
config ARCH_CLPS7500
|
||||||
bool "Cirrus-CL-PS7500FE"
|
bool "Cirrus CL-PS7500FE"
|
||||||
select TIMER_ACORN
|
select TIMER_ACORN
|
||||||
select ISA
|
select ISA
|
||||||
help
|
help
|
||||||
Support for the Cirrus Logic PS7500FE system-on-a-chip.
|
Support for the Cirrus Logic PS7500FE system-on-a-chip.
|
||||||
|
|
||||||
config ARCH_CLPS711X
|
config ARCH_CLPS711X
|
||||||
bool "CLPS711x/EP721x-based"
|
bool "Cirrus Logic CLPS711x/EP721x-based"
|
||||||
help
|
help
|
||||||
Support for Cirrus Logic 711x/721x based boards.
|
Support for Cirrus Logic 711x/721x based boards.
|
||||||
|
|
||||||
|
@ -135,12 +169,22 @@ config ARCH_FOOTBRIDGE
|
||||||
Support for systems based on the DC21285 companion chip
|
Support for systems based on the DC21285 companion chip
|
||||||
("FootBridge"), such as the Simtec CATS and the Rebel NetWinder.
|
("FootBridge"), such as the Simtec CATS and the Rebel NetWinder.
|
||||||
|
|
||||||
config ARCH_INTEGRATOR
|
config ARCH_NETX
|
||||||
bool "Integrator"
|
bool "Hilscher NetX based"
|
||||||
select ARM_AMBA
|
select ARM_VIC
|
||||||
select ICST525
|
|
||||||
help
|
help
|
||||||
Support for ARM's Integrator platform.
|
This enables support for systems based on the Hilscher NetX Soc
|
||||||
|
|
||||||
|
config ARCH_H720X
|
||||||
|
bool "Hynix HMS720x-based"
|
||||||
|
select ISA_DMA_API
|
||||||
|
help
|
||||||
|
This enables support for systems based on the Hynix HMS720x
|
||||||
|
|
||||||
|
config ARCH_IMX
|
||||||
|
bool "IMX"
|
||||||
|
help
|
||||||
|
Support for Motorola's i.MX family of processors (MX1, MXL).
|
||||||
|
|
||||||
config ARCH_IOP3XX
|
config ARCH_IOP3XX
|
||||||
bool "IOP3xx-based"
|
bool "IOP3xx-based"
|
||||||
|
@ -178,6 +222,11 @@ config ARCH_L7200
|
||||||
If you have any questions or comments about the Linux kernel port
|
If you have any questions or comments about the Linux kernel port
|
||||||
to this board, send e-mail to <sjhill@cotw.com>.
|
to this board, send e-mail to <sjhill@cotw.com>.
|
||||||
|
|
||||||
|
config ARCH_PNX4008
|
||||||
|
bool "Philips Nexperia PNX4008 Mobile"
|
||||||
|
help
|
||||||
|
This enables support for Philips PNX4008 mobile platform.
|
||||||
|
|
||||||
config ARCH_PXA
|
config ARCH_PXA
|
||||||
bool "PXA2xx-based"
|
bool "PXA2xx-based"
|
||||||
select ARCH_MTD_XIP
|
select ARCH_MTD_XIP
|
||||||
|
@ -232,44 +281,6 @@ config ARCH_OMAP
|
||||||
help
|
help
|
||||||
Support for TI's OMAP platform (OMAP1 and OMAP2).
|
Support for TI's OMAP platform (OMAP1 and OMAP2).
|
||||||
|
|
||||||
config ARCH_VERSATILE
|
|
||||||
bool "Versatile"
|
|
||||||
select ARM_AMBA
|
|
||||||
select ARM_VIC
|
|
||||||
select ICST307
|
|
||||||
help
|
|
||||||
This enables support for ARM Ltd Versatile board.
|
|
||||||
|
|
||||||
config ARCH_REALVIEW
|
|
||||||
bool "RealView"
|
|
||||||
select ARM_AMBA
|
|
||||||
select ICST307
|
|
||||||
help
|
|
||||||
This enables support for ARM Ltd RealView boards.
|
|
||||||
|
|
||||||
config ARCH_IMX
|
|
||||||
bool "IMX"
|
|
||||||
help
|
|
||||||
Support for Motorola's i.MX family of processors (MX1, MXL).
|
|
||||||
|
|
||||||
config ARCH_H720X
|
|
||||||
bool "Hynix-HMS720x-based"
|
|
||||||
select ISA_DMA_API
|
|
||||||
help
|
|
||||||
This enables support for systems based on the Hynix HMS720x
|
|
||||||
|
|
||||||
config ARCH_AAEC2000
|
|
||||||
bool "Agilent AAEC-2000 based"
|
|
||||||
select ARM_AMBA
|
|
||||||
help
|
|
||||||
This enables support for systems based on the Agilent AAEC-2000
|
|
||||||
|
|
||||||
config ARCH_AT91RM9200
|
|
||||||
bool "AT91RM9200"
|
|
||||||
help
|
|
||||||
Say Y here if you intend to run this kernel on an Atmel
|
|
||||||
AT91RM9200-based board.
|
|
||||||
|
|
||||||
endchoice
|
endchoice
|
||||||
|
|
||||||
source "arch/arm/mach-clps711x/Kconfig"
|
source "arch/arm/mach-clps711x/Kconfig"
|
||||||
|
@ -314,6 +325,8 @@ source "arch/arm/mach-realview/Kconfig"
|
||||||
|
|
||||||
source "arch/arm/mach-at91rm9200/Kconfig"
|
source "arch/arm/mach-at91rm9200/Kconfig"
|
||||||
|
|
||||||
|
source "arch/arm/mach-netx/Kconfig"
|
||||||
|
|
||||||
# Definitions to make life easier
|
# Definitions to make life easier
|
||||||
config ARCH_ACORN
|
config ARCH_ACORN
|
||||||
bool
|
bool
|
||||||
|
|
|
@ -116,6 +116,8 @@ endif
|
||||||
machine-$(CONFIG_ARCH_REALVIEW) := realview
|
machine-$(CONFIG_ARCH_REALVIEW) := realview
|
||||||
machine-$(CONFIG_ARCH_AT91RM9200) := at91rm9200
|
machine-$(CONFIG_ARCH_AT91RM9200) := at91rm9200
|
||||||
machine-$(CONFIG_ARCH_EP93XX) := ep93xx
|
machine-$(CONFIG_ARCH_EP93XX) := ep93xx
|
||||||
|
machine-$(CONFIG_ARCH_PNX4008) := pnx4008
|
||||||
|
machine-$(CONFIG_ARCH_NETX) := netx
|
||||||
|
|
||||||
ifeq ($(CONFIG_ARCH_EBSA110),y)
|
ifeq ($(CONFIG_ARCH_EBSA110),y)
|
||||||
# This is what happens if you forget the IOCS16 line.
|
# This is what happens if you forget the IOCS16 line.
|
||||||
|
|
|
@ -49,6 +49,18 @@
|
||||||
cmp r7, r3
|
cmp r7, r3
|
||||||
beq 99f
|
beq 99f
|
||||||
|
|
||||||
|
@ Embest ATEB9200 : 923
|
||||||
|
mov r3, #(MACH_TYPE_ATEB9200 & 0xff)
|
||||||
|
orr r3, r3, #(MACH_TYPE_ATEB9200 & 0xff00)
|
||||||
|
cmp r7, r3
|
||||||
|
beq 99f
|
||||||
|
|
||||||
|
@ Sperry-Sun KAFA : 662
|
||||||
|
mov r3, #(MACH_TYPE_KAFA & 0xff)
|
||||||
|
orr r3, r3, #(MACH_TYPE_KAFA & 0xff00)
|
||||||
|
cmp r7, r3
|
||||||
|
beq 99f
|
||||||
|
|
||||||
@ Unknown board, use the AT91RM9200DK board
|
@ Unknown board, use the AT91RM9200DK board
|
||||||
@ mov r7, #MACH_TYPE_AT91RM9200
|
@ mov r7, #MACH_TYPE_AT91RM9200
|
||||||
mov r7, #(MACH_TYPE_AT91RM9200DK & 0xff)
|
mov r7, #(MACH_TYPE_AT91RM9200DK & 0xff)
|
||||||
|
|
|
@ -605,8 +605,8 @@ proc_types:
|
||||||
b __armv4_mmu_cache_off
|
b __armv4_mmu_cache_off
|
||||||
b __armv4_mmu_cache_flush
|
b __armv4_mmu_cache_flush
|
||||||
|
|
||||||
.word 0x00070000 @ ARMv6
|
.word 0x0007b000 @ ARMv6
|
||||||
.word 0x000f0000
|
.word 0x0007f000
|
||||||
b __armv4_mmu_cache_on
|
b __armv4_mmu_cache_on
|
||||||
b __armv4_mmu_cache_off
|
b __armv4_mmu_cache_off
|
||||||
b __armv6_mmu_cache_flush
|
b __armv6_mmu_cache_flush
|
||||||
|
|
|
@ -49,13 +49,6 @@
|
||||||
#define SHARPSL_CHARGE_CO_CHECK_TIME 5 /* 5 msec */
|
#define SHARPSL_CHARGE_CO_CHECK_TIME 5 /* 5 msec */
|
||||||
#define SHARPSL_CHARGE_RETRY_CNT 1 /* eqv. 10 min */
|
#define SHARPSL_CHARGE_RETRY_CNT 1 /* eqv. 10 min */
|
||||||
|
|
||||||
#define SHARPSL_CHARGE_ON_VOLT 0x99 /* 2.9V */
|
|
||||||
#define SHARPSL_CHARGE_ON_TEMP 0xe0 /* 2.9V */
|
|
||||||
#define SHARPSL_CHARGE_ON_ACIN_HIGH 0x9b /* 6V */
|
|
||||||
#define SHARPSL_CHARGE_ON_ACIN_LOW 0x34 /* 2V */
|
|
||||||
#define SHARPSL_FATAL_ACIN_VOLT 182 /* 3.45V */
|
|
||||||
#define SHARPSL_FATAL_NOACIN_VOLT 170 /* 3.40V */
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Prototypes
|
* Prototypes
|
||||||
*/
|
*/
|
||||||
|
@ -82,12 +75,13 @@ DEFINE_LED_TRIGGER(sharpsl_charge_led_trigger);
|
||||||
static int get_percentage(int voltage)
|
static int get_percentage(int voltage)
|
||||||
{
|
{
|
||||||
int i = sharpsl_pm.machinfo->bat_levels - 1;
|
int i = sharpsl_pm.machinfo->bat_levels - 1;
|
||||||
|
int bl_status = sharpsl_pm.machinfo->backlight_get_status ? sharpsl_pm.machinfo->backlight_get_status() : 0;
|
||||||
struct battery_thresh *thresh;
|
struct battery_thresh *thresh;
|
||||||
|
|
||||||
if (sharpsl_pm.charge_mode == CHRG_ON)
|
if (sharpsl_pm.charge_mode == CHRG_ON)
|
||||||
thresh=sharpsl_pm.machinfo->bat_levels_acin;
|
thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_acin_bl : sharpsl_pm.machinfo->bat_levels_acin;
|
||||||
else
|
else
|
||||||
thresh=sharpsl_pm.machinfo->bat_levels_noac;
|
thresh = bl_status ? sharpsl_pm.machinfo->bat_levels_noac_bl : sharpsl_pm.machinfo->bat_levels_noac;
|
||||||
|
|
||||||
while (i > 0 && (voltage > thresh[i].voltage))
|
while (i > 0 && (voltage > thresh[i].voltage))
|
||||||
i--;
|
i--;
|
||||||
|
@ -131,7 +125,7 @@ static void sharpsl_battery_thread(void *private_)
|
||||||
sharpsl_pm.battstat.ac_status = (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN) ? APM_AC_ONLINE : APM_AC_OFFLINE);
|
sharpsl_pm.battstat.ac_status = (sharpsl_pm.machinfo->read_devdata(SHARPSL_STATUS_ACIN) ? APM_AC_ONLINE : APM_AC_OFFLINE);
|
||||||
|
|
||||||
/* Corgi cannot confirm when battery fully charged so periodically kick! */
|
/* Corgi cannot confirm when battery fully charged so periodically kick! */
|
||||||
if (machine_is_corgi() && (sharpsl_pm.charge_mode == CHRG_ON)
|
if (!sharpsl_pm.machinfo->batfull_irq && (sharpsl_pm.charge_mode == CHRG_ON)
|
||||||
&& time_after(jiffies, sharpsl_pm.charge_start_time + SHARPSL_CHARGE_ON_TIME_INTERVAL))
|
&& time_after(jiffies, sharpsl_pm.charge_start_time + SHARPSL_CHARGE_ON_TIME_INTERVAL))
|
||||||
schedule_work(&toggle_charger);
|
schedule_work(&toggle_charger);
|
||||||
|
|
||||||
|
@ -166,11 +160,11 @@ static void sharpsl_battery_thread(void *private_)
|
||||||
&& ((sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_LOW) ||
|
&& ((sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_LOW) ||
|
||||||
(sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_CRITICAL))) {
|
(sharpsl_pm.battstat.mainbat_status == APM_BATTERY_STATUS_CRITICAL))) {
|
||||||
if (!(sharpsl_pm.flags & SHARPSL_BL_LIMIT)) {
|
if (!(sharpsl_pm.flags & SHARPSL_BL_LIMIT)) {
|
||||||
corgibl_limit_intensity(1);
|
sharpsl_pm.machinfo->backlight_limit(1);
|
||||||
sharpsl_pm.flags |= SHARPSL_BL_LIMIT;
|
sharpsl_pm.flags |= SHARPSL_BL_LIMIT;
|
||||||
}
|
}
|
||||||
} else if (sharpsl_pm.flags & SHARPSL_BL_LIMIT) {
|
} else if (sharpsl_pm.flags & SHARPSL_BL_LIMIT) {
|
||||||
corgibl_limit_intensity(0);
|
sharpsl_pm.machinfo->backlight_limit(0);
|
||||||
sharpsl_pm.flags &= ~SHARPSL_BL_LIMIT;
|
sharpsl_pm.flags &= ~SHARPSL_BL_LIMIT;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -418,7 +412,7 @@ static int sharpsl_check_battery_temp(void)
|
||||||
val = get_select_val(buff);
|
val = get_select_val(buff);
|
||||||
|
|
||||||
dev_dbg(sharpsl_pm.dev, "Temperature: %d\n", val);
|
dev_dbg(sharpsl_pm.dev, "Temperature: %d\n", val);
|
||||||
if (val > SHARPSL_CHARGE_ON_TEMP)
|
if (val > sharpsl_pm.machinfo->charge_on_temp)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -450,7 +444,7 @@ static int sharpsl_check_battery_voltage(void)
|
||||||
val = get_select_val(buff);
|
val = get_select_val(buff);
|
||||||
dev_dbg(sharpsl_pm.dev, "Battery Voltage: %d\n", val);
|
dev_dbg(sharpsl_pm.dev, "Battery Voltage: %d\n", val);
|
||||||
|
|
||||||
if (val < SHARPSL_CHARGE_ON_VOLT)
|
if (val < sharpsl_pm.machinfo->charge_on_volt)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
@ -468,7 +462,7 @@ static int sharpsl_ac_check(void)
|
||||||
temp = get_select_val(buff);
|
temp = get_select_val(buff);
|
||||||
dev_dbg(sharpsl_pm.dev, "AC Voltage: %d\n",temp);
|
dev_dbg(sharpsl_pm.dev, "AC Voltage: %d\n",temp);
|
||||||
|
|
||||||
if ((temp > SHARPSL_CHARGE_ON_ACIN_HIGH) || (temp < SHARPSL_CHARGE_ON_ACIN_LOW)) {
|
if ((temp > sharpsl_pm.machinfo->charge_acin_high) || (temp < sharpsl_pm.machinfo->charge_acin_low)) {
|
||||||
dev_err(sharpsl_pm.dev, "Error: AC check failed.\n");
|
dev_err(sharpsl_pm.dev, "Error: AC check failed.\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
@ -627,8 +621,8 @@ static int sharpsl_fatal_check(void)
|
||||||
temp = get_select_val(buff);
|
temp = get_select_val(buff);
|
||||||
dev_dbg(sharpsl_pm.dev, "sharpsl_fatal_check: acin: %d, discharge voltage: %d, no discharge: %d\n", acin, temp, sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT));
|
dev_dbg(sharpsl_pm.dev, "sharpsl_fatal_check: acin: %d, discharge voltage: %d, no discharge: %d\n", acin, temp, sharpsl_pm.machinfo->read_devdata(SHARPSL_BATT_VOLT));
|
||||||
|
|
||||||
if ((acin && (temp < SHARPSL_FATAL_ACIN_VOLT)) ||
|
if ((acin && (temp < sharpsl_pm.machinfo->fatal_acin_volt)) ||
|
||||||
(!acin && (temp < SHARPSL_FATAL_NOACIN_VOLT)))
|
(!acin && (temp < sharpsl_pm.machinfo->fatal_noacin_volt)))
|
||||||
return -1;
|
return -1;
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,723 @@
|
||||||
|
#
|
||||||
|
# Automatically generated make config: don't edit
|
||||||
|
# Linux kernel version: 2.6.12-rc4
|
||||||
|
# Tue Jun 14 12:05:24 2005
|
||||||
|
#
|
||||||
|
CONFIG_ARM=y
|
||||||
|
CONFIG_MMU=y
|
||||||
|
CONFIG_UID16=y
|
||||||
|
CONFIG_RWSEM_GENERIC_SPINLOCK=y
|
||||||
|
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
||||||
|
CONFIG_GENERIC_IOMAP=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Code maturity level options
|
||||||
|
#
|
||||||
|
CONFIG_EXPERIMENTAL=y
|
||||||
|
CONFIG_CLEAN_COMPILE=y
|
||||||
|
CONFIG_BROKEN_ON_SMP=y
|
||||||
|
CONFIG_INIT_ENV_ARG_LIMIT=32
|
||||||
|
|
||||||
|
#
|
||||||
|
# General setup
|
||||||
|
#
|
||||||
|
CONFIG_LOCALVERSION=""
|
||||||
|
CONFIG_SWAP=y
|
||||||
|
# CONFIG_SYSVIPC is not set
|
||||||
|
# CONFIG_POSIX_MQUEUE is not set
|
||||||
|
# CONFIG_BSD_PROCESS_ACCT is not set
|
||||||
|
# CONFIG_SYSCTL is not set
|
||||||
|
# CONFIG_AUDIT is not set
|
||||||
|
# CONFIG_HOTPLUG is not set
|
||||||
|
CONFIG_KOBJECT_UEVENT=y
|
||||||
|
# CONFIG_IKCONFIG is not set
|
||||||
|
CONFIG_EMBEDDED=y
|
||||||
|
CONFIG_KALLSYMS=y
|
||||||
|
# CONFIG_KALLSYMS_EXTRA_PASS is not set
|
||||||
|
CONFIG_PRINTK=y
|
||||||
|
CONFIG_BUG=y
|
||||||
|
CONFIG_BASE_FULL=y
|
||||||
|
CONFIG_FUTEX=y
|
||||||
|
CONFIG_EPOLL=y
|
||||||
|
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
||||||
|
CONFIG_SHMEM=y
|
||||||
|
CONFIG_CC_ALIGN_FUNCTIONS=0
|
||||||
|
CONFIG_CC_ALIGN_LABELS=0
|
||||||
|
CONFIG_CC_ALIGN_LOOPS=0
|
||||||
|
CONFIG_CC_ALIGN_JUMPS=0
|
||||||
|
# CONFIG_TINY_SHMEM is not set
|
||||||
|
CONFIG_BASE_SMALL=0
|
||||||
|
|
||||||
|
#
|
||||||
|
# Loadable module support
|
||||||
|
#
|
||||||
|
CONFIG_MODULES=y
|
||||||
|
CONFIG_MODULE_UNLOAD=y
|
||||||
|
CONFIG_MODULE_FORCE_UNLOAD=y
|
||||||
|
CONFIG_OBSOLETE_MODPARM=y
|
||||||
|
# CONFIG_MODVERSIONS is not set
|
||||||
|
# CONFIG_MODULE_SRCVERSION_ALL is not set
|
||||||
|
# CONFIG_KMOD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# System Type
|
||||||
|
#
|
||||||
|
# CONFIG_ARCH_CLPS7500 is not set
|
||||||
|
# CONFIG_ARCH_CLPS711X is not set
|
||||||
|
# CONFIG_ARCH_CO285 is not set
|
||||||
|
# CONFIG_ARCH_EBSA110 is not set
|
||||||
|
# CONFIG_ARCH_FOOTBRIDGE is not set
|
||||||
|
# CONFIG_ARCH_INTEGRATOR is not set
|
||||||
|
# CONFIG_ARCH_IOP3XX is not set
|
||||||
|
# CONFIG_ARCH_IXP4XX is not set
|
||||||
|
# CONFIG_ARCH_IXP2000 is not set
|
||||||
|
# CONFIG_ARCH_L7200 is not set
|
||||||
|
# CONFIG_ARCH_PXA is not set
|
||||||
|
# CONFIG_ARCH_RPC is not set
|
||||||
|
# CONFIG_ARCH_SA1100 is not set
|
||||||
|
# CONFIG_ARCH_S3C2410 is not set
|
||||||
|
# CONFIG_ARCH_SHARK is not set
|
||||||
|
# CONFIG_ARCH_LH7A40X is not set
|
||||||
|
# CONFIG_ARCH_OMAP is not set
|
||||||
|
# CONFIG_ARCH_VERSATILE is not set
|
||||||
|
# CONFIG_ARCH_IMX is not set
|
||||||
|
# CONFIG_ARCH_H720X is not set
|
||||||
|
CONFIG_ARCH_AT91RM9200=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# AT91RM9200 Implementations
|
||||||
|
#
|
||||||
|
# CONFIG_ARCH_AT91RM9200DK is not set
|
||||||
|
# CONFIG_MACH_AT91RM9200EK is not set
|
||||||
|
# CONFIG_MACH_CSB337 is not set
|
||||||
|
# CONFIG_MACH_CSB637 is not set
|
||||||
|
CONFIG_MACH_CARMEVA=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Processor Type
|
||||||
|
#
|
||||||
|
CONFIG_CPU_32=y
|
||||||
|
CONFIG_CPU_ARM920T=y
|
||||||
|
CONFIG_CPU_32v4=y
|
||||||
|
CONFIG_CPU_ABRT_EV4T=y
|
||||||
|
CONFIG_CPU_CACHE_V4WT=y
|
||||||
|
CONFIG_CPU_CACHE_VIVT=y
|
||||||
|
CONFIG_CPU_COPY_V4WB=y
|
||||||
|
CONFIG_CPU_TLB_V4WBI=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Processor Features
|
||||||
|
#
|
||||||
|
CONFIG_ARM_THUMB=y
|
||||||
|
# CONFIG_CPU_ICACHE_DISABLE is not set
|
||||||
|
# CONFIG_CPU_DCACHE_DISABLE is not set
|
||||||
|
# CONFIG_CPU_DCACHE_WRITETHROUGH is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bus support
|
||||||
|
#
|
||||||
|
CONFIG_ISA_DMA_API=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# PCCARD (PCMCIA/CardBus) support
|
||||||
|
#
|
||||||
|
# CONFIG_PCCARD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Kernel Features
|
||||||
|
#
|
||||||
|
# CONFIG_SMP is not set
|
||||||
|
# CONFIG_PREEMPT is not set
|
||||||
|
# CONFIG_DISCONTIGMEM is not set
|
||||||
|
# CONFIG_LEDS is not set
|
||||||
|
CONFIG_ALIGNMENT_TRAP=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Boot options
|
||||||
|
#
|
||||||
|
CONFIG_ZBOOT_ROM_TEXT=0x0
|
||||||
|
CONFIG_ZBOOT_ROM_BSS=0x0
|
||||||
|
CONFIG_CMDLINE=""
|
||||||
|
# CONFIG_XIP_KERNEL is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Floating point emulation
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# At least one emulation must be selected
|
||||||
|
#
|
||||||
|
CONFIG_FPE_NWFPE=y
|
||||||
|
# CONFIG_FPE_NWFPE_XP is not set
|
||||||
|
# CONFIG_FPE_FASTFPE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Userspace binary formats
|
||||||
|
#
|
||||||
|
CONFIG_BINFMT_ELF=y
|
||||||
|
# CONFIG_BINFMT_AOUT is not set
|
||||||
|
# CONFIG_BINFMT_MISC is not set
|
||||||
|
# CONFIG_ARTHUR is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Power management options
|
||||||
|
#
|
||||||
|
# CONFIG_PM is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Device Drivers
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generic Driver Options
|
||||||
|
#
|
||||||
|
CONFIG_STANDALONE=y
|
||||||
|
CONFIG_PREVENT_FIRMWARE_BUILD=y
|
||||||
|
# CONFIG_FW_LOADER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Memory Technology Devices (MTD)
|
||||||
|
#
|
||||||
|
CONFIG_MTD=y
|
||||||
|
# CONFIG_MTD_DEBUG is not set
|
||||||
|
# CONFIG_MTD_CONCAT is not set
|
||||||
|
CONFIG_MTD_PARTITIONS=y
|
||||||
|
# CONFIG_MTD_REDBOOT_PARTS is not set
|
||||||
|
CONFIG_MTD_CMDLINE_PARTS=y
|
||||||
|
# CONFIG_MTD_AFS_PARTS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# User Modules And Translation Layers
|
||||||
|
#
|
||||||
|
CONFIG_MTD_CHAR=y
|
||||||
|
CONFIG_MTD_BLOCK=y
|
||||||
|
# CONFIG_FTL is not set
|
||||||
|
# CONFIG_NFTL is not set
|
||||||
|
# CONFIG_INFTL is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# RAM/ROM/Flash chip drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_CFI is not set
|
||||||
|
# CONFIG_MTD_JEDECPROBE is not set
|
||||||
|
CONFIG_MTD_MAP_BANK_WIDTH_1=y
|
||||||
|
CONFIG_MTD_MAP_BANK_WIDTH_2=y
|
||||||
|
CONFIG_MTD_MAP_BANK_WIDTH_4=y
|
||||||
|
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
|
||||||
|
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
|
||||||
|
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
|
||||||
|
CONFIG_MTD_CFI_I1=y
|
||||||
|
CONFIG_MTD_CFI_I2=y
|
||||||
|
# CONFIG_MTD_CFI_I4 is not set
|
||||||
|
# CONFIG_MTD_CFI_I8 is not set
|
||||||
|
# CONFIG_MTD_RAM is not set
|
||||||
|
# CONFIG_MTD_ROM is not set
|
||||||
|
# CONFIG_MTD_ABSENT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Mapping drivers for chip access
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Self-contained MTD device drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_SLRAM is not set
|
||||||
|
# CONFIG_MTD_PHRAM is not set
|
||||||
|
# CONFIG_MTD_MTDRAM is not set
|
||||||
|
# CONFIG_MTD_BLKMTD is not set
|
||||||
|
# CONFIG_MTD_BLOCK2MTD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Disk-On-Chip Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_DOC2000 is not set
|
||||||
|
# CONFIG_MTD_DOC2001 is not set
|
||||||
|
# CONFIG_MTD_DOC2001PLUS is not set
|
||||||
|
CONFIG_MTD_AT91_DATAFLASH=y
|
||||||
|
# CONFIG_MTD_AT91_DATAFLASH_CARD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# NAND Flash Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_NAND is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Parallel port support
|
||||||
|
#
|
||||||
|
# CONFIG_PARPORT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Plug and Play support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Block devices
|
||||||
|
#
|
||||||
|
# CONFIG_BLK_DEV_COW_COMMON is not set
|
||||||
|
# CONFIG_BLK_DEV_LOOP is not set
|
||||||
|
# CONFIG_BLK_DEV_NBD is not set
|
||||||
|
CONFIG_BLK_DEV_RAM=y
|
||||||
|
CONFIG_BLK_DEV_RAM_COUNT=16
|
||||||
|
CONFIG_BLK_DEV_RAM_SIZE=4096
|
||||||
|
CONFIG_BLK_DEV_INITRD=y
|
||||||
|
CONFIG_INITRAMFS_SOURCE=""
|
||||||
|
# CONFIG_CDROM_PKTCDVD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# IO Schedulers
|
||||||
|
#
|
||||||
|
CONFIG_IOSCHED_NOOP=y
|
||||||
|
CONFIG_IOSCHED_AS=y
|
||||||
|
CONFIG_IOSCHED_DEADLINE=y
|
||||||
|
CONFIG_IOSCHED_CFQ=y
|
||||||
|
# CONFIG_ATA_OVER_ETH is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCSI device support
|
||||||
|
#
|
||||||
|
# CONFIG_SCSI is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Multi-device support (RAID and LVM)
|
||||||
|
#
|
||||||
|
# CONFIG_MD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Fusion MPT device support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# IEEE 1394 (FireWire) support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2O device support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Networking support
|
||||||
|
#
|
||||||
|
CONFIG_NET=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Networking options
|
||||||
|
#
|
||||||
|
# CONFIG_PACKET is not set
|
||||||
|
CONFIG_UNIX=y
|
||||||
|
# CONFIG_NET_KEY is not set
|
||||||
|
CONFIG_INET=y
|
||||||
|
CONFIG_IP_MULTICAST=y
|
||||||
|
# CONFIG_IP_ADVANCED_ROUTER is not set
|
||||||
|
CONFIG_IP_PNP=y
|
||||||
|
# CONFIG_IP_PNP_DHCP is not set
|
||||||
|
# CONFIG_IP_PNP_BOOTP is not set
|
||||||
|
# CONFIG_IP_PNP_RARP is not set
|
||||||
|
# CONFIG_NET_IPIP is not set
|
||||||
|
# CONFIG_NET_IPGRE is not set
|
||||||
|
# CONFIG_IP_MROUTE is not set
|
||||||
|
# CONFIG_ARPD is not set
|
||||||
|
# CONFIG_SYN_COOKIES is not set
|
||||||
|
# CONFIG_INET_AH is not set
|
||||||
|
# CONFIG_INET_ESP is not set
|
||||||
|
# CONFIG_INET_IPCOMP is not set
|
||||||
|
# CONFIG_INET_TUNNEL is not set
|
||||||
|
CONFIG_IP_TCPDIAG=y
|
||||||
|
# CONFIG_IP_TCPDIAG_IPV6 is not set
|
||||||
|
# CONFIG_IPV6 is not set
|
||||||
|
# CONFIG_NETFILTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCTP Configuration (EXPERIMENTAL)
|
||||||
|
#
|
||||||
|
# CONFIG_IP_SCTP is not set
|
||||||
|
# CONFIG_ATM is not set
|
||||||
|
# CONFIG_BRIDGE is not set
|
||||||
|
# CONFIG_VLAN_8021Q is not set
|
||||||
|
# CONFIG_DECNET is not set
|
||||||
|
# CONFIG_LLC2 is not set
|
||||||
|
# CONFIG_IPX is not set
|
||||||
|
# CONFIG_ATALK is not set
|
||||||
|
# CONFIG_X25 is not set
|
||||||
|
# CONFIG_LAPB is not set
|
||||||
|
# CONFIG_NET_DIVERT is not set
|
||||||
|
# CONFIG_ECONET is not set
|
||||||
|
# CONFIG_WAN_ROUTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# QoS and/or fair queueing
|
||||||
|
#
|
||||||
|
# CONFIG_NET_SCHED is not set
|
||||||
|
# CONFIG_NET_CLS_ROUTE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Network testing
|
||||||
|
#
|
||||||
|
# CONFIG_NET_PKTGEN is not set
|
||||||
|
# CONFIG_NETPOLL is not set
|
||||||
|
# CONFIG_NET_POLL_CONTROLLER is not set
|
||||||
|
# CONFIG_HAMRADIO is not set
|
||||||
|
# CONFIG_IRDA is not set
|
||||||
|
# CONFIG_BT is not set
|
||||||
|
CONFIG_NETDEVICES=y
|
||||||
|
# CONFIG_DUMMY is not set
|
||||||
|
# CONFIG_BONDING is not set
|
||||||
|
# CONFIG_EQUALIZER is not set
|
||||||
|
# CONFIG_TUN is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ethernet (10 or 100Mbit)
|
||||||
|
#
|
||||||
|
CONFIG_NET_ETHERNET=y
|
||||||
|
CONFIG_MII=y
|
||||||
|
CONFIG_ARM_AT91_ETHER=y
|
||||||
|
CONFIG_ARM_AT91_ETHER_RMII=y
|
||||||
|
# CONFIG_SMC91X is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ethernet (1000 Mbit)
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ethernet (10000 Mbit)
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Token Ring devices
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Wireless LAN (non-hamradio)
|
||||||
|
#
|
||||||
|
# CONFIG_NET_RADIO is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Wan interfaces
|
||||||
|
#
|
||||||
|
# CONFIG_WAN is not set
|
||||||
|
# CONFIG_PPP is not set
|
||||||
|
# CONFIG_SLIP is not set
|
||||||
|
# CONFIG_SHAPER is not set
|
||||||
|
# CONFIG_NETCONSOLE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# ISDN subsystem
|
||||||
|
#
|
||||||
|
# CONFIG_ISDN is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Input device support
|
||||||
|
#
|
||||||
|
CONFIG_INPUT=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Userland interfaces
|
||||||
|
#
|
||||||
|
# CONFIG_INPUT_MOUSEDEV is not set
|
||||||
|
# CONFIG_INPUT_JOYDEV is not set
|
||||||
|
# CONFIG_INPUT_TSDEV is not set
|
||||||
|
# CONFIG_INPUT_EVDEV is not set
|
||||||
|
# CONFIG_INPUT_EVBUG is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Input Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_INPUT_KEYBOARD is not set
|
||||||
|
# CONFIG_INPUT_MOUSE is not set
|
||||||
|
# CONFIG_INPUT_JOYSTICK is not set
|
||||||
|
# CONFIG_INPUT_TOUCHSCREEN is not set
|
||||||
|
# CONFIG_INPUT_MISC is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Hardware I/O ports
|
||||||
|
#
|
||||||
|
CONFIG_SERIO=m
|
||||||
|
CONFIG_SERIO_SERPORT=m
|
||||||
|
# CONFIG_SERIO_LIBPS2 is not set
|
||||||
|
# CONFIG_SERIO_RAW is not set
|
||||||
|
# CONFIG_GAMEPORT is not set
|
||||||
|
CONFIG_SOUND_GAMEPORT=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Character devices
|
||||||
|
#
|
||||||
|
CONFIG_VT=y
|
||||||
|
CONFIG_VT_CONSOLE=y
|
||||||
|
CONFIG_HW_CONSOLE=y
|
||||||
|
# CONFIG_SERIAL_NONSTANDARD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Serial drivers
|
||||||
|
#
|
||||||
|
# CONFIG_SERIAL_8250 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Non-8250 serial port support
|
||||||
|
#
|
||||||
|
CONFIG_SERIAL_AT91=y
|
||||||
|
CONFIG_SERIAL_AT91_CONSOLE=y
|
||||||
|
CONFIG_SERIAL_CORE=y
|
||||||
|
CONFIG_SERIAL_CORE_CONSOLE=y
|
||||||
|
CONFIG_UNIX98_PTYS=y
|
||||||
|
CONFIG_LEGACY_PTYS=y
|
||||||
|
CONFIG_LEGACY_PTY_COUNT=256
|
||||||
|
|
||||||
|
#
|
||||||
|
# IPMI
|
||||||
|
#
|
||||||
|
# CONFIG_IPMI_HANDLER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Watchdog Cards
|
||||||
|
#
|
||||||
|
# CONFIG_WATCHDOG is not set
|
||||||
|
# CONFIG_NVRAM is not set
|
||||||
|
# CONFIG_RTC is not set
|
||||||
|
# CONFIG_AT91_RTC is not set
|
||||||
|
# CONFIG_DTLK is not set
|
||||||
|
# CONFIG_R3964 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ftape, the floppy tape device driver
|
||||||
|
#
|
||||||
|
# CONFIG_DRM is not set
|
||||||
|
# CONFIG_RAW_DRIVER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# TPM devices
|
||||||
|
#
|
||||||
|
CONFIG_AT91_SPI=y
|
||||||
|
CONFIG_AT91_SPIDEV=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2C support
|
||||||
|
#
|
||||||
|
# CONFIG_I2C is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Misc devices
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Multimedia devices
|
||||||
|
#
|
||||||
|
# CONFIG_VIDEO_DEV is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Digital Video Broadcasting Devices
|
||||||
|
#
|
||||||
|
# CONFIG_DVB is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Graphics support
|
||||||
|
#
|
||||||
|
# CONFIG_FB is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Console display driver support
|
||||||
|
#
|
||||||
|
# CONFIG_VGA_CONSOLE is not set
|
||||||
|
CONFIG_DUMMY_CONSOLE=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Sound
|
||||||
|
#
|
||||||
|
# CONFIG_SOUND is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB support
|
||||||
|
#
|
||||||
|
CONFIG_USB_ARCH_HAS_HCD=y
|
||||||
|
CONFIG_USB_ARCH_HAS_OHCI=y
|
||||||
|
# CONFIG_USB is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Gadget Support
|
||||||
|
#
|
||||||
|
# CONFIG_USB_GADGET is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# MMC/SD Card support
|
||||||
|
#
|
||||||
|
CONFIG_MMC=m
|
||||||
|
CONFIG_MMC_DEBUG=y
|
||||||
|
CONFIG_MMC_BLOCK=m
|
||||||
|
CONFIG_MMC_AT91RM9200=m
|
||||||
|
|
||||||
|
#
|
||||||
|
# File systems
|
||||||
|
#
|
||||||
|
CONFIG_EXT2_FS=y
|
||||||
|
CONFIG_EXT2_FS_XATTR=y
|
||||||
|
# CONFIG_EXT2_FS_POSIX_ACL is not set
|
||||||
|
# CONFIG_EXT2_FS_SECURITY is not set
|
||||||
|
# CONFIG_EXT3_FS is not set
|
||||||
|
# CONFIG_JBD is not set
|
||||||
|
CONFIG_FS_MBCACHE=y
|
||||||
|
# CONFIG_REISERFS_FS is not set
|
||||||
|
# CONFIG_JFS_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# XFS support
|
||||||
|
#
|
||||||
|
# CONFIG_XFS_FS is not set
|
||||||
|
# CONFIG_MINIX_FS is not set
|
||||||
|
# CONFIG_ROMFS_FS is not set
|
||||||
|
# CONFIG_QUOTA is not set
|
||||||
|
# CONFIG_DNOTIFY is not set
|
||||||
|
# CONFIG_AUTOFS_FS is not set
|
||||||
|
# CONFIG_AUTOFS4_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# CD-ROM/DVD Filesystems
|
||||||
|
#
|
||||||
|
# CONFIG_ISO9660_FS is not set
|
||||||
|
# CONFIG_UDF_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# DOS/FAT/NT Filesystems
|
||||||
|
#
|
||||||
|
# CONFIG_MSDOS_FS is not set
|
||||||
|
# CONFIG_VFAT_FS is not set
|
||||||
|
# CONFIG_NTFS_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Pseudo filesystems
|
||||||
|
#
|
||||||
|
CONFIG_PROC_FS=y
|
||||||
|
CONFIG_SYSFS=y
|
||||||
|
# CONFIG_DEVFS_FS is not set
|
||||||
|
CONFIG_DEVPTS_FS_XATTR=y
|
||||||
|
CONFIG_DEVPTS_FS_SECURITY=y
|
||||||
|
# CONFIG_TMPFS is not set
|
||||||
|
# CONFIG_HUGETLB_PAGE is not set
|
||||||
|
CONFIG_RAMFS=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Miscellaneous filesystems
|
||||||
|
#
|
||||||
|
# CONFIG_ADFS_FS is not set
|
||||||
|
# CONFIG_AFFS_FS is not set
|
||||||
|
# CONFIG_HFS_FS is not set
|
||||||
|
# CONFIG_HFSPLUS_FS is not set
|
||||||
|
# CONFIG_BEFS_FS is not set
|
||||||
|
# CONFIG_BFS_FS is not set
|
||||||
|
# CONFIG_EFS_FS is not set
|
||||||
|
CONFIG_JFFS_FS=y
|
||||||
|
CONFIG_JFFS_FS_VERBOSE=0
|
||||||
|
CONFIG_JFFS_PROC_FS=y
|
||||||
|
CONFIG_JFFS2_FS=y
|
||||||
|
CONFIG_JFFS2_FS_DEBUG=0
|
||||||
|
CONFIG_JFFS2_FS_NAND=y
|
||||||
|
# CONFIG_JFFS2_FS_NOR_ECC is not set
|
||||||
|
CONFIG_JFFS2_COMPRESSION_OPTIONS=y
|
||||||
|
CONFIG_JFFS2_ZLIB=y
|
||||||
|
CONFIG_JFFS2_RTIME=y
|
||||||
|
# CONFIG_JFFS2_RUBIN is not set
|
||||||
|
# CONFIG_JFFS2_CMODE_NONE is not set
|
||||||
|
CONFIG_JFFS2_CMODE_PRIORITY=y
|
||||||
|
# CONFIG_JFFS2_CMODE_SIZE is not set
|
||||||
|
# CONFIG_CRAMFS is not set
|
||||||
|
# CONFIG_VXFS_FS is not set
|
||||||
|
# CONFIG_HPFS_FS is not set
|
||||||
|
# CONFIG_QNX4FS_FS is not set
|
||||||
|
# CONFIG_SYSV_FS is not set
|
||||||
|
# CONFIG_UFS_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Network File Systems
|
||||||
|
#
|
||||||
|
CONFIG_NFS_FS=y
|
||||||
|
CONFIG_NFS_V3=y
|
||||||
|
CONFIG_NFS_V4=y
|
||||||
|
# CONFIG_NFS_DIRECTIO is not set
|
||||||
|
CONFIG_NFSD=y
|
||||||
|
# CONFIG_NFSD_V3 is not set
|
||||||
|
CONFIG_NFSD_TCP=y
|
||||||
|
CONFIG_ROOT_NFS=y
|
||||||
|
CONFIG_LOCKD=y
|
||||||
|
CONFIG_LOCKD_V4=y
|
||||||
|
CONFIG_EXPORTFS=y
|
||||||
|
CONFIG_SUNRPC=y
|
||||||
|
CONFIG_SUNRPC_GSS=y
|
||||||
|
CONFIG_RPCSEC_GSS_KRB5=y
|
||||||
|
# CONFIG_RPCSEC_GSS_SPKM3 is not set
|
||||||
|
# CONFIG_SMB_FS is not set
|
||||||
|
# CONFIG_CIFS is not set
|
||||||
|
# CONFIG_NCP_FS is not set
|
||||||
|
# CONFIG_CODA_FS is not set
|
||||||
|
# CONFIG_AFS_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Partition Types
|
||||||
|
#
|
||||||
|
# CONFIG_PARTITION_ADVANCED is not set
|
||||||
|
CONFIG_MSDOS_PARTITION=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Native Language Support
|
||||||
|
#
|
||||||
|
# CONFIG_NLS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Profiling support
|
||||||
|
#
|
||||||
|
# CONFIG_PROFILING is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Kernel hacking
|
||||||
|
#
|
||||||
|
# CONFIG_PRINTK_TIME is not set
|
||||||
|
# CONFIG_DEBUG_KERNEL is not set
|
||||||
|
CONFIG_LOG_BUF_SHIFT=14
|
||||||
|
# CONFIG_DEBUG_BUGVERBOSE is not set
|
||||||
|
CONFIG_FRAME_POINTER=y
|
||||||
|
# CONFIG_DEBUG_USER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Security options
|
||||||
|
#
|
||||||
|
# CONFIG_KEYS is not set
|
||||||
|
# CONFIG_SECURITY is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Cryptographic options
|
||||||
|
#
|
||||||
|
CONFIG_CRYPTO=y
|
||||||
|
# CONFIG_CRYPTO_HMAC is not set
|
||||||
|
# CONFIG_CRYPTO_NULL is not set
|
||||||
|
# CONFIG_CRYPTO_MD4 is not set
|
||||||
|
CONFIG_CRYPTO_MD5=y
|
||||||
|
# CONFIG_CRYPTO_SHA1 is not set
|
||||||
|
# CONFIG_CRYPTO_SHA256 is not set
|
||||||
|
# CONFIG_CRYPTO_SHA512 is not set
|
||||||
|
# CONFIG_CRYPTO_WP512 is not set
|
||||||
|
# CONFIG_CRYPTO_TGR192 is not set
|
||||||
|
CONFIG_CRYPTO_DES=y
|
||||||
|
# CONFIG_CRYPTO_BLOWFISH is not set
|
||||||
|
# CONFIG_CRYPTO_TWOFISH is not set
|
||||||
|
# CONFIG_CRYPTO_SERPENT is not set
|
||||||
|
# CONFIG_CRYPTO_AES is not set
|
||||||
|
# CONFIG_CRYPTO_CAST5 is not set
|
||||||
|
# CONFIG_CRYPTO_CAST6 is not set
|
||||||
|
# CONFIG_CRYPTO_TEA is not set
|
||||||
|
# CONFIG_CRYPTO_ARC4 is not set
|
||||||
|
# CONFIG_CRYPTO_KHAZAD is not set
|
||||||
|
# CONFIG_CRYPTO_ANUBIS is not set
|
||||||
|
# CONFIG_CRYPTO_DEFLATE is not set
|
||||||
|
# CONFIG_CRYPTO_MICHAEL_MIC is not set
|
||||||
|
# CONFIG_CRYPTO_CRC32C is not set
|
||||||
|
# CONFIG_CRYPTO_TEST is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Hardware crypto devices
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Library routines
|
||||||
|
#
|
||||||
|
# CONFIG_CRC_CCITT is not set
|
||||||
|
CONFIG_CRC32=y
|
||||||
|
# CONFIG_LIBCRC32C is not set
|
||||||
|
CONFIG_ZLIB_INFLATE=y
|
||||||
|
CONFIG_ZLIB_DEFLATE=y
|
|
@ -0,0 +1,884 @@
|
||||||
|
#
|
||||||
|
# Automatically generated make config: don't edit
|
||||||
|
# Linux kernel version: 2.6.17-rc3
|
||||||
|
# Sun May 7 16:54:53 2006
|
||||||
|
#
|
||||||
|
CONFIG_ARM=y
|
||||||
|
CONFIG_MMU=y
|
||||||
|
CONFIG_RWSEM_GENERIC_SPINLOCK=y
|
||||||
|
CONFIG_GENERIC_HWEIGHT=y
|
||||||
|
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
||||||
|
CONFIG_VECTORS_BASE=0xffff0000
|
||||||
|
|
||||||
|
#
|
||||||
|
# Code maturity level options
|
||||||
|
#
|
||||||
|
CONFIG_EXPERIMENTAL=y
|
||||||
|
CONFIG_BROKEN_ON_SMP=y
|
||||||
|
CONFIG_LOCK_KERNEL=y
|
||||||
|
CONFIG_INIT_ENV_ARG_LIMIT=32
|
||||||
|
|
||||||
|
#
|
||||||
|
# General setup
|
||||||
|
#
|
||||||
|
CONFIG_LOCALVERSION=""
|
||||||
|
# CONFIG_LOCALVERSION_AUTO is not set
|
||||||
|
# CONFIG_SWAP is not set
|
||||||
|
CONFIG_SYSVIPC=y
|
||||||
|
# CONFIG_POSIX_MQUEUE is not set
|
||||||
|
# CONFIG_BSD_PROCESS_ACCT is not set
|
||||||
|
CONFIG_SYSCTL=y
|
||||||
|
# CONFIG_AUDIT is not set
|
||||||
|
# CONFIG_IKCONFIG is not set
|
||||||
|
# CONFIG_RELAY is not set
|
||||||
|
CONFIG_INITRAMFS_SOURCE=""
|
||||||
|
CONFIG_UID16=y
|
||||||
|
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
||||||
|
# CONFIG_EMBEDDED is not set
|
||||||
|
CONFIG_KALLSYMS=y
|
||||||
|
# CONFIG_KALLSYMS_EXTRA_PASS is not set
|
||||||
|
CONFIG_HOTPLUG=y
|
||||||
|
CONFIG_PRINTK=y
|
||||||
|
CONFIG_BUG=y
|
||||||
|
CONFIG_ELF_CORE=y
|
||||||
|
CONFIG_BASE_FULL=y
|
||||||
|
CONFIG_FUTEX=y
|
||||||
|
CONFIG_EPOLL=y
|
||||||
|
CONFIG_SHMEM=y
|
||||||
|
CONFIG_SLAB=y
|
||||||
|
# CONFIG_TINY_SHMEM is not set
|
||||||
|
CONFIG_BASE_SMALL=0
|
||||||
|
# CONFIG_SLOB is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Loadable module support
|
||||||
|
#
|
||||||
|
CONFIG_MODULES=y
|
||||||
|
CONFIG_MODULE_UNLOAD=y
|
||||||
|
# CONFIG_MODULE_FORCE_UNLOAD is not set
|
||||||
|
# CONFIG_MODVERSIONS is not set
|
||||||
|
# CONFIG_MODULE_SRCVERSION_ALL is not set
|
||||||
|
# CONFIG_KMOD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Block layer
|
||||||
|
#
|
||||||
|
# CONFIG_BLK_DEV_IO_TRACE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# IO Schedulers
|
||||||
|
#
|
||||||
|
CONFIG_IOSCHED_NOOP=y
|
||||||
|
# CONFIG_IOSCHED_AS is not set
|
||||||
|
CONFIG_IOSCHED_DEADLINE=y
|
||||||
|
# CONFIG_IOSCHED_CFQ is not set
|
||||||
|
# CONFIG_DEFAULT_AS is not set
|
||||||
|
CONFIG_DEFAULT_DEADLINE=y
|
||||||
|
# CONFIG_DEFAULT_CFQ is not set
|
||||||
|
# CONFIG_DEFAULT_NOOP is not set
|
||||||
|
CONFIG_DEFAULT_IOSCHED="deadline"
|
||||||
|
|
||||||
|
#
|
||||||
|
# System Type
|
||||||
|
#
|
||||||
|
# CONFIG_ARCH_CLPS7500 is not set
|
||||||
|
# CONFIG_ARCH_CLPS711X is not set
|
||||||
|
# CONFIG_ARCH_CO285 is not set
|
||||||
|
# CONFIG_ARCH_EBSA110 is not set
|
||||||
|
# CONFIG_ARCH_EP93XX is not set
|
||||||
|
# CONFIG_ARCH_FOOTBRIDGE is not set
|
||||||
|
# CONFIG_ARCH_INTEGRATOR is not set
|
||||||
|
# CONFIG_ARCH_IOP3XX is not set
|
||||||
|
# CONFIG_ARCH_IXP4XX is not set
|
||||||
|
# CONFIG_ARCH_IXP2000 is not set
|
||||||
|
# CONFIG_ARCH_IXP23XX is not set
|
||||||
|
# CONFIG_ARCH_L7200 is not set
|
||||||
|
# CONFIG_ARCH_PXA is not set
|
||||||
|
# CONFIG_ARCH_RPC is not set
|
||||||
|
# CONFIG_ARCH_SA1100 is not set
|
||||||
|
# CONFIG_ARCH_S3C2410 is not set
|
||||||
|
# CONFIG_ARCH_SHARK is not set
|
||||||
|
# CONFIG_ARCH_LH7A40X is not set
|
||||||
|
# CONFIG_ARCH_OMAP is not set
|
||||||
|
# CONFIG_ARCH_VERSATILE is not set
|
||||||
|
# CONFIG_ARCH_REALVIEW is not set
|
||||||
|
# CONFIG_ARCH_IMX is not set
|
||||||
|
# CONFIG_ARCH_H720X is not set
|
||||||
|
# CONFIG_ARCH_AAEC2000 is not set
|
||||||
|
CONFIG_ARCH_AT91RM9200=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# AT91RM9200 Implementations
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# AT91RM9200 Board Type
|
||||||
|
#
|
||||||
|
# CONFIG_ARCH_AT91RM9200DK is not set
|
||||||
|
# CONFIG_MACH_AT91RM9200EK is not set
|
||||||
|
# CONFIG_MACH_CSB337 is not set
|
||||||
|
# CONFIG_MACH_CSB637 is not set
|
||||||
|
# CONFIG_MACH_CARMEVA is not set
|
||||||
|
# CONFIG_MACH_KB9200 is not set
|
||||||
|
# CONFIG_MACH_ATEB9200 is not set
|
||||||
|
CONFIG_MACH_KAFA=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# AT91 Feature Selections
|
||||||
|
#
|
||||||
|
# CONFIG_AT91_PROGRAMMABLE_CLOCKS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Processor Type
|
||||||
|
#
|
||||||
|
CONFIG_CPU_32=y
|
||||||
|
CONFIG_CPU_ARM920T=y
|
||||||
|
CONFIG_CPU_32v4=y
|
||||||
|
CONFIG_CPU_ABRT_EV4T=y
|
||||||
|
CONFIG_CPU_CACHE_V4WT=y
|
||||||
|
CONFIG_CPU_CACHE_VIVT=y
|
||||||
|
CONFIG_CPU_COPY_V4WB=y
|
||||||
|
CONFIG_CPU_TLB_V4WBI=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Processor Features
|
||||||
|
#
|
||||||
|
# CONFIG_ARM_THUMB is not set
|
||||||
|
# CONFIG_CPU_ICACHE_DISABLE is not set
|
||||||
|
# CONFIG_CPU_DCACHE_DISABLE is not set
|
||||||
|
# CONFIG_CPU_DCACHE_WRITETHROUGH is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bus support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# PCCARD (PCMCIA/CardBus) support
|
||||||
|
#
|
||||||
|
# CONFIG_PCCARD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Kernel Features
|
||||||
|
#
|
||||||
|
CONFIG_PREEMPT=y
|
||||||
|
# CONFIG_NO_IDLE_HZ is not set
|
||||||
|
CONFIG_HZ=100
|
||||||
|
# CONFIG_AEABI is not set
|
||||||
|
# CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set
|
||||||
|
CONFIG_SELECT_MEMORY_MODEL=y
|
||||||
|
CONFIG_FLATMEM_MANUAL=y
|
||||||
|
# CONFIG_DISCONTIGMEM_MANUAL is not set
|
||||||
|
# CONFIG_SPARSEMEM_MANUAL is not set
|
||||||
|
CONFIG_FLATMEM=y
|
||||||
|
CONFIG_FLAT_NODE_MEM_MAP=y
|
||||||
|
# CONFIG_SPARSEMEM_STATIC is not set
|
||||||
|
CONFIG_SPLIT_PTLOCK_CPUS=4096
|
||||||
|
CONFIG_LEDS=y
|
||||||
|
# CONFIG_LEDS_TIMER is not set
|
||||||
|
CONFIG_LEDS_CPU=y
|
||||||
|
CONFIG_ALIGNMENT_TRAP=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Boot options
|
||||||
|
#
|
||||||
|
CONFIG_ZBOOT_ROM_TEXT=0x0
|
||||||
|
CONFIG_ZBOOT_ROM_BSS=0x0
|
||||||
|
CONFIG_CMDLINE="mem=32M console=ttyS0,115200 initrd=0x20800000,10M root=/dev/ram0 rw"
|
||||||
|
# CONFIG_XIP_KERNEL is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Floating point emulation
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# At least one emulation must be selected
|
||||||
|
#
|
||||||
|
CONFIG_FPE_NWFPE=y
|
||||||
|
# CONFIG_FPE_NWFPE_XP is not set
|
||||||
|
# CONFIG_FPE_FASTFPE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Userspace binary formats
|
||||||
|
#
|
||||||
|
CONFIG_BINFMT_ELF=y
|
||||||
|
# CONFIG_BINFMT_AOUT is not set
|
||||||
|
CONFIG_BINFMT_MISC=y
|
||||||
|
# CONFIG_ARTHUR is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Power management options
|
||||||
|
#
|
||||||
|
# CONFIG_PM is not set
|
||||||
|
# CONFIG_APM is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Networking
|
||||||
|
#
|
||||||
|
CONFIG_NET=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Networking options
|
||||||
|
#
|
||||||
|
# CONFIG_NETDEBUG is not set
|
||||||
|
CONFIG_PACKET=y
|
||||||
|
# CONFIG_PACKET_MMAP is not set
|
||||||
|
CONFIG_UNIX=y
|
||||||
|
# CONFIG_NET_KEY is not set
|
||||||
|
CONFIG_INET=y
|
||||||
|
# CONFIG_IP_MULTICAST is not set
|
||||||
|
# CONFIG_IP_ADVANCED_ROUTER is not set
|
||||||
|
CONFIG_IP_FIB_HASH=y
|
||||||
|
# CONFIG_IP_PNP is not set
|
||||||
|
# CONFIG_NET_IPIP is not set
|
||||||
|
# CONFIG_NET_IPGRE is not set
|
||||||
|
# CONFIG_ARPD is not set
|
||||||
|
# CONFIG_SYN_COOKIES is not set
|
||||||
|
# CONFIG_INET_AH is not set
|
||||||
|
# CONFIG_INET_ESP is not set
|
||||||
|
# CONFIG_INET_IPCOMP is not set
|
||||||
|
# CONFIG_INET_XFRM_TUNNEL is not set
|
||||||
|
# CONFIG_INET_TUNNEL is not set
|
||||||
|
# CONFIG_INET_DIAG is not set
|
||||||
|
# CONFIG_TCP_CONG_ADVANCED is not set
|
||||||
|
CONFIG_TCP_CONG_BIC=y
|
||||||
|
# CONFIG_IPV6 is not set
|
||||||
|
# CONFIG_INET6_XFRM_TUNNEL is not set
|
||||||
|
# CONFIG_INET6_TUNNEL is not set
|
||||||
|
# CONFIG_NETFILTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# DCCP Configuration (EXPERIMENTAL)
|
||||||
|
#
|
||||||
|
# CONFIG_IP_DCCP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCTP Configuration (EXPERIMENTAL)
|
||||||
|
#
|
||||||
|
# CONFIG_IP_SCTP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# TIPC Configuration (EXPERIMENTAL)
|
||||||
|
#
|
||||||
|
# CONFIG_TIPC is not set
|
||||||
|
# CONFIG_ATM is not set
|
||||||
|
# CONFIG_BRIDGE is not set
|
||||||
|
# CONFIG_VLAN_8021Q is not set
|
||||||
|
# CONFIG_DECNET is not set
|
||||||
|
# CONFIG_LLC2 is not set
|
||||||
|
# CONFIG_IPX is not set
|
||||||
|
# CONFIG_ATALK is not set
|
||||||
|
# CONFIG_X25 is not set
|
||||||
|
# CONFIG_LAPB is not set
|
||||||
|
# CONFIG_NET_DIVERT is not set
|
||||||
|
# CONFIG_ECONET is not set
|
||||||
|
# CONFIG_WAN_ROUTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# QoS and/or fair queueing
|
||||||
|
#
|
||||||
|
# CONFIG_NET_SCHED is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Network testing
|
||||||
|
#
|
||||||
|
# CONFIG_NET_PKTGEN is not set
|
||||||
|
# CONFIG_HAMRADIO is not set
|
||||||
|
# CONFIG_IRDA is not set
|
||||||
|
# CONFIG_BT is not set
|
||||||
|
# CONFIG_IEEE80211 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Device Drivers
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generic Driver Options
|
||||||
|
#
|
||||||
|
CONFIG_STANDALONE=y
|
||||||
|
CONFIG_PREVENT_FIRMWARE_BUILD=y
|
||||||
|
# CONFIG_FW_LOADER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Connector - unified userspace <-> kernelspace linker
|
||||||
|
#
|
||||||
|
# CONFIG_CONNECTOR is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Memory Technology Devices (MTD)
|
||||||
|
#
|
||||||
|
CONFIG_MTD=y
|
||||||
|
# CONFIG_MTD_DEBUG is not set
|
||||||
|
# CONFIG_MTD_CONCAT is not set
|
||||||
|
CONFIG_MTD_PARTITIONS=y
|
||||||
|
# CONFIG_MTD_REDBOOT_PARTS is not set
|
||||||
|
# CONFIG_MTD_CMDLINE_PARTS is not set
|
||||||
|
# CONFIG_MTD_AFS_PARTS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# User Modules And Translation Layers
|
||||||
|
#
|
||||||
|
CONFIG_MTD_CHAR=y
|
||||||
|
# CONFIG_MTD_BLOCK is not set
|
||||||
|
CONFIG_MTD_BLOCK_RO=y
|
||||||
|
# CONFIG_FTL is not set
|
||||||
|
# CONFIG_NFTL is not set
|
||||||
|
# CONFIG_INFTL is not set
|
||||||
|
# CONFIG_RFD_FTL is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# RAM/ROM/Flash chip drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_CFI is not set
|
||||||
|
# CONFIG_MTD_JEDECPROBE is not set
|
||||||
|
CONFIG_MTD_MAP_BANK_WIDTH_1=y
|
||||||
|
CONFIG_MTD_MAP_BANK_WIDTH_2=y
|
||||||
|
CONFIG_MTD_MAP_BANK_WIDTH_4=y
|
||||||
|
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
|
||||||
|
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
|
||||||
|
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
|
||||||
|
CONFIG_MTD_CFI_I1=y
|
||||||
|
CONFIG_MTD_CFI_I2=y
|
||||||
|
# CONFIG_MTD_CFI_I4 is not set
|
||||||
|
# CONFIG_MTD_CFI_I8 is not set
|
||||||
|
# CONFIG_MTD_RAM is not set
|
||||||
|
# CONFIG_MTD_ROM is not set
|
||||||
|
# CONFIG_MTD_ABSENT is not set
|
||||||
|
# CONFIG_MTD_OBSOLETE_CHIPS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Mapping drivers for chip access
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
|
||||||
|
# CONFIG_MTD_PLATRAM is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Self-contained MTD device drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_SLRAM is not set
|
||||||
|
# CONFIG_MTD_PHRAM is not set
|
||||||
|
# CONFIG_MTD_MTDRAM is not set
|
||||||
|
# CONFIG_MTD_BLOCK2MTD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Disk-On-Chip Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_DOC2000 is not set
|
||||||
|
# CONFIG_MTD_DOC2001 is not set
|
||||||
|
# CONFIG_MTD_DOC2001PLUS is not set
|
||||||
|
CONFIG_MTD_AT91_DATAFLASH=y
|
||||||
|
# CONFIG_MTD_AT91_DATAFLASH_CARD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# NAND Flash Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_NAND is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# OneNAND Flash Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_ONENAND is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Parallel port support
|
||||||
|
#
|
||||||
|
# CONFIG_PARPORT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Plug and Play support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Block devices
|
||||||
|
#
|
||||||
|
# CONFIG_BLK_DEV_COW_COMMON is not set
|
||||||
|
# CONFIG_BLK_DEV_LOOP is not set
|
||||||
|
# CONFIG_BLK_DEV_NBD is not set
|
||||||
|
# CONFIG_BLK_DEV_RAM is not set
|
||||||
|
# CONFIG_BLK_DEV_INITRD is not set
|
||||||
|
# CONFIG_CDROM_PKTCDVD is not set
|
||||||
|
# CONFIG_ATA_OVER_ETH is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCSI device support
|
||||||
|
#
|
||||||
|
# CONFIG_RAID_ATTRS is not set
|
||||||
|
# CONFIG_SCSI is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Multi-device support (RAID and LVM)
|
||||||
|
#
|
||||||
|
# CONFIG_MD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Fusion MPT device support
|
||||||
|
#
|
||||||
|
# CONFIG_FUSION is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# IEEE 1394 (FireWire) support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2O device support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Network device support
|
||||||
|
#
|
||||||
|
CONFIG_NETDEVICES=y
|
||||||
|
# CONFIG_DUMMY is not set
|
||||||
|
# CONFIG_BONDING is not set
|
||||||
|
# CONFIG_EQUALIZER is not set
|
||||||
|
# CONFIG_TUN is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# PHY device support
|
||||||
|
#
|
||||||
|
CONFIG_PHYLIB=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# MII PHY device drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MARVELL_PHY is not set
|
||||||
|
CONFIG_DAVICOM_PHY=y
|
||||||
|
# CONFIG_QSEMI_PHY is not set
|
||||||
|
# CONFIG_LXT_PHY is not set
|
||||||
|
# CONFIG_CICADA_PHY is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ethernet (10 or 100Mbit)
|
||||||
|
#
|
||||||
|
CONFIG_NET_ETHERNET=y
|
||||||
|
CONFIG_MII=y
|
||||||
|
CONFIG_ARM_AT91_ETHER=y
|
||||||
|
# CONFIG_SMC91X is not set
|
||||||
|
# CONFIG_DM9000 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ethernet (1000 Mbit)
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ethernet (10000 Mbit)
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Token Ring devices
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Wireless LAN (non-hamradio)
|
||||||
|
#
|
||||||
|
# CONFIG_NET_RADIO is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Wan interfaces
|
||||||
|
#
|
||||||
|
# CONFIG_WAN is not set
|
||||||
|
# CONFIG_PPP is not set
|
||||||
|
# CONFIG_SLIP is not set
|
||||||
|
# CONFIG_SHAPER is not set
|
||||||
|
# CONFIG_NETCONSOLE is not set
|
||||||
|
# CONFIG_NETPOLL is not set
|
||||||
|
# CONFIG_NET_POLL_CONTROLLER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# ISDN subsystem
|
||||||
|
#
|
||||||
|
# CONFIG_ISDN is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Input device support
|
||||||
|
#
|
||||||
|
CONFIG_INPUT=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Userland interfaces
|
||||||
|
#
|
||||||
|
CONFIG_INPUT_MOUSEDEV=y
|
||||||
|
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
|
||||||
|
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
|
||||||
|
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
|
||||||
|
# CONFIG_INPUT_JOYDEV is not set
|
||||||
|
# CONFIG_INPUT_TSDEV is not set
|
||||||
|
# CONFIG_INPUT_EVDEV is not set
|
||||||
|
# CONFIG_INPUT_EVBUG is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Input Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_INPUT_KEYBOARD is not set
|
||||||
|
# CONFIG_INPUT_MOUSE is not set
|
||||||
|
# CONFIG_INPUT_JOYSTICK is not set
|
||||||
|
# CONFIG_INPUT_TOUCHSCREEN is not set
|
||||||
|
# CONFIG_INPUT_MISC is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Hardware I/O ports
|
||||||
|
#
|
||||||
|
# CONFIG_SERIO is not set
|
||||||
|
# CONFIG_GAMEPORT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Character devices
|
||||||
|
#
|
||||||
|
CONFIG_VT=y
|
||||||
|
CONFIG_VT_CONSOLE=y
|
||||||
|
CONFIG_HW_CONSOLE=y
|
||||||
|
# CONFIG_SERIAL_NONSTANDARD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Serial drivers
|
||||||
|
#
|
||||||
|
# CONFIG_SERIAL_8250 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Non-8250 serial port support
|
||||||
|
#
|
||||||
|
CONFIG_SERIAL_AT91=y
|
||||||
|
CONFIG_SERIAL_AT91_CONSOLE=y
|
||||||
|
# CONFIG_SERIAL_AT91_TTYAT is not set
|
||||||
|
CONFIG_SERIAL_CORE=y
|
||||||
|
CONFIG_SERIAL_CORE_CONSOLE=y
|
||||||
|
CONFIG_UNIX98_PTYS=y
|
||||||
|
CONFIG_LEGACY_PTYS=y
|
||||||
|
CONFIG_LEGACY_PTY_COUNT=32
|
||||||
|
|
||||||
|
#
|
||||||
|
# IPMI
|
||||||
|
#
|
||||||
|
# CONFIG_IPMI_HANDLER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Watchdog Cards
|
||||||
|
#
|
||||||
|
CONFIG_WATCHDOG=y
|
||||||
|
CONFIG_WATCHDOG_NOWAYOUT=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Watchdog Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_SOFT_WATCHDOG is not set
|
||||||
|
CONFIG_AT91_WATCHDOG=y
|
||||||
|
# CONFIG_NVRAM is not set
|
||||||
|
# CONFIG_DTLK is not set
|
||||||
|
# CONFIG_R3964 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ftape, the floppy tape device driver
|
||||||
|
#
|
||||||
|
# CONFIG_RAW_DRIVER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# TPM devices
|
||||||
|
#
|
||||||
|
# CONFIG_TCG_TPM is not set
|
||||||
|
# CONFIG_TELCLOCK is not set
|
||||||
|
CONFIG_AT91_SPI=y
|
||||||
|
CONFIG_AT91_SPIDEV=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2C support
|
||||||
|
#
|
||||||
|
CONFIG_I2C=y
|
||||||
|
CONFIG_I2C_CHARDEV=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2C Algorithms
|
||||||
|
#
|
||||||
|
# CONFIG_I2C_ALGOBIT is not set
|
||||||
|
# CONFIG_I2C_ALGOPCF is not set
|
||||||
|
# CONFIG_I2C_ALGOPCA is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2C Hardware Bus support
|
||||||
|
#
|
||||||
|
CONFIG_I2C_AT91=y
|
||||||
|
# CONFIG_I2C_PARPORT_LIGHT is not set
|
||||||
|
# CONFIG_I2C_STUB is not set
|
||||||
|
# CONFIG_I2C_PCA_ISA is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Miscellaneous I2C Chip support
|
||||||
|
#
|
||||||
|
# CONFIG_SENSORS_DS1337 is not set
|
||||||
|
# CONFIG_SENSORS_DS1374 is not set
|
||||||
|
# CONFIG_SENSORS_EEPROM is not set
|
||||||
|
# CONFIG_SENSORS_PCF8574 is not set
|
||||||
|
# CONFIG_SENSORS_PCA9539 is not set
|
||||||
|
# CONFIG_SENSORS_PCF8591 is not set
|
||||||
|
# CONFIG_SENSORS_MAX6875 is not set
|
||||||
|
# CONFIG_I2C_DEBUG_CORE is not set
|
||||||
|
# CONFIG_I2C_DEBUG_ALGO is not set
|
||||||
|
# CONFIG_I2C_DEBUG_BUS is not set
|
||||||
|
# CONFIG_I2C_DEBUG_CHIP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SPI support
|
||||||
|
#
|
||||||
|
# CONFIG_SPI is not set
|
||||||
|
# CONFIG_SPI_MASTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Dallas's 1-wire bus
|
||||||
|
#
|
||||||
|
# CONFIG_W1 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Hardware Monitoring support
|
||||||
|
#
|
||||||
|
# CONFIG_HWMON is not set
|
||||||
|
# CONFIG_HWMON_VID is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Misc devices
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# LED devices
|
||||||
|
#
|
||||||
|
# CONFIG_NEW_LEDS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# LED drivers
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# LED Triggers
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Multimedia devices
|
||||||
|
#
|
||||||
|
# CONFIG_VIDEO_DEV is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Digital Video Broadcasting Devices
|
||||||
|
#
|
||||||
|
# CONFIG_DVB is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Graphics support
|
||||||
|
#
|
||||||
|
# CONFIG_FB is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Console display driver support
|
||||||
|
#
|
||||||
|
# CONFIG_VGA_CONSOLE is not set
|
||||||
|
CONFIG_DUMMY_CONSOLE=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Sound
|
||||||
|
#
|
||||||
|
# CONFIG_SOUND is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB support
|
||||||
|
#
|
||||||
|
CONFIG_USB_ARCH_HAS_HCD=y
|
||||||
|
CONFIG_USB_ARCH_HAS_OHCI=y
|
||||||
|
# CONFIG_USB_ARCH_HAS_EHCI is not set
|
||||||
|
# CONFIG_USB is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Gadget Support
|
||||||
|
#
|
||||||
|
# CONFIG_USB_GADGET is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# MMC/SD Card support
|
||||||
|
#
|
||||||
|
# CONFIG_MMC is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Real Time Clock
|
||||||
|
#
|
||||||
|
CONFIG_RTC_LIB=y
|
||||||
|
CONFIG_RTC_CLASS=y
|
||||||
|
# CONFIG_RTC_HCTOSYS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# RTC interfaces
|
||||||
|
#
|
||||||
|
CONFIG_RTC_INTF_SYSFS=y
|
||||||
|
CONFIG_RTC_INTF_PROC=y
|
||||||
|
CONFIG_RTC_INTF_DEV=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# RTC drivers
|
||||||
|
#
|
||||||
|
# CONFIG_RTC_DRV_X1205 is not set
|
||||||
|
# CONFIG_RTC_DRV_DS1672 is not set
|
||||||
|
# CONFIG_RTC_DRV_PCF8563 is not set
|
||||||
|
# CONFIG_RTC_DRV_RS5C372 is not set
|
||||||
|
# CONFIG_RTC_DRV_M48T86 is not set
|
||||||
|
CONFIG_RTC_DRV_AT91=y
|
||||||
|
# CONFIG_RTC_DRV_TEST is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# File systems
|
||||||
|
#
|
||||||
|
# CONFIG_EXT2_FS is not set
|
||||||
|
CONFIG_EXT3_FS=y
|
||||||
|
# CONFIG_EXT3_FS_XATTR is not set
|
||||||
|
CONFIG_JBD=y
|
||||||
|
# CONFIG_JBD_DEBUG is not set
|
||||||
|
# CONFIG_REISERFS_FS is not set
|
||||||
|
# CONFIG_JFS_FS is not set
|
||||||
|
# CONFIG_FS_POSIX_ACL is not set
|
||||||
|
# CONFIG_XFS_FS is not set
|
||||||
|
# CONFIG_OCFS2_FS is not set
|
||||||
|
# CONFIG_MINIX_FS is not set
|
||||||
|
# CONFIG_ROMFS_FS is not set
|
||||||
|
# CONFIG_INOTIFY is not set
|
||||||
|
# CONFIG_QUOTA is not set
|
||||||
|
CONFIG_DNOTIFY=y
|
||||||
|
# CONFIG_AUTOFS_FS is not set
|
||||||
|
# CONFIG_AUTOFS4_FS is not set
|
||||||
|
# CONFIG_FUSE_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# CD-ROM/DVD Filesystems
|
||||||
|
#
|
||||||
|
# CONFIG_ISO9660_FS is not set
|
||||||
|
# CONFIG_UDF_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# DOS/FAT/NT Filesystems
|
||||||
|
#
|
||||||
|
# CONFIG_MSDOS_FS is not set
|
||||||
|
# CONFIG_VFAT_FS is not set
|
||||||
|
# CONFIG_NTFS_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Pseudo filesystems
|
||||||
|
#
|
||||||
|
CONFIG_PROC_FS=y
|
||||||
|
CONFIG_SYSFS=y
|
||||||
|
CONFIG_TMPFS=y
|
||||||
|
# CONFIG_HUGETLB_PAGE is not set
|
||||||
|
CONFIG_RAMFS=y
|
||||||
|
# CONFIG_CONFIGFS_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Miscellaneous filesystems
|
||||||
|
#
|
||||||
|
# CONFIG_ADFS_FS is not set
|
||||||
|
# CONFIG_AFFS_FS is not set
|
||||||
|
# CONFIG_HFS_FS is not set
|
||||||
|
# CONFIG_HFSPLUS_FS is not set
|
||||||
|
# CONFIG_BEFS_FS is not set
|
||||||
|
# CONFIG_BFS_FS is not set
|
||||||
|
# CONFIG_EFS_FS is not set
|
||||||
|
# CONFIG_JFFS_FS is not set
|
||||||
|
# CONFIG_JFFS2_FS is not set
|
||||||
|
CONFIG_CRAMFS=y
|
||||||
|
# CONFIG_VXFS_FS is not set
|
||||||
|
# CONFIG_HPFS_FS is not set
|
||||||
|
# CONFIG_QNX4FS_FS is not set
|
||||||
|
# CONFIG_SYSV_FS is not set
|
||||||
|
# CONFIG_UFS_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Network File Systems
|
||||||
|
#
|
||||||
|
CONFIG_NFS_FS=m
|
||||||
|
CONFIG_NFS_V3=y
|
||||||
|
# CONFIG_NFS_V3_ACL is not set
|
||||||
|
# CONFIG_NFS_V4 is not set
|
||||||
|
# CONFIG_NFS_DIRECTIO is not set
|
||||||
|
# CONFIG_NFSD is not set
|
||||||
|
CONFIG_LOCKD=m
|
||||||
|
CONFIG_LOCKD_V4=y
|
||||||
|
CONFIG_NFS_COMMON=y
|
||||||
|
CONFIG_SUNRPC=m
|
||||||
|
# CONFIG_RPCSEC_GSS_KRB5 is not set
|
||||||
|
# CONFIG_RPCSEC_GSS_SPKM3 is not set
|
||||||
|
# CONFIG_SMB_FS is not set
|
||||||
|
# CONFIG_CIFS is not set
|
||||||
|
# CONFIG_NCP_FS is not set
|
||||||
|
# CONFIG_CODA_FS is not set
|
||||||
|
# CONFIG_AFS_FS is not set
|
||||||
|
# CONFIG_9P_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Partition Types
|
||||||
|
#
|
||||||
|
# CONFIG_PARTITION_ADVANCED is not set
|
||||||
|
CONFIG_MSDOS_PARTITION=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Native Language Support
|
||||||
|
#
|
||||||
|
# CONFIG_NLS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Profiling support
|
||||||
|
#
|
||||||
|
# CONFIG_PROFILING is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Kernel hacking
|
||||||
|
#
|
||||||
|
# CONFIG_PRINTK_TIME is not set
|
||||||
|
# CONFIG_MAGIC_SYSRQ is not set
|
||||||
|
# CONFIG_DEBUG_KERNEL is not set
|
||||||
|
CONFIG_LOG_BUF_SHIFT=14
|
||||||
|
CONFIG_DEBUG_BUGVERBOSE=y
|
||||||
|
# CONFIG_DEBUG_FS is not set
|
||||||
|
CONFIG_FRAME_POINTER=y
|
||||||
|
# CONFIG_UNWIND_INFO is not set
|
||||||
|
# CONFIG_DEBUG_USER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Security options
|
||||||
|
#
|
||||||
|
# CONFIG_KEYS is not set
|
||||||
|
# CONFIG_SECURITY is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Cryptographic options
|
||||||
|
#
|
||||||
|
CONFIG_CRYPTO=y
|
||||||
|
# CONFIG_CRYPTO_HMAC is not set
|
||||||
|
# CONFIG_CRYPTO_NULL is not set
|
||||||
|
# CONFIG_CRYPTO_MD4 is not set
|
||||||
|
CONFIG_CRYPTO_MD5=y
|
||||||
|
# CONFIG_CRYPTO_SHA1 is not set
|
||||||
|
# CONFIG_CRYPTO_SHA256 is not set
|
||||||
|
# CONFIG_CRYPTO_SHA512 is not set
|
||||||
|
# CONFIG_CRYPTO_WP512 is not set
|
||||||
|
# CONFIG_CRYPTO_TGR192 is not set
|
||||||
|
CONFIG_CRYPTO_DES=y
|
||||||
|
# CONFIG_CRYPTO_BLOWFISH is not set
|
||||||
|
# CONFIG_CRYPTO_TWOFISH is not set
|
||||||
|
# CONFIG_CRYPTO_SERPENT is not set
|
||||||
|
# CONFIG_CRYPTO_AES is not set
|
||||||
|
# CONFIG_CRYPTO_CAST5 is not set
|
||||||
|
# CONFIG_CRYPTO_CAST6 is not set
|
||||||
|
# CONFIG_CRYPTO_TEA is not set
|
||||||
|
# CONFIG_CRYPTO_ARC4 is not set
|
||||||
|
# CONFIG_CRYPTO_KHAZAD is not set
|
||||||
|
# CONFIG_CRYPTO_ANUBIS is not set
|
||||||
|
# CONFIG_CRYPTO_DEFLATE is not set
|
||||||
|
# CONFIG_CRYPTO_MICHAEL_MIC is not set
|
||||||
|
# CONFIG_CRYPTO_CRC32C is not set
|
||||||
|
# CONFIG_CRYPTO_TEST is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Hardware crypto devices
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Library routines
|
||||||
|
#
|
||||||
|
# CONFIG_CRC_CCITT is not set
|
||||||
|
# CONFIG_CRC16 is not set
|
||||||
|
CONFIG_CRC32=y
|
||||||
|
# CONFIG_LIBCRC32C is not set
|
||||||
|
CONFIG_ZLIB_INFLATE=y
|
|
@ -0,0 +1,780 @@
|
||||||
|
#
|
||||||
|
# Automatically generated make config: don't edit
|
||||||
|
# Linux kernel version: 2.6.13-rc2
|
||||||
|
# Sun Aug 14 19:26:59 2005
|
||||||
|
#
|
||||||
|
CONFIG_ARM=y
|
||||||
|
CONFIG_MMU=y
|
||||||
|
CONFIG_UID16=y
|
||||||
|
CONFIG_RWSEM_GENERIC_SPINLOCK=y
|
||||||
|
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Code maturity level options
|
||||||
|
#
|
||||||
|
# CONFIG_EXPERIMENTAL is not set
|
||||||
|
CONFIG_CLEAN_COMPILE=y
|
||||||
|
CONFIG_BROKEN_ON_SMP=y
|
||||||
|
CONFIG_INIT_ENV_ARG_LIMIT=32
|
||||||
|
|
||||||
|
#
|
||||||
|
# General setup
|
||||||
|
#
|
||||||
|
CONFIG_LOCALVERSION=""
|
||||||
|
# CONFIG_SWAP is not set
|
||||||
|
# CONFIG_SYSVIPC is not set
|
||||||
|
# CONFIG_BSD_PROCESS_ACCT is not set
|
||||||
|
CONFIG_SYSCTL=y
|
||||||
|
# CONFIG_AUDIT is not set
|
||||||
|
CONFIG_HOTPLUG=y
|
||||||
|
# CONFIG_KOBJECT_UEVENT is not set
|
||||||
|
# CONFIG_IKCONFIG is not set
|
||||||
|
# CONFIG_EMBEDDED is not set
|
||||||
|
CONFIG_KALLSYMS=y
|
||||||
|
# CONFIG_KALLSYMS_ALL is not set
|
||||||
|
# CONFIG_KALLSYMS_EXTRA_PASS is not set
|
||||||
|
CONFIG_PRINTK=y
|
||||||
|
CONFIG_BUG=y
|
||||||
|
CONFIG_BASE_FULL=y
|
||||||
|
CONFIG_FUTEX=y
|
||||||
|
CONFIG_EPOLL=y
|
||||||
|
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
||||||
|
CONFIG_SHMEM=y
|
||||||
|
CONFIG_CC_ALIGN_FUNCTIONS=0
|
||||||
|
CONFIG_CC_ALIGN_LABELS=0
|
||||||
|
CONFIG_CC_ALIGN_LOOPS=0
|
||||||
|
CONFIG_CC_ALIGN_JUMPS=0
|
||||||
|
# CONFIG_TINY_SHMEM is not set
|
||||||
|
CONFIG_BASE_SMALL=0
|
||||||
|
|
||||||
|
#
|
||||||
|
# Loadable module support
|
||||||
|
#
|
||||||
|
CONFIG_MODULES=y
|
||||||
|
CONFIG_MODULE_UNLOAD=y
|
||||||
|
CONFIG_OBSOLETE_MODPARM=y
|
||||||
|
# CONFIG_MODULE_SRCVERSION_ALL is not set
|
||||||
|
CONFIG_KMOD=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# System Type
|
||||||
|
#
|
||||||
|
# CONFIG_ARCH_CLPS7500 is not set
|
||||||
|
# CONFIG_ARCH_CLPS711X is not set
|
||||||
|
# CONFIG_ARCH_CO285 is not set
|
||||||
|
# CONFIG_ARCH_EBSA110 is not set
|
||||||
|
# CONFIG_ARCH_FOOTBRIDGE is not set
|
||||||
|
# CONFIG_ARCH_INTEGRATOR is not set
|
||||||
|
# CONFIG_ARCH_IOP3XX is not set
|
||||||
|
# CONFIG_ARCH_IXP4XX is not set
|
||||||
|
# CONFIG_ARCH_IXP2000 is not set
|
||||||
|
# CONFIG_ARCH_L7200 is not set
|
||||||
|
# CONFIG_ARCH_PXA is not set
|
||||||
|
# CONFIG_ARCH_RPC is not set
|
||||||
|
# CONFIG_ARCH_SA1100 is not set
|
||||||
|
# CONFIG_ARCH_S3C2410 is not set
|
||||||
|
# CONFIG_ARCH_SHARK is not set
|
||||||
|
# CONFIG_ARCH_LH7A40X is not set
|
||||||
|
# CONFIG_ARCH_OMAP is not set
|
||||||
|
# CONFIG_ARCH_VERSATILE is not set
|
||||||
|
# CONFIG_ARCH_IMX is not set
|
||||||
|
# CONFIG_ARCH_H720X is not set
|
||||||
|
# CONFIG_ARCH_AAEC2000 is not set
|
||||||
|
CONFIG_ARCH_AT91RM9200=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# AT91RM9200 Implementations
|
||||||
|
#
|
||||||
|
# CONFIG_ARCH_AT91RM9200DK is not set
|
||||||
|
# CONFIG_MACH_AT91RM9200EK is not set
|
||||||
|
# CONFIG_MACH_CSB337 is not set
|
||||||
|
# CONFIG_MACH_CSB637 is not set
|
||||||
|
# CONFIG_MACH_CARMEVA is not set
|
||||||
|
CONFIG_MACH_KB9200=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Processor Type
|
||||||
|
#
|
||||||
|
CONFIG_CPU_32=y
|
||||||
|
CONFIG_CPU_ARM920T=y
|
||||||
|
CONFIG_CPU_32v4=y
|
||||||
|
CONFIG_CPU_ABRT_EV4T=y
|
||||||
|
CONFIG_CPU_CACHE_V4WT=y
|
||||||
|
CONFIG_CPU_CACHE_VIVT=y
|
||||||
|
CONFIG_CPU_COPY_V4WB=y
|
||||||
|
CONFIG_CPU_TLB_V4WBI=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Processor Features
|
||||||
|
#
|
||||||
|
CONFIG_ARM_THUMB=y
|
||||||
|
# CONFIG_CPU_ICACHE_DISABLE is not set
|
||||||
|
# CONFIG_CPU_DCACHE_DISABLE is not set
|
||||||
|
# CONFIG_CPU_DCACHE_WRITETHROUGH is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bus support
|
||||||
|
#
|
||||||
|
CONFIG_ISA_DMA_API=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# PCCARD (PCMCIA/CardBus) support
|
||||||
|
#
|
||||||
|
# CONFIG_PCCARD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Kernel Features
|
||||||
|
#
|
||||||
|
# CONFIG_NO_IDLE_HZ is not set
|
||||||
|
# CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set
|
||||||
|
CONFIG_FLATMEM=y
|
||||||
|
CONFIG_FLAT_NODE_MEM_MAP=y
|
||||||
|
# CONFIG_LEDS is not set
|
||||||
|
CONFIG_ALIGNMENT_TRAP=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Boot options
|
||||||
|
#
|
||||||
|
CONFIG_ZBOOT_ROM_TEXT=0x10000000
|
||||||
|
CONFIG_ZBOOT_ROM_BSS=0x20040000
|
||||||
|
CONFIG_ZBOOT_ROM=y
|
||||||
|
CONFIG_CMDLINE="console=ttyS0,115200 root=/dev/ram rw initrd=0x20210000,654933"
|
||||||
|
|
||||||
|
#
|
||||||
|
# Floating point emulation
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# At least one emulation must be selected
|
||||||
|
#
|
||||||
|
CONFIG_FPE_NWFPE=y
|
||||||
|
# CONFIG_FPE_NWFPE_XP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Userspace binary formats
|
||||||
|
#
|
||||||
|
CONFIG_BINFMT_ELF=y
|
||||||
|
CONFIG_BINFMT_AOUT=y
|
||||||
|
CONFIG_BINFMT_MISC=y
|
||||||
|
# CONFIG_ARTHUR is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Power management options
|
||||||
|
#
|
||||||
|
# CONFIG_PM is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Device Drivers
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generic Driver Options
|
||||||
|
#
|
||||||
|
CONFIG_STANDALONE=y
|
||||||
|
CONFIG_PREVENT_FIRMWARE_BUILD=y
|
||||||
|
# CONFIG_FW_LOADER is not set
|
||||||
|
CONFIG_DEBUG_DRIVER=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Memory Technology Devices (MTD)
|
||||||
|
#
|
||||||
|
# CONFIG_MTD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Parallel port support
|
||||||
|
#
|
||||||
|
# CONFIG_PARPORT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Plug and Play support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Block devices
|
||||||
|
#
|
||||||
|
# CONFIG_BLK_DEV_COW_COMMON is not set
|
||||||
|
CONFIG_BLK_DEV_LOOP=y
|
||||||
|
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
|
||||||
|
CONFIG_BLK_DEV_NBD=y
|
||||||
|
# CONFIG_BLK_DEV_UB is not set
|
||||||
|
CONFIG_BLK_DEV_RAM=y
|
||||||
|
CONFIG_BLK_DEV_RAM_COUNT=16
|
||||||
|
CONFIG_BLK_DEV_RAM_SIZE=4096
|
||||||
|
CONFIG_BLK_DEV_INITRD=y
|
||||||
|
CONFIG_INITRAMFS_SOURCE=""
|
||||||
|
# CONFIG_CDROM_PKTCDVD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# IO Schedulers
|
||||||
|
#
|
||||||
|
CONFIG_IOSCHED_NOOP=y
|
||||||
|
CONFIG_IOSCHED_AS=y
|
||||||
|
CONFIG_IOSCHED_DEADLINE=y
|
||||||
|
CONFIG_IOSCHED_CFQ=y
|
||||||
|
# CONFIG_ATA_OVER_ETH is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCSI device support
|
||||||
|
#
|
||||||
|
CONFIG_SCSI=y
|
||||||
|
CONFIG_SCSI_PROC_FS=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCSI support type (disk, tape, CD-ROM)
|
||||||
|
#
|
||||||
|
CONFIG_BLK_DEV_SD=y
|
||||||
|
# CONFIG_CHR_DEV_ST is not set
|
||||||
|
# CONFIG_CHR_DEV_OSST is not set
|
||||||
|
# CONFIG_BLK_DEV_SR is not set
|
||||||
|
CONFIG_CHR_DEV_SG=y
|
||||||
|
# CONFIG_CHR_DEV_SCH is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
|
||||||
|
#
|
||||||
|
# CONFIG_SCSI_MULTI_LUN is not set
|
||||||
|
# CONFIG_SCSI_CONSTANTS is not set
|
||||||
|
# CONFIG_SCSI_LOGGING is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCSI Transport Attributes
|
||||||
|
#
|
||||||
|
# CONFIG_SCSI_SPI_ATTRS is not set
|
||||||
|
# CONFIG_SCSI_FC_ATTRS is not set
|
||||||
|
# CONFIG_SCSI_ISCSI_ATTRS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCSI low-level drivers
|
||||||
|
#
|
||||||
|
# CONFIG_SCSI_SATA is not set
|
||||||
|
# CONFIG_SCSI_DEBUG is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Multi-device support (RAID and LVM)
|
||||||
|
#
|
||||||
|
# CONFIG_MD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Fusion MPT device support
|
||||||
|
#
|
||||||
|
# CONFIG_FUSION is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# IEEE 1394 (FireWire) support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2O device support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Networking support
|
||||||
|
#
|
||||||
|
CONFIG_NET=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Networking options
|
||||||
|
#
|
||||||
|
CONFIG_PACKET=y
|
||||||
|
# CONFIG_PACKET_MMAP is not set
|
||||||
|
CONFIG_UNIX=y
|
||||||
|
# CONFIG_NET_KEY is not set
|
||||||
|
CONFIG_INET=y
|
||||||
|
CONFIG_IP_MULTICAST=y
|
||||||
|
# CONFIG_IP_ADVANCED_ROUTER is not set
|
||||||
|
CONFIG_IP_FIB_HASH=y
|
||||||
|
CONFIG_IP_PNP=y
|
||||||
|
CONFIG_IP_PNP_DHCP=y
|
||||||
|
# CONFIG_IP_PNP_BOOTP is not set
|
||||||
|
# CONFIG_IP_PNP_RARP is not set
|
||||||
|
# CONFIG_NET_IPIP is not set
|
||||||
|
# CONFIG_NET_IPGRE is not set
|
||||||
|
# CONFIG_IP_MROUTE is not set
|
||||||
|
# CONFIG_SYN_COOKIES is not set
|
||||||
|
# CONFIG_INET_AH is not set
|
||||||
|
# CONFIG_INET_ESP is not set
|
||||||
|
# CONFIG_INET_IPCOMP is not set
|
||||||
|
# CONFIG_INET_TUNNEL is not set
|
||||||
|
# CONFIG_IP_TCPDIAG is not set
|
||||||
|
# CONFIG_IP_TCPDIAG_IPV6 is not set
|
||||||
|
# CONFIG_TCP_CONG_ADVANCED is not set
|
||||||
|
CONFIG_TCP_CONG_BIC=y
|
||||||
|
# CONFIG_IPV6 is not set
|
||||||
|
# CONFIG_NETFILTER is not set
|
||||||
|
# CONFIG_BRIDGE is not set
|
||||||
|
# CONFIG_VLAN_8021Q is not set
|
||||||
|
# CONFIG_DECNET is not set
|
||||||
|
# CONFIG_LLC2 is not set
|
||||||
|
# CONFIG_IPX is not set
|
||||||
|
# CONFIG_ATALK is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# QoS and/or fair queueing
|
||||||
|
#
|
||||||
|
# CONFIG_NET_SCHED is not set
|
||||||
|
# CONFIG_NET_CLS_ROUTE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Network testing
|
||||||
|
#
|
||||||
|
# CONFIG_NET_PKTGEN is not set
|
||||||
|
# CONFIG_NETPOLL is not set
|
||||||
|
# CONFIG_NET_POLL_CONTROLLER is not set
|
||||||
|
# CONFIG_HAMRADIO is not set
|
||||||
|
# CONFIG_IRDA is not set
|
||||||
|
# CONFIG_BT is not set
|
||||||
|
CONFIG_NETDEVICES=y
|
||||||
|
# CONFIG_DUMMY is not set
|
||||||
|
# CONFIG_BONDING is not set
|
||||||
|
# CONFIG_EQUALIZER is not set
|
||||||
|
# CONFIG_TUN is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ethernet (10 or 100Mbit)
|
||||||
|
#
|
||||||
|
CONFIG_NET_ETHERNET=y
|
||||||
|
CONFIG_MII=y
|
||||||
|
CONFIG_ARM_AT91_ETHER=y
|
||||||
|
# CONFIG_SMC91X is not set
|
||||||
|
# CONFIG_DM9000 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ethernet (1000 Mbit)
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ethernet (10000 Mbit)
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Token Ring devices
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Wireless LAN (non-hamradio)
|
||||||
|
#
|
||||||
|
# CONFIG_NET_RADIO is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Wan interfaces
|
||||||
|
#
|
||||||
|
# CONFIG_WAN is not set
|
||||||
|
# CONFIG_PPP is not set
|
||||||
|
# CONFIG_SLIP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# ISDN subsystem
|
||||||
|
#
|
||||||
|
# CONFIG_ISDN is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Input device support
|
||||||
|
#
|
||||||
|
CONFIG_INPUT=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Userland interfaces
|
||||||
|
#
|
||||||
|
CONFIG_INPUT_MOUSEDEV=y
|
||||||
|
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
|
||||||
|
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
|
||||||
|
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
|
||||||
|
# CONFIG_INPUT_JOYDEV is not set
|
||||||
|
# CONFIG_INPUT_TSDEV is not set
|
||||||
|
# CONFIG_INPUT_EVDEV is not set
|
||||||
|
# CONFIG_INPUT_EVBUG is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Input Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_INPUT_KEYBOARD is not set
|
||||||
|
# CONFIG_INPUT_MOUSE is not set
|
||||||
|
# CONFIG_INPUT_JOYSTICK is not set
|
||||||
|
# CONFIG_INPUT_TOUCHSCREEN is not set
|
||||||
|
# CONFIG_INPUT_MISC is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Hardware I/O ports
|
||||||
|
#
|
||||||
|
CONFIG_SERIO=y
|
||||||
|
# CONFIG_SERIO_SERPORT is not set
|
||||||
|
# CONFIG_SERIO_RAW is not set
|
||||||
|
# CONFIG_GAMEPORT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Character devices
|
||||||
|
#
|
||||||
|
CONFIG_VT=y
|
||||||
|
CONFIG_VT_CONSOLE=y
|
||||||
|
CONFIG_HW_CONSOLE=y
|
||||||
|
# CONFIG_SERIAL_NONSTANDARD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Serial drivers
|
||||||
|
#
|
||||||
|
# CONFIG_SERIAL_8250 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Non-8250 serial port support
|
||||||
|
#
|
||||||
|
CONFIG_SERIAL_AT91=y
|
||||||
|
CONFIG_SERIAL_AT91_CONSOLE=y
|
||||||
|
CONFIG_SERIAL_CORE=y
|
||||||
|
CONFIG_SERIAL_CORE_CONSOLE=y
|
||||||
|
CONFIG_UNIX98_PTYS=y
|
||||||
|
CONFIG_LEGACY_PTYS=y
|
||||||
|
CONFIG_LEGACY_PTY_COUNT=256
|
||||||
|
|
||||||
|
#
|
||||||
|
# IPMI
|
||||||
|
#
|
||||||
|
# CONFIG_IPMI_HANDLER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Watchdog Cards
|
||||||
|
#
|
||||||
|
# CONFIG_WATCHDOG is not set
|
||||||
|
# CONFIG_NVRAM is not set
|
||||||
|
# CONFIG_RTC is not set
|
||||||
|
# CONFIG_AT91_RTC is not set
|
||||||
|
# CONFIG_DTLK is not set
|
||||||
|
# CONFIG_R3964 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ftape, the floppy tape device driver
|
||||||
|
#
|
||||||
|
# CONFIG_RAW_DRIVER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# TPM devices
|
||||||
|
#
|
||||||
|
# CONFIG_AT91_SPI is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2C support
|
||||||
|
#
|
||||||
|
# CONFIG_I2C is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Misc devices
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Multimedia devices
|
||||||
|
#
|
||||||
|
# CONFIG_VIDEO_DEV is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Digital Video Broadcasting Devices
|
||||||
|
#
|
||||||
|
# CONFIG_DVB is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Graphics support
|
||||||
|
#
|
||||||
|
# CONFIG_FB is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Console display driver support
|
||||||
|
#
|
||||||
|
# CONFIG_VGA_CONSOLE is not set
|
||||||
|
CONFIG_DUMMY_CONSOLE=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Sound
|
||||||
|
#
|
||||||
|
# CONFIG_SOUND is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB support
|
||||||
|
#
|
||||||
|
CONFIG_USB_ARCH_HAS_HCD=y
|
||||||
|
CONFIG_USB_ARCH_HAS_OHCI=y
|
||||||
|
CONFIG_USB=y
|
||||||
|
CONFIG_USB_DEBUG=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Miscellaneous USB options
|
||||||
|
#
|
||||||
|
CONFIG_USB_DEVICEFS=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Host Controller Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_USB_ISP116X_HCD is not set
|
||||||
|
CONFIG_USB_OHCI_HCD=y
|
||||||
|
# CONFIG_USB_OHCI_BIG_ENDIAN is not set
|
||||||
|
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
|
||||||
|
# CONFIG_USB_SL811_HCD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Device Class drivers
|
||||||
|
#
|
||||||
|
# CONFIG_USB_BLUETOOTH_TTY is not set
|
||||||
|
# CONFIG_USB_ACM is not set
|
||||||
|
# CONFIG_USB_PRINTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
|
||||||
|
#
|
||||||
|
CONFIG_USB_STORAGE=y
|
||||||
|
CONFIG_USB_STORAGE_DEBUG=y
|
||||||
|
# CONFIG_USB_STORAGE_FREECOM is not set
|
||||||
|
# CONFIG_USB_STORAGE_DPCM is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Input Devices
|
||||||
|
#
|
||||||
|
# CONFIG_USB_HID is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB HID Boot Protocol drivers
|
||||||
|
#
|
||||||
|
# CONFIG_USB_KBD is not set
|
||||||
|
# CONFIG_USB_MOUSE is not set
|
||||||
|
# CONFIG_USB_AIPTEK is not set
|
||||||
|
# CONFIG_USB_WACOM is not set
|
||||||
|
# CONFIG_USB_ACECAD is not set
|
||||||
|
# CONFIG_USB_KBTAB is not set
|
||||||
|
# CONFIG_USB_POWERMATE is not set
|
||||||
|
# CONFIG_USB_MTOUCH is not set
|
||||||
|
# CONFIG_USB_ITMTOUCH is not set
|
||||||
|
# CONFIG_USB_EGALAX is not set
|
||||||
|
# CONFIG_USB_XPAD is not set
|
||||||
|
# CONFIG_USB_ATI_REMOTE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Imaging devices
|
||||||
|
#
|
||||||
|
# CONFIG_USB_MICROTEK is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Multimedia devices
|
||||||
|
#
|
||||||
|
# CONFIG_USB_DABUSB is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Video4Linux support is needed for USB Multimedia device support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Network Adapters
|
||||||
|
#
|
||||||
|
# CONFIG_USB_KAWETH is not set
|
||||||
|
# CONFIG_USB_PEGASUS is not set
|
||||||
|
# CONFIG_USB_USBNET is not set
|
||||||
|
# CONFIG_USB_MON is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB port drivers
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Serial Converter support
|
||||||
|
#
|
||||||
|
# CONFIG_USB_SERIAL is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Miscellaneous drivers
|
||||||
|
#
|
||||||
|
# CONFIG_USB_EMI62 is not set
|
||||||
|
# CONFIG_USB_EMI26 is not set
|
||||||
|
# CONFIG_USB_LCD is not set
|
||||||
|
# CONFIG_USB_LED is not set
|
||||||
|
# CONFIG_USB_CYTHERM is not set
|
||||||
|
# CONFIG_USB_PHIDGETKIT is not set
|
||||||
|
# CONFIG_USB_PHIDGETSERVO is not set
|
||||||
|
# CONFIG_USB_IDMOUSE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB DSL modem support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Gadget Support
|
||||||
|
#
|
||||||
|
# CONFIG_USB_GADGET is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# MMC/SD Card support
|
||||||
|
#
|
||||||
|
# CONFIG_MMC is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# File systems
|
||||||
|
#
|
||||||
|
CONFIG_EXT2_FS=y
|
||||||
|
CONFIG_EXT2_FS_XATTR=y
|
||||||
|
# CONFIG_EXT2_FS_POSIX_ACL is not set
|
||||||
|
# CONFIG_EXT2_FS_SECURITY is not set
|
||||||
|
# CONFIG_EXT2_FS_XIP is not set
|
||||||
|
CONFIG_EXT3_FS=y
|
||||||
|
CONFIG_EXT3_FS_XATTR=y
|
||||||
|
# CONFIG_EXT3_FS_POSIX_ACL is not set
|
||||||
|
# CONFIG_EXT3_FS_SECURITY is not set
|
||||||
|
CONFIG_JBD=y
|
||||||
|
# CONFIG_JBD_DEBUG is not set
|
||||||
|
CONFIG_FS_MBCACHE=y
|
||||||
|
# CONFIG_REISERFS_FS is not set
|
||||||
|
# CONFIG_JFS_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# XFS support
|
||||||
|
#
|
||||||
|
# CONFIG_XFS_FS is not set
|
||||||
|
# CONFIG_MINIX_FS is not set
|
||||||
|
# CONFIG_ROMFS_FS is not set
|
||||||
|
# CONFIG_QUOTA is not set
|
||||||
|
CONFIG_DNOTIFY=y
|
||||||
|
CONFIG_AUTOFS_FS=y
|
||||||
|
CONFIG_AUTOFS4_FS=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# CD-ROM/DVD Filesystems
|
||||||
|
#
|
||||||
|
# CONFIG_ISO9660_FS is not set
|
||||||
|
# CONFIG_UDF_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# DOS/FAT/NT Filesystems
|
||||||
|
#
|
||||||
|
CONFIG_FAT_FS=y
|
||||||
|
CONFIG_MSDOS_FS=y
|
||||||
|
CONFIG_VFAT_FS=y
|
||||||
|
CONFIG_FAT_DEFAULT_CODEPAGE=437
|
||||||
|
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
|
||||||
|
# CONFIG_NTFS_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Pseudo filesystems
|
||||||
|
#
|
||||||
|
CONFIG_PROC_FS=y
|
||||||
|
CONFIG_SYSFS=y
|
||||||
|
CONFIG_DEVPTS_FS_XATTR=y
|
||||||
|
# CONFIG_DEVPTS_FS_SECURITY is not set
|
||||||
|
CONFIG_TMPFS=y
|
||||||
|
# CONFIG_TMPFS_XATTR is not set
|
||||||
|
# CONFIG_HUGETLB_PAGE is not set
|
||||||
|
CONFIG_RAMFS=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Miscellaneous filesystems
|
||||||
|
#
|
||||||
|
# CONFIG_HFSPLUS_FS is not set
|
||||||
|
# CONFIG_CRAMFS is not set
|
||||||
|
# CONFIG_VXFS_FS is not set
|
||||||
|
# CONFIG_HPFS_FS is not set
|
||||||
|
# CONFIG_QNX4FS_FS is not set
|
||||||
|
# CONFIG_SYSV_FS is not set
|
||||||
|
# CONFIG_UFS_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Network File Systems
|
||||||
|
#
|
||||||
|
CONFIG_NFS_FS=y
|
||||||
|
CONFIG_NFS_V3=y
|
||||||
|
# CONFIG_NFS_V3_ACL is not set
|
||||||
|
# CONFIG_NFSD is not set
|
||||||
|
CONFIG_ROOT_NFS=y
|
||||||
|
CONFIG_LOCKD=y
|
||||||
|
CONFIG_LOCKD_V4=y
|
||||||
|
CONFIG_NFS_COMMON=y
|
||||||
|
CONFIG_SUNRPC=y
|
||||||
|
# CONFIG_SMB_FS is not set
|
||||||
|
# CONFIG_CIFS is not set
|
||||||
|
# CONFIG_NCP_FS is not set
|
||||||
|
# CONFIG_CODA_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Partition Types
|
||||||
|
#
|
||||||
|
# CONFIG_PARTITION_ADVANCED is not set
|
||||||
|
CONFIG_MSDOS_PARTITION=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Native Language Support
|
||||||
|
#
|
||||||
|
CONFIG_NLS=y
|
||||||
|
CONFIG_NLS_DEFAULT="utf8"
|
||||||
|
CONFIG_NLS_CODEPAGE_437=y
|
||||||
|
# CONFIG_NLS_CODEPAGE_737 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_775 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_850 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_852 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_855 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_857 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_860 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_861 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_862 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_863 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_864 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_865 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_866 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_869 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_936 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_950 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_932 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_949 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_874 is not set
|
||||||
|
# CONFIG_NLS_ISO8859_8 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_1250 is not set
|
||||||
|
# CONFIG_NLS_CODEPAGE_1251 is not set
|
||||||
|
CONFIG_NLS_ASCII=y
|
||||||
|
# CONFIG_NLS_ISO8859_1 is not set
|
||||||
|
# CONFIG_NLS_ISO8859_2 is not set
|
||||||
|
# CONFIG_NLS_ISO8859_3 is not set
|
||||||
|
# CONFIG_NLS_ISO8859_4 is not set
|
||||||
|
# CONFIG_NLS_ISO8859_5 is not set
|
||||||
|
# CONFIG_NLS_ISO8859_6 is not set
|
||||||
|
# CONFIG_NLS_ISO8859_7 is not set
|
||||||
|
# CONFIG_NLS_ISO8859_9 is not set
|
||||||
|
# CONFIG_NLS_ISO8859_13 is not set
|
||||||
|
# CONFIG_NLS_ISO8859_14 is not set
|
||||||
|
# CONFIG_NLS_ISO8859_15 is not set
|
||||||
|
# CONFIG_NLS_KOI8_R is not set
|
||||||
|
# CONFIG_NLS_KOI8_U is not set
|
||||||
|
# CONFIG_NLS_UTF8 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Kernel hacking
|
||||||
|
#
|
||||||
|
# CONFIG_PRINTK_TIME is not set
|
||||||
|
CONFIG_DEBUG_KERNEL=y
|
||||||
|
# CONFIG_MAGIC_SYSRQ is not set
|
||||||
|
CONFIG_LOG_BUF_SHIFT=14
|
||||||
|
# CONFIG_SCHEDSTATS is not set
|
||||||
|
# CONFIG_DEBUG_SLAB is not set
|
||||||
|
# CONFIG_DEBUG_SPINLOCK is not set
|
||||||
|
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
|
||||||
|
# CONFIG_DEBUG_KOBJECT is not set
|
||||||
|
CONFIG_DEBUG_BUGVERBOSE=y
|
||||||
|
# CONFIG_DEBUG_INFO is not set
|
||||||
|
# CONFIG_DEBUG_FS is not set
|
||||||
|
CONFIG_FRAME_POINTER=y
|
||||||
|
CONFIG_DEBUG_USER=y
|
||||||
|
# CONFIG_DEBUG_WAITQ is not set
|
||||||
|
CONFIG_DEBUG_ERRORS=y
|
||||||
|
CONFIG_DEBUG_LL=y
|
||||||
|
# CONFIG_DEBUG_ICEDCC is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Security options
|
||||||
|
#
|
||||||
|
# CONFIG_KEYS is not set
|
||||||
|
# CONFIG_SECURITY is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Cryptographic options
|
||||||
|
#
|
||||||
|
# CONFIG_CRYPTO is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Hardware crypto devices
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Library routines
|
||||||
|
#
|
||||||
|
# CONFIG_CRC_CCITT is not set
|
||||||
|
CONFIG_CRC32=y
|
||||||
|
# CONFIG_LIBCRC32C is not set
|
|
@ -1,7 +1,7 @@
|
||||||
#
|
#
|
||||||
# Automatically generated make config: don't edit
|
# Automatically generated make config: don't edit
|
||||||
# Linux kernel version: 2.6.12-rc1-bk2
|
# Linux kernel version: 2.6.12
|
||||||
# Mon Mar 28 00:06:33 2005
|
# Thu Nov 3 14:15:32 2005
|
||||||
#
|
#
|
||||||
CONFIG_ARM=y
|
CONFIG_ARM=y
|
||||||
CONFIG_MMU=y
|
CONFIG_MMU=y
|
||||||
|
@ -17,6 +17,7 @@ CONFIG_EXPERIMENTAL=y
|
||||||
CONFIG_CLEAN_COMPILE=y
|
CONFIG_CLEAN_COMPILE=y
|
||||||
CONFIG_BROKEN_ON_SMP=y
|
CONFIG_BROKEN_ON_SMP=y
|
||||||
CONFIG_LOCK_KERNEL=y
|
CONFIG_LOCK_KERNEL=y
|
||||||
|
CONFIG_INIT_ENV_ARG_LIMIT=32
|
||||||
|
|
||||||
#
|
#
|
||||||
# General setup
|
# General setup
|
||||||
|
@ -36,6 +37,8 @@ CONFIG_EMBEDDED=y
|
||||||
CONFIG_KALLSYMS=y
|
CONFIG_KALLSYMS=y
|
||||||
# CONFIG_KALLSYMS_ALL is not set
|
# CONFIG_KALLSYMS_ALL is not set
|
||||||
# CONFIG_KALLSYMS_EXTRA_PASS is not set
|
# CONFIG_KALLSYMS_EXTRA_PASS is not set
|
||||||
|
CONFIG_PRINTK=y
|
||||||
|
CONFIG_BUG=y
|
||||||
CONFIG_BASE_FULL=y
|
CONFIG_BASE_FULL=y
|
||||||
CONFIG_FUTEX=y
|
CONFIG_FUTEX=y
|
||||||
# CONFIG_EPOLL is not set
|
# CONFIG_EPOLL is not set
|
||||||
|
@ -71,6 +74,7 @@ CONFIG_BASE_SMALL=0
|
||||||
# CONFIG_ARCH_SA1100 is not set
|
# CONFIG_ARCH_SA1100 is not set
|
||||||
# CONFIG_ARCH_S3C2410 is not set
|
# CONFIG_ARCH_S3C2410 is not set
|
||||||
# CONFIG_ARCH_SHARK is not set
|
# CONFIG_ARCH_SHARK is not set
|
||||||
|
# CONFIG_ARCH_LH7952X is not set
|
||||||
CONFIG_ARCH_LH7A40X=y
|
CONFIG_ARCH_LH7A40X=y
|
||||||
# CONFIG_ARCH_OMAP is not set
|
# CONFIG_ARCH_OMAP is not set
|
||||||
# CONFIG_ARCH_VERSATILE is not set
|
# CONFIG_ARCH_VERSATILE is not set
|
||||||
|
@ -84,6 +88,7 @@ CONFIG_ARCH_LH7A40X=y
|
||||||
CONFIG_MACH_LPD7A400=y
|
CONFIG_MACH_LPD7A400=y
|
||||||
# CONFIG_MACH_LPD7A404 is not set
|
# CONFIG_MACH_LPD7A404 is not set
|
||||||
CONFIG_ARCH_LH7A400=y
|
CONFIG_ARCH_LH7A400=y
|
||||||
|
CONFIG_LPD7A40X_CPLD_SSP=y
|
||||||
# CONFIG_LH7A40X_CONTIGMEM is not set
|
# CONFIG_LH7A40X_CONTIGMEM is not set
|
||||||
# CONFIG_LH7A40X_ONE_BANK_PER_NODE is not set
|
# CONFIG_LH7A40X_ONE_BANK_PER_NODE is not set
|
||||||
|
|
||||||
|
@ -110,6 +115,8 @@ CONFIG_ARM_THUMB=y
|
||||||
#
|
#
|
||||||
# Bus support
|
# Bus support
|
||||||
#
|
#
|
||||||
|
CONFIG_ARM_AMBA=y
|
||||||
|
CONFIG_ISA_DMA_API=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# PCCARD (PCMCIA/CardBus) support
|
# PCCARD (PCMCIA/CardBus) support
|
||||||
|
@ -119,6 +126,7 @@ CONFIG_ARM_THUMB=y
|
||||||
#
|
#
|
||||||
# Kernel Features
|
# Kernel Features
|
||||||
#
|
#
|
||||||
|
# CONFIG_SMP is not set
|
||||||
CONFIG_PREEMPT=y
|
CONFIG_PREEMPT=y
|
||||||
CONFIG_DISCONTIGMEM=y
|
CONFIG_DISCONTIGMEM=y
|
||||||
CONFIG_ALIGNMENT_TRAP=y
|
CONFIG_ALIGNMENT_TRAP=y
|
||||||
|
@ -175,7 +183,7 @@ CONFIG_MTD=y
|
||||||
# CONFIG_MTD_CONCAT is not set
|
# CONFIG_MTD_CONCAT is not set
|
||||||
CONFIG_MTD_PARTITIONS=y
|
CONFIG_MTD_PARTITIONS=y
|
||||||
# CONFIG_MTD_REDBOOT_PARTS is not set
|
# CONFIG_MTD_REDBOOT_PARTS is not set
|
||||||
# CONFIG_MTD_CMDLINE_PARTS is not set
|
CONFIG_MTD_CMDLINE_PARTS=y
|
||||||
# CONFIG_MTD_AFS_PARTS is not set
|
# CONFIG_MTD_AFS_PARTS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -217,7 +225,10 @@ CONFIG_MTD_CFI_UTIL=y
|
||||||
# Mapping drivers for chip access
|
# Mapping drivers for chip access
|
||||||
#
|
#
|
||||||
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
|
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
|
||||||
# CONFIG_MTD_PHYSMAP is not set
|
CONFIG_MTD_PHYSMAP=y
|
||||||
|
CONFIG_MTD_PHYSMAP_START=0x00000000
|
||||||
|
CONFIG_MTD_PHYSMAP_LEN=0x04000000
|
||||||
|
CONFIG_MTD_PHYSMAP_BANKWIDTH=4
|
||||||
# CONFIG_MTD_ARM_INTEGRATOR is not set
|
# CONFIG_MTD_ARM_INTEGRATOR is not set
|
||||||
# CONFIG_MTD_EDB7312 is not set
|
# CONFIG_MTD_EDB7312 is not set
|
||||||
|
|
||||||
|
@ -254,7 +265,6 @@ CONFIG_MTD_CFI_UTIL=y
|
||||||
#
|
#
|
||||||
# Block devices
|
# Block devices
|
||||||
#
|
#
|
||||||
# CONFIG_BLK_DEV_FD is not set
|
|
||||||
# CONFIG_BLK_DEV_COW_COMMON is not set
|
# CONFIG_BLK_DEV_COW_COMMON is not set
|
||||||
CONFIG_BLK_DEV_LOOP=y
|
CONFIG_BLK_DEV_LOOP=y
|
||||||
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
|
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
|
||||||
|
@ -288,13 +298,15 @@ CONFIG_BLK_DEV_IDEDISK=y
|
||||||
# CONFIG_BLK_DEV_IDECD is not set
|
# CONFIG_BLK_DEV_IDECD is not set
|
||||||
# CONFIG_BLK_DEV_IDETAPE is not set
|
# CONFIG_BLK_DEV_IDETAPE is not set
|
||||||
# CONFIG_BLK_DEV_IDEFLOPPY is not set
|
# CONFIG_BLK_DEV_IDEFLOPPY is not set
|
||||||
|
# CONFIG_BLK_DEV_IDESCSI is not set
|
||||||
# CONFIG_IDE_TASK_IOCTL is not set
|
# CONFIG_IDE_TASK_IOCTL is not set
|
||||||
|
CONFIG_IDE_POLL=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# IDE chipset support/bugfixes
|
# IDE chipset support/bugfixes
|
||||||
#
|
#
|
||||||
CONFIG_IDE_GENERIC=y
|
CONFIG_IDE_GENERIC=y
|
||||||
# CONFIG_IDE_ARM is not set
|
CONFIG_IDE_ARM=y
|
||||||
# CONFIG_BLK_DEV_IDEDMA is not set
|
# CONFIG_BLK_DEV_IDEDMA is not set
|
||||||
# CONFIG_IDEDMA_AUTO is not set
|
# CONFIG_IDEDMA_AUTO is not set
|
||||||
# CONFIG_BLK_DEV_HD is not set
|
# CONFIG_BLK_DEV_HD is not set
|
||||||
|
@ -302,7 +314,37 @@ CONFIG_IDE_GENERIC=y
|
||||||
#
|
#
|
||||||
# SCSI device support
|
# SCSI device support
|
||||||
#
|
#
|
||||||
# CONFIG_SCSI is not set
|
CONFIG_SCSI=y
|
||||||
|
# CONFIG_SCSI_PROC_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCSI support type (disk, tape, CD-ROM)
|
||||||
|
#
|
||||||
|
# CONFIG_BLK_DEV_SD is not set
|
||||||
|
# CONFIG_CHR_DEV_ST is not set
|
||||||
|
# CONFIG_CHR_DEV_OSST is not set
|
||||||
|
# CONFIG_BLK_DEV_SR is not set
|
||||||
|
# CONFIG_CHR_DEV_SG is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
|
||||||
|
#
|
||||||
|
# CONFIG_SCSI_MULTI_LUN is not set
|
||||||
|
# CONFIG_SCSI_CONSTANTS is not set
|
||||||
|
# CONFIG_SCSI_LOGGING is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCSI Transport Attributes
|
||||||
|
#
|
||||||
|
# CONFIG_SCSI_SPI_ATTRS is not set
|
||||||
|
# CONFIG_SCSI_FC_ATTRS is not set
|
||||||
|
# CONFIG_SCSI_ISCSI_ATTRS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCSI low-level drivers
|
||||||
|
#
|
||||||
|
# CONFIG_SCSI_SATA is not set
|
||||||
|
# CONFIG_SCSI_DEBUG is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Multi-device support (RAID and LVM)
|
# Multi-device support (RAID and LVM)
|
||||||
|
@ -331,7 +373,6 @@ CONFIG_NET=y
|
||||||
#
|
#
|
||||||
CONFIG_PACKET=y
|
CONFIG_PACKET=y
|
||||||
# CONFIG_PACKET_MMAP is not set
|
# CONFIG_PACKET_MMAP is not set
|
||||||
# CONFIG_NETLINK_DEV is not set
|
|
||||||
CONFIG_UNIX=y
|
CONFIG_UNIX=y
|
||||||
# CONFIG_NET_KEY is not set
|
# CONFIG_NET_KEY is not set
|
||||||
CONFIG_INET=y
|
CONFIG_INET=y
|
||||||
|
@ -438,13 +479,10 @@ CONFIG_INPUT=y
|
||||||
#
|
#
|
||||||
# Userland interfaces
|
# Userland interfaces
|
||||||
#
|
#
|
||||||
CONFIG_INPUT_MOUSEDEV=y
|
# CONFIG_INPUT_MOUSEDEV is not set
|
||||||
CONFIG_INPUT_MOUSEDEV_PSAUX=y
|
|
||||||
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
|
|
||||||
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
|
|
||||||
# CONFIG_INPUT_JOYDEV is not set
|
# CONFIG_INPUT_JOYDEV is not set
|
||||||
# CONFIG_INPUT_TSDEV is not set
|
# CONFIG_INPUT_TSDEV is not set
|
||||||
# CONFIG_INPUT_EVDEV is not set
|
CONFIG_INPUT_EVDEV=y
|
||||||
# CONFIG_INPUT_EVBUG is not set
|
# CONFIG_INPUT_EVBUG is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -453,7 +491,13 @@ CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
|
||||||
# CONFIG_INPUT_KEYBOARD is not set
|
# CONFIG_INPUT_KEYBOARD is not set
|
||||||
# CONFIG_INPUT_MOUSE is not set
|
# CONFIG_INPUT_MOUSE is not set
|
||||||
# CONFIG_INPUT_JOYSTICK is not set
|
# CONFIG_INPUT_JOYSTICK is not set
|
||||||
# CONFIG_INPUT_TOUCHSCREEN is not set
|
CONFIG_INPUT_TOUCHSCREEN=y
|
||||||
|
# CONFIG_TOUCHSCREEN_GUNZE is not set
|
||||||
|
# CONFIG_TOUCHSCREEN_ELO is not set
|
||||||
|
# CONFIG_TOUCHSCREEN_MTOUCH is not set
|
||||||
|
# CONFIG_TOUCHSCREEN_MK712 is not set
|
||||||
|
CONFIG_TOUCHSCREEN_ADS7843_LH7=y
|
||||||
|
CONFIG_HAS_TOUCHSCREEN_ADS7843_LH7=y
|
||||||
# CONFIG_INPUT_MISC is not set
|
# CONFIG_INPUT_MISC is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -461,7 +505,6 @@ CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
|
||||||
#
|
#
|
||||||
# CONFIG_SERIO is not set
|
# CONFIG_SERIO is not set
|
||||||
# CONFIG_GAMEPORT is not set
|
# CONFIG_GAMEPORT is not set
|
||||||
CONFIG_SOUND_GAMEPORT=y
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Character devices
|
# Character devices
|
||||||
|
@ -479,6 +522,8 @@ CONFIG_HW_CONSOLE=y
|
||||||
#
|
#
|
||||||
# Non-8250 serial port support
|
# Non-8250 serial port support
|
||||||
#
|
#
|
||||||
|
# CONFIG_SERIAL_AMBA_PL010 is not set
|
||||||
|
# CONFIG_SERIAL_AMBA_PL011 is not set
|
||||||
CONFIG_SERIAL_CORE=y
|
CONFIG_SERIAL_CORE=y
|
||||||
CONFIG_SERIAL_CORE_CONSOLE=y
|
CONFIG_SERIAL_CORE_CONSOLE=y
|
||||||
CONFIG_SERIAL_LH7A40X=y
|
CONFIG_SERIAL_LH7A40X=y
|
||||||
|
@ -510,7 +555,6 @@ CONFIG_RTC=y
|
||||||
#
|
#
|
||||||
# TPM devices
|
# TPM devices
|
||||||
#
|
#
|
||||||
# CONFIG_TCG_TPM is not set
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# I2C support
|
# I2C support
|
||||||
|
@ -534,18 +578,73 @@ CONFIG_RTC=y
|
||||||
#
|
#
|
||||||
# Graphics support
|
# Graphics support
|
||||||
#
|
#
|
||||||
# CONFIG_FB is not set
|
CONFIG_FB=y
|
||||||
|
CONFIG_FB_CFB_FILLRECT=y
|
||||||
|
CONFIG_FB_CFB_COPYAREA=y
|
||||||
|
CONFIG_FB_CFB_IMAGEBLIT=y
|
||||||
|
CONFIG_FB_SOFT_CURSOR=y
|
||||||
|
# CONFIG_FB_MACMODES is not set
|
||||||
|
# CONFIG_FB_MODE_HELPERS is not set
|
||||||
|
# CONFIG_FB_TILEBLITTING is not set
|
||||||
|
CONFIG_FB_ARMCLCD=y
|
||||||
|
CONFIG_FB_ARMCLCD_SHARP_LQ035Q7DB02_HRTFT=y
|
||||||
|
# CONFIG_FB_ARMCLCD_SHARP_LQ057Q3DC02 is not set
|
||||||
|
# CONFIG_FB_ARMCLCD_SHARP_LQ64D343 is not set
|
||||||
|
# CONFIG_FB_ARMCLCD_SHARP_LQ10D368 is not set
|
||||||
|
# CONFIG_FB_ARMCLCD_SHARP_LQ121S1DG41 is not set
|
||||||
|
# CONFIG_FB_S1D13XXX is not set
|
||||||
|
# CONFIG_FB_VIRTUAL is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Console display driver support
|
# Console display driver support
|
||||||
#
|
#
|
||||||
# CONFIG_VGA_CONSOLE is not set
|
# CONFIG_VGA_CONSOLE is not set
|
||||||
CONFIG_DUMMY_CONSOLE=y
|
CONFIG_DUMMY_CONSOLE=y
|
||||||
|
# CONFIG_FRAMEBUFFER_CONSOLE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Logo configuration
|
||||||
|
#
|
||||||
|
# CONFIG_LOGO is not set
|
||||||
|
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Sound
|
# Sound
|
||||||
#
|
#
|
||||||
# CONFIG_SOUND is not set
|
CONFIG_SOUND=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Advanced Linux Sound Architecture
|
||||||
|
#
|
||||||
|
CONFIG_SND=y
|
||||||
|
CONFIG_SND_TIMER=y
|
||||||
|
CONFIG_SND_PCM=y
|
||||||
|
# CONFIG_SND_SEQUENCER is not set
|
||||||
|
CONFIG_SND_OSSEMUL=y
|
||||||
|
CONFIG_SND_MIXER_OSS=y
|
||||||
|
CONFIG_SND_PCM_OSS=y
|
||||||
|
# CONFIG_SND_RTCTIMER is not set
|
||||||
|
# CONFIG_SND_VERBOSE_PRINTK is not set
|
||||||
|
# CONFIG_SND_DEBUG is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generic devices
|
||||||
|
#
|
||||||
|
# CONFIG_SND_DUMMY is not set
|
||||||
|
# CONFIG_SND_MTPAV is not set
|
||||||
|
# CONFIG_SND_SERIAL_U16550 is not set
|
||||||
|
# CONFIG_SND_MPU401 is not set
|
||||||
|
CONFIG_SND_AC97_CODEC=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# ALSA ARM devices
|
||||||
|
#
|
||||||
|
CONFIG_SND_LH7A40X_AC97=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Open Sound System
|
||||||
|
#
|
||||||
|
# CONFIG_SOUND_PRIME is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB support
|
# USB support
|
||||||
|
|
|
@ -1,58 +1,81 @@
|
||||||
#
|
#
|
||||||
# Automatically generated make config: don't edit
|
# Automatically generated make config: don't edit
|
||||||
# Linux kernel version: 2.6.12-rc1-bk2
|
# Linux kernel version: 2.6.16
|
||||||
# Mon Mar 28 00:14:08 2005
|
# Thu Mar 23 17:50:31 2006
|
||||||
#
|
#
|
||||||
CONFIG_ARM=y
|
CONFIG_ARM=y
|
||||||
CONFIG_MMU=y
|
CONFIG_MMU=y
|
||||||
CONFIG_UID16=y
|
|
||||||
CONFIG_RWSEM_GENERIC_SPINLOCK=y
|
CONFIG_RWSEM_GENERIC_SPINLOCK=y
|
||||||
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
||||||
CONFIG_GENERIC_IOMAP=y
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Code maturity level options
|
# Code maturity level options
|
||||||
#
|
#
|
||||||
CONFIG_EXPERIMENTAL=y
|
CONFIG_EXPERIMENTAL=y
|
||||||
CONFIG_CLEAN_COMPILE=y
|
|
||||||
CONFIG_BROKEN_ON_SMP=y
|
CONFIG_BROKEN_ON_SMP=y
|
||||||
CONFIG_LOCK_KERNEL=y
|
CONFIG_LOCK_KERNEL=y
|
||||||
|
CONFIG_INIT_ENV_ARG_LIMIT=32
|
||||||
|
|
||||||
#
|
#
|
||||||
# General setup
|
# General setup
|
||||||
#
|
#
|
||||||
CONFIG_LOCALVERSION=""
|
CONFIG_LOCALVERSION=""
|
||||||
|
CONFIG_LOCALVERSION_AUTO=y
|
||||||
# CONFIG_SWAP is not set
|
# CONFIG_SWAP is not set
|
||||||
CONFIG_SYSVIPC=y
|
CONFIG_SYSVIPC=y
|
||||||
# CONFIG_POSIX_MQUEUE is not set
|
# CONFIG_POSIX_MQUEUE is not set
|
||||||
# CONFIG_BSD_PROCESS_ACCT is not set
|
# CONFIG_BSD_PROCESS_ACCT is not set
|
||||||
CONFIG_SYSCTL=y
|
CONFIG_SYSCTL=y
|
||||||
# CONFIG_AUDIT is not set
|
# CONFIG_AUDIT is not set
|
||||||
# CONFIG_HOTPLUG is not set
|
|
||||||
CONFIG_KOBJECT_UEVENT=y
|
|
||||||
CONFIG_IKCONFIG=y
|
CONFIG_IKCONFIG=y
|
||||||
# CONFIG_IKCONFIG_PROC is not set
|
# CONFIG_IKCONFIG_PROC is not set
|
||||||
|
CONFIG_INITRAMFS_SOURCE=""
|
||||||
|
CONFIG_UID16=y
|
||||||
|
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
||||||
CONFIG_EMBEDDED=y
|
CONFIG_EMBEDDED=y
|
||||||
CONFIG_KALLSYMS=y
|
CONFIG_KALLSYMS=y
|
||||||
# CONFIG_KALLSYMS_ALL is not set
|
# CONFIG_KALLSYMS_ALL is not set
|
||||||
# CONFIG_KALLSYMS_EXTRA_PASS is not set
|
# CONFIG_KALLSYMS_EXTRA_PASS is not set
|
||||||
|
# CONFIG_HOTPLUG is not set
|
||||||
|
CONFIG_PRINTK=y
|
||||||
|
CONFIG_BUG=y
|
||||||
|
CONFIG_ELF_CORE=y
|
||||||
CONFIG_BASE_FULL=y
|
CONFIG_BASE_FULL=y
|
||||||
CONFIG_FUTEX=y
|
CONFIG_FUTEX=y
|
||||||
# CONFIG_EPOLL is not set
|
# CONFIG_EPOLL is not set
|
||||||
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
|
||||||
CONFIG_SHMEM=y
|
CONFIG_SHMEM=y
|
||||||
CONFIG_CC_ALIGN_FUNCTIONS=0
|
CONFIG_CC_ALIGN_FUNCTIONS=0
|
||||||
CONFIG_CC_ALIGN_LABELS=0
|
CONFIG_CC_ALIGN_LABELS=0
|
||||||
CONFIG_CC_ALIGN_LOOPS=0
|
CONFIG_CC_ALIGN_LOOPS=0
|
||||||
CONFIG_CC_ALIGN_JUMPS=0
|
CONFIG_CC_ALIGN_JUMPS=0
|
||||||
|
CONFIG_SLAB=y
|
||||||
# CONFIG_TINY_SHMEM is not set
|
# CONFIG_TINY_SHMEM is not set
|
||||||
CONFIG_BASE_SMALL=0
|
CONFIG_BASE_SMALL=0
|
||||||
|
# CONFIG_SLOB is not set
|
||||||
|
CONFIG_OBSOLETE_INTERMODULE=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Loadable module support
|
# Loadable module support
|
||||||
#
|
#
|
||||||
# CONFIG_MODULES is not set
|
# CONFIG_MODULES is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Block layer
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# IO Schedulers
|
||||||
|
#
|
||||||
|
CONFIG_IOSCHED_NOOP=y
|
||||||
|
# CONFIG_IOSCHED_AS is not set
|
||||||
|
# CONFIG_IOSCHED_DEADLINE is not set
|
||||||
|
CONFIG_IOSCHED_CFQ=y
|
||||||
|
# CONFIG_DEFAULT_AS is not set
|
||||||
|
# CONFIG_DEFAULT_DEADLINE is not set
|
||||||
|
CONFIG_DEFAULT_CFQ=y
|
||||||
|
# CONFIG_DEFAULT_NOOP is not set
|
||||||
|
CONFIG_DEFAULT_IOSCHED="cfq"
|
||||||
|
|
||||||
#
|
#
|
||||||
# System Type
|
# System Type
|
||||||
#
|
#
|
||||||
|
@ -71,11 +94,15 @@ CONFIG_BASE_SMALL=0
|
||||||
# CONFIG_ARCH_SA1100 is not set
|
# CONFIG_ARCH_SA1100 is not set
|
||||||
# CONFIG_ARCH_S3C2410 is not set
|
# CONFIG_ARCH_S3C2410 is not set
|
||||||
# CONFIG_ARCH_SHARK is not set
|
# CONFIG_ARCH_SHARK is not set
|
||||||
|
# CONFIG_ARCH_LH7952X is not set
|
||||||
CONFIG_ARCH_LH7A40X=y
|
CONFIG_ARCH_LH7A40X=y
|
||||||
# CONFIG_ARCH_OMAP is not set
|
# CONFIG_ARCH_OMAP is not set
|
||||||
# CONFIG_ARCH_VERSATILE is not set
|
# CONFIG_ARCH_VERSATILE is not set
|
||||||
|
# CONFIG_ARCH_REALVIEW is not set
|
||||||
# CONFIG_ARCH_IMX is not set
|
# CONFIG_ARCH_IMX is not set
|
||||||
# CONFIG_ARCH_H720X is not set
|
# CONFIG_ARCH_H720X is not set
|
||||||
|
# CONFIG_ARCH_AAEC2000 is not set
|
||||||
|
# CONFIG_ARCH_AT91RM9200 is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# LH7A40X Implementations
|
# LH7A40X Implementations
|
||||||
|
@ -110,6 +137,7 @@ CONFIG_ARM_THUMB=y
|
||||||
#
|
#
|
||||||
# Bus support
|
# Bus support
|
||||||
#
|
#
|
||||||
|
CONFIG_ARM_AMBA=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# PCCARD (PCMCIA/CardBus) support
|
# PCCARD (PCMCIA/CardBus) support
|
||||||
|
@ -120,7 +148,18 @@ CONFIG_ARM_THUMB=y
|
||||||
# Kernel Features
|
# Kernel Features
|
||||||
#
|
#
|
||||||
CONFIG_PREEMPT=y
|
CONFIG_PREEMPT=y
|
||||||
|
# CONFIG_NO_IDLE_HZ is not set
|
||||||
|
# CONFIG_AEABI is not set
|
||||||
|
CONFIG_ARCH_DISCONTIGMEM_ENABLE=y
|
||||||
|
CONFIG_SELECT_MEMORY_MODEL=y
|
||||||
|
# CONFIG_FLATMEM_MANUAL is not set
|
||||||
|
CONFIG_DISCONTIGMEM_MANUAL=y
|
||||||
|
# CONFIG_SPARSEMEM_MANUAL is not set
|
||||||
CONFIG_DISCONTIGMEM=y
|
CONFIG_DISCONTIGMEM=y
|
||||||
|
CONFIG_FLAT_NODE_MEM_MAP=y
|
||||||
|
CONFIG_NEED_MULTIPLE_NODES=y
|
||||||
|
# CONFIG_SPARSEMEM_STATIC is not set
|
||||||
|
CONFIG_SPLIT_PTLOCK_CPUS=4096
|
||||||
CONFIG_ALIGNMENT_TRAP=y
|
CONFIG_ALIGNMENT_TRAP=y
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -154,6 +193,84 @@ CONFIG_BINFMT_ELF=y
|
||||||
# Power management options
|
# Power management options
|
||||||
#
|
#
|
||||||
# CONFIG_PM is not set
|
# CONFIG_PM is not set
|
||||||
|
# CONFIG_APM is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Networking
|
||||||
|
#
|
||||||
|
CONFIG_NET=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Networking options
|
||||||
|
#
|
||||||
|
# CONFIG_NETDEBUG is not set
|
||||||
|
CONFIG_PACKET=y
|
||||||
|
# CONFIG_PACKET_MMAP is not set
|
||||||
|
CONFIG_UNIX=y
|
||||||
|
# CONFIG_NET_KEY is not set
|
||||||
|
CONFIG_INET=y
|
||||||
|
# CONFIG_IP_MULTICAST is not set
|
||||||
|
# CONFIG_IP_ADVANCED_ROUTER is not set
|
||||||
|
CONFIG_IP_FIB_HASH=y
|
||||||
|
CONFIG_IP_PNP=y
|
||||||
|
CONFIG_IP_PNP_DHCP=y
|
||||||
|
CONFIG_IP_PNP_BOOTP=y
|
||||||
|
CONFIG_IP_PNP_RARP=y
|
||||||
|
# CONFIG_NET_IPIP is not set
|
||||||
|
# CONFIG_NET_IPGRE is not set
|
||||||
|
# CONFIG_ARPD is not set
|
||||||
|
# CONFIG_SYN_COOKIES is not set
|
||||||
|
# CONFIG_INET_AH is not set
|
||||||
|
# CONFIG_INET_ESP is not set
|
||||||
|
# CONFIG_INET_IPCOMP is not set
|
||||||
|
# CONFIG_INET_TUNNEL is not set
|
||||||
|
CONFIG_INET_DIAG=y
|
||||||
|
CONFIG_INET_TCP_DIAG=y
|
||||||
|
# CONFIG_TCP_CONG_ADVANCED is not set
|
||||||
|
CONFIG_TCP_CONG_BIC=y
|
||||||
|
# CONFIG_IPV6 is not set
|
||||||
|
# CONFIG_NETFILTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# DCCP Configuration (EXPERIMENTAL)
|
||||||
|
#
|
||||||
|
# CONFIG_IP_DCCP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCTP Configuration (EXPERIMENTAL)
|
||||||
|
#
|
||||||
|
# CONFIG_IP_SCTP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# TIPC Configuration (EXPERIMENTAL)
|
||||||
|
#
|
||||||
|
# CONFIG_TIPC is not set
|
||||||
|
# CONFIG_ATM is not set
|
||||||
|
# CONFIG_BRIDGE is not set
|
||||||
|
# CONFIG_VLAN_8021Q is not set
|
||||||
|
# CONFIG_DECNET is not set
|
||||||
|
# CONFIG_LLC2 is not set
|
||||||
|
# CONFIG_IPX is not set
|
||||||
|
# CONFIG_ATALK is not set
|
||||||
|
# CONFIG_X25 is not set
|
||||||
|
# CONFIG_LAPB is not set
|
||||||
|
# CONFIG_NET_DIVERT is not set
|
||||||
|
# CONFIG_ECONET is not set
|
||||||
|
# CONFIG_WAN_ROUTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# QoS and/or fair queueing
|
||||||
|
#
|
||||||
|
# CONFIG_NET_SCHED is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Network testing
|
||||||
|
#
|
||||||
|
# CONFIG_NET_PKTGEN is not set
|
||||||
|
# CONFIG_HAMRADIO is not set
|
||||||
|
# CONFIG_IRDA is not set
|
||||||
|
# CONFIG_BT is not set
|
||||||
|
# CONFIG_IEEE80211 is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Device Drivers
|
# Device Drivers
|
||||||
|
@ -167,6 +284,11 @@ CONFIG_PREVENT_FIRMWARE_BUILD=y
|
||||||
# CONFIG_FW_LOADER is not set
|
# CONFIG_FW_LOADER is not set
|
||||||
# CONFIG_DEBUG_DRIVER is not set
|
# CONFIG_DEBUG_DRIVER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Connector - unified userspace <-> kernelspace linker
|
||||||
|
#
|
||||||
|
# CONFIG_CONNECTOR is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Memory Technology Devices (MTD)
|
# Memory Technology Devices (MTD)
|
||||||
#
|
#
|
||||||
|
@ -175,7 +297,7 @@ CONFIG_MTD=y
|
||||||
# CONFIG_MTD_CONCAT is not set
|
# CONFIG_MTD_CONCAT is not set
|
||||||
CONFIG_MTD_PARTITIONS=y
|
CONFIG_MTD_PARTITIONS=y
|
||||||
# CONFIG_MTD_REDBOOT_PARTS is not set
|
# CONFIG_MTD_REDBOOT_PARTS is not set
|
||||||
# CONFIG_MTD_CMDLINE_PARTS is not set
|
CONFIG_MTD_CMDLINE_PARTS=y
|
||||||
# CONFIG_MTD_AFS_PARTS is not set
|
# CONFIG_MTD_AFS_PARTS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -186,6 +308,7 @@ CONFIG_MTD_BLOCK=y
|
||||||
# CONFIG_FTL is not set
|
# CONFIG_FTL is not set
|
||||||
# CONFIG_NFTL is not set
|
# CONFIG_NFTL is not set
|
||||||
# CONFIG_INFTL is not set
|
# CONFIG_INFTL is not set
|
||||||
|
# CONFIG_RFD_FTL is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# RAM/ROM/Flash chip drivers
|
# RAM/ROM/Flash chip drivers
|
||||||
|
@ -211,15 +334,18 @@ CONFIG_MTD_CFI_UTIL=y
|
||||||
# CONFIG_MTD_RAM is not set
|
# CONFIG_MTD_RAM is not set
|
||||||
# CONFIG_MTD_ROM is not set
|
# CONFIG_MTD_ROM is not set
|
||||||
# CONFIG_MTD_ABSENT is not set
|
# CONFIG_MTD_ABSENT is not set
|
||||||
# CONFIG_MTD_XIP is not set
|
# CONFIG_MTD_OBSOLETE_CHIPS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Mapping drivers for chip access
|
# Mapping drivers for chip access
|
||||||
#
|
#
|
||||||
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
|
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
|
||||||
# CONFIG_MTD_PHYSMAP is not set
|
CONFIG_MTD_PHYSMAP=y
|
||||||
|
CONFIG_MTD_PHYSMAP_START=0x00000000
|
||||||
|
CONFIG_MTD_PHYSMAP_LEN=0x04000000
|
||||||
|
CONFIG_MTD_PHYSMAP_BANKWIDTH=4
|
||||||
# CONFIG_MTD_ARM_INTEGRATOR is not set
|
# CONFIG_MTD_ARM_INTEGRATOR is not set
|
||||||
# CONFIG_MTD_EDB7312 is not set
|
# CONFIG_MTD_PLATRAM is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Self-contained MTD device drivers
|
# Self-contained MTD device drivers
|
||||||
|
@ -242,6 +368,11 @@ CONFIG_MTD_CFI_UTIL=y
|
||||||
#
|
#
|
||||||
# CONFIG_MTD_NAND is not set
|
# CONFIG_MTD_NAND is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# OneNAND Flash Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_ONENAND is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Parallel port support
|
# Parallel port support
|
||||||
#
|
#
|
||||||
|
@ -254,7 +385,6 @@ CONFIG_MTD_CFI_UTIL=y
|
||||||
#
|
#
|
||||||
# Block devices
|
# Block devices
|
||||||
#
|
#
|
||||||
# CONFIG_BLK_DEV_FD is not set
|
|
||||||
# CONFIG_BLK_DEV_COW_COMMON is not set
|
# CONFIG_BLK_DEV_COW_COMMON is not set
|
||||||
CONFIG_BLK_DEV_LOOP=y
|
CONFIG_BLK_DEV_LOOP=y
|
||||||
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
|
# CONFIG_BLK_DEV_CRYPTOLOOP is not set
|
||||||
|
@ -262,16 +392,7 @@ CONFIG_BLK_DEV_LOOP=y
|
||||||
# CONFIG_BLK_DEV_UB is not set
|
# CONFIG_BLK_DEV_UB is not set
|
||||||
# CONFIG_BLK_DEV_RAM is not set
|
# CONFIG_BLK_DEV_RAM is not set
|
||||||
CONFIG_BLK_DEV_RAM_COUNT=16
|
CONFIG_BLK_DEV_RAM_COUNT=16
|
||||||
CONFIG_INITRAMFS_SOURCE=""
|
|
||||||
# CONFIG_CDROM_PKTCDVD is not set
|
# CONFIG_CDROM_PKTCDVD is not set
|
||||||
|
|
||||||
#
|
|
||||||
# IO Schedulers
|
|
||||||
#
|
|
||||||
CONFIG_IOSCHED_NOOP=y
|
|
||||||
# CONFIG_IOSCHED_AS is not set
|
|
||||||
# CONFIG_IOSCHED_DEADLINE is not set
|
|
||||||
CONFIG_IOSCHED_CFQ=y
|
|
||||||
# CONFIG_ATA_OVER_ETH is not set
|
# CONFIG_ATA_OVER_ETH is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -291,12 +412,13 @@ CONFIG_BLK_DEV_IDEDISK=y
|
||||||
# CONFIG_BLK_DEV_IDEFLOPPY is not set
|
# CONFIG_BLK_DEV_IDEFLOPPY is not set
|
||||||
# CONFIG_BLK_DEV_IDESCSI is not set
|
# CONFIG_BLK_DEV_IDESCSI is not set
|
||||||
# CONFIG_IDE_TASK_IOCTL is not set
|
# CONFIG_IDE_TASK_IOCTL is not set
|
||||||
|
CONFIG_IDE_POLL=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# IDE chipset support/bugfixes
|
# IDE chipset support/bugfixes
|
||||||
#
|
#
|
||||||
CONFIG_IDE_GENERIC=y
|
CONFIG_IDE_GENERIC=y
|
||||||
# CONFIG_IDE_ARM is not set
|
CONFIG_IDE_ARM=y
|
||||||
# CONFIG_BLK_DEV_IDEDMA is not set
|
# CONFIG_BLK_DEV_IDEDMA is not set
|
||||||
# CONFIG_IDEDMA_AUTO is not set
|
# CONFIG_IDEDMA_AUTO is not set
|
||||||
# CONFIG_BLK_DEV_HD is not set
|
# CONFIG_BLK_DEV_HD is not set
|
||||||
|
@ -304,6 +426,7 @@ CONFIG_IDE_GENERIC=y
|
||||||
#
|
#
|
||||||
# SCSI device support
|
# SCSI device support
|
||||||
#
|
#
|
||||||
|
# CONFIG_RAID_ATTRS is not set
|
||||||
CONFIG_SCSI=y
|
CONFIG_SCSI=y
|
||||||
# CONFIG_SCSI_PROC_FS is not set
|
# CONFIG_SCSI_PROC_FS is not set
|
||||||
|
|
||||||
|
@ -315,6 +438,7 @@ CONFIG_SCSI=y
|
||||||
# CONFIG_CHR_DEV_OSST is not set
|
# CONFIG_CHR_DEV_OSST is not set
|
||||||
# CONFIG_BLK_DEV_SR is not set
|
# CONFIG_BLK_DEV_SR is not set
|
||||||
# CONFIG_CHR_DEV_SG is not set
|
# CONFIG_CHR_DEV_SG is not set
|
||||||
|
# CONFIG_CHR_DEV_SCH is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
|
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
|
||||||
|
@ -329,10 +453,12 @@ CONFIG_SCSI=y
|
||||||
# CONFIG_SCSI_SPI_ATTRS is not set
|
# CONFIG_SCSI_SPI_ATTRS is not set
|
||||||
# CONFIG_SCSI_FC_ATTRS is not set
|
# CONFIG_SCSI_FC_ATTRS is not set
|
||||||
# CONFIG_SCSI_ISCSI_ATTRS is not set
|
# CONFIG_SCSI_ISCSI_ATTRS is not set
|
||||||
|
# CONFIG_SCSI_SAS_ATTRS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# SCSI low-level drivers
|
# SCSI low-level drivers
|
||||||
#
|
#
|
||||||
|
# CONFIG_ISCSI_TCP is not set
|
||||||
# CONFIG_SCSI_SATA is not set
|
# CONFIG_SCSI_SATA is not set
|
||||||
# CONFIG_SCSI_DEBUG is not set
|
# CONFIG_SCSI_DEBUG is not set
|
||||||
|
|
||||||
|
@ -344,6 +470,7 @@ CONFIG_SCSI=y
|
||||||
#
|
#
|
||||||
# Fusion MPT device support
|
# Fusion MPT device support
|
||||||
#
|
#
|
||||||
|
# CONFIG_FUSION is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# IEEE 1394 (FireWire) support
|
# IEEE 1394 (FireWire) support
|
||||||
|
@ -354,82 +481,26 @@ CONFIG_SCSI=y
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# Networking support
|
# Network device support
|
||||||
#
|
#
|
||||||
CONFIG_NET=y
|
|
||||||
|
|
||||||
#
|
|
||||||
# Networking options
|
|
||||||
#
|
|
||||||
CONFIG_PACKET=y
|
|
||||||
# CONFIG_PACKET_MMAP is not set
|
|
||||||
# CONFIG_NETLINK_DEV is not set
|
|
||||||
CONFIG_UNIX=y
|
|
||||||
# CONFIG_NET_KEY is not set
|
|
||||||
CONFIG_INET=y
|
|
||||||
# CONFIG_IP_MULTICAST is not set
|
|
||||||
# CONFIG_IP_ADVANCED_ROUTER is not set
|
|
||||||
CONFIG_IP_PNP=y
|
|
||||||
CONFIG_IP_PNP_DHCP=y
|
|
||||||
CONFIG_IP_PNP_BOOTP=y
|
|
||||||
CONFIG_IP_PNP_RARP=y
|
|
||||||
# CONFIG_NET_IPIP is not set
|
|
||||||
# CONFIG_NET_IPGRE is not set
|
|
||||||
# CONFIG_ARPD is not set
|
|
||||||
# CONFIG_SYN_COOKIES is not set
|
|
||||||
# CONFIG_INET_AH is not set
|
|
||||||
# CONFIG_INET_ESP is not set
|
|
||||||
# CONFIG_INET_IPCOMP is not set
|
|
||||||
# CONFIG_INET_TUNNEL is not set
|
|
||||||
# CONFIG_IP_TCPDIAG is not set
|
|
||||||
# CONFIG_IP_TCPDIAG_IPV6 is not set
|
|
||||||
# CONFIG_IPV6 is not set
|
|
||||||
# CONFIG_NETFILTER is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# SCTP Configuration (EXPERIMENTAL)
|
|
||||||
#
|
|
||||||
# CONFIG_IP_SCTP is not set
|
|
||||||
# CONFIG_ATM is not set
|
|
||||||
# CONFIG_BRIDGE is not set
|
|
||||||
# CONFIG_VLAN_8021Q is not set
|
|
||||||
# CONFIG_DECNET is not set
|
|
||||||
# CONFIG_LLC2 is not set
|
|
||||||
# CONFIG_IPX is not set
|
|
||||||
# CONFIG_ATALK is not set
|
|
||||||
# CONFIG_X25 is not set
|
|
||||||
# CONFIG_LAPB is not set
|
|
||||||
# CONFIG_NET_DIVERT is not set
|
|
||||||
# CONFIG_ECONET is not set
|
|
||||||
# CONFIG_WAN_ROUTER is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# QoS and/or fair queueing
|
|
||||||
#
|
|
||||||
# CONFIG_NET_SCHED is not set
|
|
||||||
# CONFIG_NET_CLS_ROUTE is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# Network testing
|
|
||||||
#
|
|
||||||
# CONFIG_NET_PKTGEN is not set
|
|
||||||
# CONFIG_NETPOLL is not set
|
|
||||||
# CONFIG_NET_POLL_CONTROLLER is not set
|
|
||||||
# CONFIG_HAMRADIO is not set
|
|
||||||
# CONFIG_IRDA is not set
|
|
||||||
# CONFIG_BT is not set
|
|
||||||
CONFIG_NETDEVICES=y
|
CONFIG_NETDEVICES=y
|
||||||
# CONFIG_DUMMY is not set
|
# CONFIG_DUMMY is not set
|
||||||
# CONFIG_BONDING is not set
|
# CONFIG_BONDING is not set
|
||||||
# CONFIG_EQUALIZER is not set
|
# CONFIG_EQUALIZER is not set
|
||||||
# CONFIG_TUN is not set
|
# CONFIG_TUN is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# PHY device support
|
||||||
|
#
|
||||||
|
# CONFIG_PHYLIB is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Ethernet (10 or 100Mbit)
|
# Ethernet (10 or 100Mbit)
|
||||||
#
|
#
|
||||||
CONFIG_NET_ETHERNET=y
|
CONFIG_NET_ETHERNET=y
|
||||||
CONFIG_MII=y
|
CONFIG_MII=y
|
||||||
CONFIG_SMC91X=y
|
CONFIG_SMC91X=y
|
||||||
|
# CONFIG_DM9000 is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Ethernet (1000 Mbit)
|
# Ethernet (1000 Mbit)
|
||||||
|
@ -456,6 +527,8 @@ CONFIG_SMC91X=y
|
||||||
# CONFIG_SLIP is not set
|
# CONFIG_SLIP is not set
|
||||||
# CONFIG_SHAPER is not set
|
# CONFIG_SHAPER is not set
|
||||||
# CONFIG_NETCONSOLE is not set
|
# CONFIG_NETCONSOLE is not set
|
||||||
|
# CONFIG_NETPOLL is not set
|
||||||
|
# CONFIG_NET_POLL_CONTROLLER is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# ISDN subsystem
|
# ISDN subsystem
|
||||||
|
@ -470,10 +543,13 @@ CONFIG_INPUT=y
|
||||||
#
|
#
|
||||||
# Userland interfaces
|
# Userland interfaces
|
||||||
#
|
#
|
||||||
# CONFIG_INPUT_MOUSEDEV is not set
|
CONFIG_INPUT_MOUSEDEV=y
|
||||||
|
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
|
||||||
|
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
|
||||||
|
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
|
||||||
# CONFIG_INPUT_JOYDEV is not set
|
# CONFIG_INPUT_JOYDEV is not set
|
||||||
# CONFIG_INPUT_TSDEV is not set
|
# CONFIG_INPUT_TSDEV is not set
|
||||||
# CONFIG_INPUT_EVDEV is not set
|
CONFIG_INPUT_EVDEV=y
|
||||||
# CONFIG_INPUT_EVBUG is not set
|
# CONFIG_INPUT_EVBUG is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -482,7 +558,13 @@ CONFIG_INPUT=y
|
||||||
# CONFIG_INPUT_KEYBOARD is not set
|
# CONFIG_INPUT_KEYBOARD is not set
|
||||||
# CONFIG_INPUT_MOUSE is not set
|
# CONFIG_INPUT_MOUSE is not set
|
||||||
# CONFIG_INPUT_JOYSTICK is not set
|
# CONFIG_INPUT_JOYSTICK is not set
|
||||||
# CONFIG_INPUT_TOUCHSCREEN is not set
|
CONFIG_INPUT_TOUCHSCREEN=y
|
||||||
|
# CONFIG_TOUCHSCREEN_GUNZE is not set
|
||||||
|
# CONFIG_TOUCHSCREEN_ELO is not set
|
||||||
|
# CONFIG_TOUCHSCREEN_MTOUCH is not set
|
||||||
|
# CONFIG_TOUCHSCREEN_MK712 is not set
|
||||||
|
CONFIG_TOUCHSCREEN_ADC_LH7=y
|
||||||
|
CONFIG_HAS_TOUCHSCREEN_ADC_LH7=y
|
||||||
# CONFIG_INPUT_MISC is not set
|
# CONFIG_INPUT_MISC is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -490,7 +572,6 @@ CONFIG_INPUT=y
|
||||||
#
|
#
|
||||||
# CONFIG_SERIO is not set
|
# CONFIG_SERIO is not set
|
||||||
# CONFIG_GAMEPORT is not set
|
# CONFIG_GAMEPORT is not set
|
||||||
CONFIG_SOUND_GAMEPORT=y
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Character devices
|
# Character devices
|
||||||
|
@ -508,6 +589,8 @@ CONFIG_HW_CONSOLE=y
|
||||||
#
|
#
|
||||||
# Non-8250 serial port support
|
# Non-8250 serial port support
|
||||||
#
|
#
|
||||||
|
# CONFIG_SERIAL_AMBA_PL010 is not set
|
||||||
|
# CONFIG_SERIAL_AMBA_PL011 is not set
|
||||||
CONFIG_SERIAL_CORE=y
|
CONFIG_SERIAL_CORE=y
|
||||||
CONFIG_SERIAL_CORE_CONSOLE=y
|
CONFIG_SERIAL_CORE_CONSOLE=y
|
||||||
CONFIG_SERIAL_LH7A40X=y
|
CONFIG_SERIAL_LH7A40X=y
|
||||||
|
@ -533,23 +616,46 @@ CONFIG_RTC=y
|
||||||
#
|
#
|
||||||
# Ftape, the floppy tape device driver
|
# Ftape, the floppy tape device driver
|
||||||
#
|
#
|
||||||
# CONFIG_DRM is not set
|
|
||||||
# CONFIG_RAW_DRIVER is not set
|
# CONFIG_RAW_DRIVER is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# TPM devices
|
# TPM devices
|
||||||
#
|
#
|
||||||
# CONFIG_TCG_TPM is not set
|
# CONFIG_TCG_TPM is not set
|
||||||
|
# CONFIG_TELCLOCK is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# I2C support
|
# I2C support
|
||||||
#
|
#
|
||||||
# CONFIG_I2C is not set
|
# CONFIG_I2C is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SPI support
|
||||||
|
#
|
||||||
|
# CONFIG_SPI is not set
|
||||||
|
# CONFIG_SPI_MASTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Dallas's 1-wire bus
|
||||||
|
#
|
||||||
|
# CONFIG_W1 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Hardware Monitoring support
|
||||||
|
#
|
||||||
|
CONFIG_HWMON=y
|
||||||
|
# CONFIG_HWMON_VID is not set
|
||||||
|
# CONFIG_SENSORS_F71805F is not set
|
||||||
|
# CONFIG_HWMON_DEBUG_CHIP is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Misc devices
|
# Misc devices
|
||||||
#
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Multimedia Capabilities Port drivers
|
||||||
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# Multimedia devices
|
# Multimedia devices
|
||||||
#
|
#
|
||||||
|
@ -563,18 +669,83 @@ CONFIG_RTC=y
|
||||||
#
|
#
|
||||||
# Graphics support
|
# Graphics support
|
||||||
#
|
#
|
||||||
# CONFIG_FB is not set
|
CONFIG_FB=y
|
||||||
|
CONFIG_FB_CFB_FILLRECT=y
|
||||||
|
CONFIG_FB_CFB_COPYAREA=y
|
||||||
|
CONFIG_FB_CFB_IMAGEBLIT=y
|
||||||
|
# CONFIG_FB_MACMODES is not set
|
||||||
|
# CONFIG_FB_MODE_HELPERS is not set
|
||||||
|
# CONFIG_FB_TILEBLITTING is not set
|
||||||
|
CONFIG_FB_ARMCLCD=y
|
||||||
|
CONFIG_FB_ARMCLCD_SHARP_LQ035Q7DB02_HRTFT=y
|
||||||
|
# CONFIG_FB_ARMCLCD_SHARP_LQ057Q3DC02 is not set
|
||||||
|
# CONFIG_FB_ARMCLCD_SHARP_LQ64D343 is not set
|
||||||
|
# CONFIG_FB_ARMCLCD_SHARP_LQ10D368 is not set
|
||||||
|
# CONFIG_FB_ARMCLCD_SHARP_LQ121S1DG41 is not set
|
||||||
|
# CONFIG_FB_ARMCLCD_AUO_A070VW01_WIDE is not set
|
||||||
|
# CONFIG_FB_ARMCLCD_HITACHI is not set
|
||||||
|
# CONFIG_FB_S1D13XXX is not set
|
||||||
|
# CONFIG_FB_VIRTUAL is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Console display driver support
|
# Console display driver support
|
||||||
#
|
#
|
||||||
# CONFIG_VGA_CONSOLE is not set
|
# CONFIG_VGA_CONSOLE is not set
|
||||||
CONFIG_DUMMY_CONSOLE=y
|
CONFIG_DUMMY_CONSOLE=y
|
||||||
|
# CONFIG_FRAMEBUFFER_CONSOLE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Logo configuration
|
||||||
|
#
|
||||||
|
# CONFIG_LOGO is not set
|
||||||
|
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Sound
|
# Sound
|
||||||
#
|
#
|
||||||
# CONFIG_SOUND is not set
|
CONFIG_SOUND=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Advanced Linux Sound Architecture
|
||||||
|
#
|
||||||
|
CONFIG_SND=y
|
||||||
|
CONFIG_SND_TIMER=y
|
||||||
|
CONFIG_SND_PCM=y
|
||||||
|
# CONFIG_SND_SEQUENCER is not set
|
||||||
|
CONFIG_SND_OSSEMUL=y
|
||||||
|
CONFIG_SND_MIXER_OSS=y
|
||||||
|
CONFIG_SND_PCM_OSS=y
|
||||||
|
# CONFIG_SND_RTCTIMER is not set
|
||||||
|
# CONFIG_SND_DYNAMIC_MINORS is not set
|
||||||
|
CONFIG_SND_SUPPORT_OLD_API=y
|
||||||
|
# CONFIG_SND_VERBOSE_PRINTK is not set
|
||||||
|
# CONFIG_SND_DEBUG is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generic devices
|
||||||
|
#
|
||||||
|
CONFIG_SND_AC97_CODEC=y
|
||||||
|
CONFIG_SND_AC97_BUS=y
|
||||||
|
# CONFIG_SND_DUMMY is not set
|
||||||
|
# CONFIG_SND_MTPAV is not set
|
||||||
|
# CONFIG_SND_SERIAL_U16550 is not set
|
||||||
|
# CONFIG_SND_MPU401 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# ALSA ARM devices
|
||||||
|
#
|
||||||
|
# CONFIG_SND_ARMAACI is not set
|
||||||
|
CONFIG_SND_LH7A40X_AC97=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB devices
|
||||||
|
#
|
||||||
|
# CONFIG_SND_USB_AUDIO is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Open Sound System
|
||||||
|
#
|
||||||
|
# CONFIG_SOUND_PRIME is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB support
|
# USB support
|
||||||
|
@ -595,6 +766,7 @@ CONFIG_USB_DEVICEFS=y
|
||||||
#
|
#
|
||||||
# USB Host Controller Drivers
|
# USB Host Controller Drivers
|
||||||
#
|
#
|
||||||
|
# CONFIG_USB_ISP116X_HCD is not set
|
||||||
CONFIG_USB_OHCI_HCD=y
|
CONFIG_USB_OHCI_HCD=y
|
||||||
# CONFIG_USB_OHCI_BIG_ENDIAN is not set
|
# CONFIG_USB_OHCI_BIG_ENDIAN is not set
|
||||||
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
|
CONFIG_USB_OHCI_LITTLE_ENDIAN=y
|
||||||
|
@ -603,16 +775,19 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y
|
||||||
#
|
#
|
||||||
# USB Device Class drivers
|
# USB Device Class drivers
|
||||||
#
|
#
|
||||||
# CONFIG_USB_BLUETOOTH_TTY is not set
|
# CONFIG_OBSOLETE_OSS_USB_DRIVER is not set
|
||||||
# CONFIG_USB_ACM is not set
|
# CONFIG_USB_ACM is not set
|
||||||
# CONFIG_USB_PRINTER is not set
|
# CONFIG_USB_PRINTER is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support' may also be needed; see USB_STORAGE Help for more information
|
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# may also be needed; see USB_STORAGE Help for more information
|
||||||
#
|
#
|
||||||
CONFIG_USB_STORAGE=y
|
CONFIG_USB_STORAGE=y
|
||||||
CONFIG_USB_STORAGE_DEBUG=y
|
CONFIG_USB_STORAGE_DEBUG=y
|
||||||
# CONFIG_USB_STORAGE_RW_DETECT is not set
|
|
||||||
CONFIG_USB_STORAGE_DATAFAB=y
|
CONFIG_USB_STORAGE_DATAFAB=y
|
||||||
# CONFIG_USB_STORAGE_FREECOM is not set
|
# CONFIG_USB_STORAGE_FREECOM is not set
|
||||||
# CONFIG_USB_STORAGE_ISD200 is not set
|
# CONFIG_USB_STORAGE_ISD200 is not set
|
||||||
|
@ -621,22 +796,32 @@ CONFIG_USB_STORAGE_DATAFAB=y
|
||||||
# CONFIG_USB_STORAGE_SDDR09 is not set
|
# CONFIG_USB_STORAGE_SDDR09 is not set
|
||||||
# CONFIG_USB_STORAGE_SDDR55 is not set
|
# CONFIG_USB_STORAGE_SDDR55 is not set
|
||||||
# CONFIG_USB_STORAGE_JUMPSHOT is not set
|
# CONFIG_USB_STORAGE_JUMPSHOT is not set
|
||||||
|
# CONFIG_USB_STORAGE_ALAUDA is not set
|
||||||
|
# CONFIG_USB_STORAGE_ONETOUCH is not set
|
||||||
|
# CONFIG_USB_LIBUSUAL is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Input Devices
|
# USB Input Devices
|
||||||
#
|
#
|
||||||
CONFIG_USB_HID=y
|
CONFIG_USB_HID=y
|
||||||
CONFIG_USB_HIDINPUT=y
|
CONFIG_USB_HIDINPUT=y
|
||||||
|
# CONFIG_USB_HIDINPUT_POWERBOOK is not set
|
||||||
# CONFIG_HID_FF is not set
|
# CONFIG_HID_FF is not set
|
||||||
# CONFIG_USB_HIDDEV is not set
|
# CONFIG_USB_HIDDEV is not set
|
||||||
# CONFIG_USB_AIPTEK is not set
|
# CONFIG_USB_AIPTEK is not set
|
||||||
# CONFIG_USB_WACOM is not set
|
# CONFIG_USB_WACOM is not set
|
||||||
|
# CONFIG_USB_ACECAD is not set
|
||||||
# CONFIG_USB_KBTAB is not set
|
# CONFIG_USB_KBTAB is not set
|
||||||
# CONFIG_USB_POWERMATE is not set
|
# CONFIG_USB_POWERMATE is not set
|
||||||
# CONFIG_USB_MTOUCH is not set
|
# CONFIG_USB_MTOUCH is not set
|
||||||
|
# CONFIG_USB_ITMTOUCH is not set
|
||||||
# CONFIG_USB_EGALAX is not set
|
# CONFIG_USB_EGALAX is not set
|
||||||
|
# CONFIG_USB_YEALINK is not set
|
||||||
# CONFIG_USB_XPAD is not set
|
# CONFIG_USB_XPAD is not set
|
||||||
# CONFIG_USB_ATI_REMOTE is not set
|
# CONFIG_USB_ATI_REMOTE is not set
|
||||||
|
# CONFIG_USB_ATI_REMOTE2 is not set
|
||||||
|
# CONFIG_USB_KEYSPAN_REMOTE is not set
|
||||||
|
# CONFIG_USB_APPLETOUCH is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Imaging devices
|
# USB Imaging devices
|
||||||
|
@ -686,16 +871,33 @@ CONFIG_USB_MON=y
|
||||||
# CONFIG_USB_PHIDGETKIT is not set
|
# CONFIG_USB_PHIDGETKIT is not set
|
||||||
# CONFIG_USB_PHIDGETSERVO is not set
|
# CONFIG_USB_PHIDGETSERVO is not set
|
||||||
# CONFIG_USB_IDMOUSE is not set
|
# CONFIG_USB_IDMOUSE is not set
|
||||||
|
# CONFIG_USB_LD is not set
|
||||||
# CONFIG_USB_TEST is not set
|
# CONFIG_USB_TEST is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB ATM/DSL drivers
|
# USB DSL modem support
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Gadget Support
|
# USB Gadget Support
|
||||||
#
|
#
|
||||||
# CONFIG_USB_GADGET is not set
|
CONFIG_USB_GADGET=y
|
||||||
|
# CONFIG_USB_GADGET_DEBUG_FILES is not set
|
||||||
|
CONFIG_USB_GADGET_SELECTED=y
|
||||||
|
# CONFIG_USB_GADGET_NET2280 is not set
|
||||||
|
# CONFIG_USB_GADGET_PXA2XX is not set
|
||||||
|
# CONFIG_USB_GADGET_GOKU is not set
|
||||||
|
# CONFIG_USB_GADGET_LH7A40X is not set
|
||||||
|
CONFIG_USB_GADGET_LH7=y
|
||||||
|
CONFIG_USB_LH7=y
|
||||||
|
# CONFIG_USB_GADGET_OMAP is not set
|
||||||
|
# CONFIG_USB_GADGET_DUMMY_HCD is not set
|
||||||
|
# CONFIG_USB_GADGET_DUALSPEED is not set
|
||||||
|
CONFIG_USB_ZERO=y
|
||||||
|
# CONFIG_USB_ETH is not set
|
||||||
|
# CONFIG_USB_GADGETFS is not set
|
||||||
|
# CONFIG_USB_FILE_STORAGE is not set
|
||||||
|
# CONFIG_USB_G_SERIAL is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# MMC/SD Card support
|
# MMC/SD Card support
|
||||||
|
@ -707,6 +909,7 @@ CONFIG_USB_MON=y
|
||||||
#
|
#
|
||||||
CONFIG_EXT2_FS=y
|
CONFIG_EXT2_FS=y
|
||||||
# CONFIG_EXT2_FS_XATTR is not set
|
# CONFIG_EXT2_FS_XATTR is not set
|
||||||
|
# CONFIG_EXT2_FS_XIP is not set
|
||||||
CONFIG_EXT3_FS=y
|
CONFIG_EXT3_FS=y
|
||||||
CONFIG_EXT3_FS_XATTR=y
|
CONFIG_EXT3_FS_XATTR=y
|
||||||
# CONFIG_EXT3_FS_POSIX_ACL is not set
|
# CONFIG_EXT3_FS_POSIX_ACL is not set
|
||||||
|
@ -716,17 +919,17 @@ CONFIG_JBD=y
|
||||||
CONFIG_FS_MBCACHE=y
|
CONFIG_FS_MBCACHE=y
|
||||||
# CONFIG_REISERFS_FS is not set
|
# CONFIG_REISERFS_FS is not set
|
||||||
# CONFIG_JFS_FS is not set
|
# CONFIG_JFS_FS is not set
|
||||||
|
# CONFIG_FS_POSIX_ACL is not set
|
||||||
#
|
|
||||||
# XFS support
|
|
||||||
#
|
|
||||||
# CONFIG_XFS_FS is not set
|
# CONFIG_XFS_FS is not set
|
||||||
|
# CONFIG_OCFS2_FS is not set
|
||||||
# CONFIG_MINIX_FS is not set
|
# CONFIG_MINIX_FS is not set
|
||||||
# CONFIG_ROMFS_FS is not set
|
# CONFIG_ROMFS_FS is not set
|
||||||
|
CONFIG_INOTIFY=y
|
||||||
# CONFIG_QUOTA is not set
|
# CONFIG_QUOTA is not set
|
||||||
CONFIG_DNOTIFY=y
|
CONFIG_DNOTIFY=y
|
||||||
# CONFIG_AUTOFS_FS is not set
|
# CONFIG_AUTOFS_FS is not set
|
||||||
# CONFIG_AUTOFS4_FS is not set
|
# CONFIG_AUTOFS4_FS is not set
|
||||||
|
# CONFIG_FUSE_FS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# CD-ROM/DVD Filesystems
|
# CD-ROM/DVD Filesystems
|
||||||
|
@ -749,12 +952,11 @@ CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
|
||||||
#
|
#
|
||||||
CONFIG_PROC_FS=y
|
CONFIG_PROC_FS=y
|
||||||
CONFIG_SYSFS=y
|
CONFIG_SYSFS=y
|
||||||
# CONFIG_DEVFS_FS is not set
|
|
||||||
# CONFIG_DEVPTS_FS_XATTR is not set
|
|
||||||
CONFIG_TMPFS=y
|
CONFIG_TMPFS=y
|
||||||
# CONFIG_TMPFS_XATTR is not set
|
|
||||||
# CONFIG_HUGETLB_PAGE is not set
|
# CONFIG_HUGETLB_PAGE is not set
|
||||||
CONFIG_RAMFS=y
|
CONFIG_RAMFS=y
|
||||||
|
# CONFIG_RELAYFS_FS is not set
|
||||||
|
# CONFIG_CONFIGFS_FS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Miscellaneous filesystems
|
# Miscellaneous filesystems
|
||||||
|
@ -769,8 +971,8 @@ CONFIG_RAMFS=y
|
||||||
# CONFIG_JFFS_FS is not set
|
# CONFIG_JFFS_FS is not set
|
||||||
CONFIG_JFFS2_FS=y
|
CONFIG_JFFS2_FS=y
|
||||||
CONFIG_JFFS2_FS_DEBUG=0
|
CONFIG_JFFS2_FS_DEBUG=0
|
||||||
# CONFIG_JFFS2_FS_NAND is not set
|
CONFIG_JFFS2_FS_WRITEBUFFER=y
|
||||||
# CONFIG_JFFS2_FS_NOR_ECC is not set
|
# CONFIG_JFFS2_SUMMARY is not set
|
||||||
# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
|
# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
|
||||||
CONFIG_JFFS2_ZLIB=y
|
CONFIG_JFFS2_ZLIB=y
|
||||||
CONFIG_JFFS2_RTIME=y
|
CONFIG_JFFS2_RTIME=y
|
||||||
|
@ -787,12 +989,14 @@ CONFIG_CRAMFS=y
|
||||||
#
|
#
|
||||||
CONFIG_NFS_FS=y
|
CONFIG_NFS_FS=y
|
||||||
CONFIG_NFS_V3=y
|
CONFIG_NFS_V3=y
|
||||||
|
# CONFIG_NFS_V3_ACL is not set
|
||||||
# CONFIG_NFS_V4 is not set
|
# CONFIG_NFS_V4 is not set
|
||||||
# CONFIG_NFS_DIRECTIO is not set
|
# CONFIG_NFS_DIRECTIO is not set
|
||||||
# CONFIG_NFSD is not set
|
# CONFIG_NFSD is not set
|
||||||
CONFIG_ROOT_NFS=y
|
CONFIG_ROOT_NFS=y
|
||||||
CONFIG_LOCKD=y
|
CONFIG_LOCKD=y
|
||||||
CONFIG_LOCKD_V4=y
|
CONFIG_LOCKD_V4=y
|
||||||
|
CONFIG_NFS_COMMON=y
|
||||||
CONFIG_SUNRPC=y
|
CONFIG_SUNRPC=y
|
||||||
# CONFIG_RPCSEC_GSS_KRB5 is not set
|
# CONFIG_RPCSEC_GSS_KRB5 is not set
|
||||||
# CONFIG_RPCSEC_GSS_SPKM3 is not set
|
# CONFIG_RPCSEC_GSS_SPKM3 is not set
|
||||||
|
@ -801,6 +1005,7 @@ CONFIG_SUNRPC=y
|
||||||
# CONFIG_NCP_FS is not set
|
# CONFIG_NCP_FS is not set
|
||||||
# CONFIG_CODA_FS is not set
|
# CONFIG_CODA_FS is not set
|
||||||
# CONFIG_AFS_FS is not set
|
# CONFIG_AFS_FS is not set
|
||||||
|
# CONFIG_9P_FS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Partition Types
|
# Partition Types
|
||||||
|
@ -820,6 +1025,7 @@ CONFIG_MSDOS_PARTITION=y
|
||||||
# CONFIG_SGI_PARTITION is not set
|
# CONFIG_SGI_PARTITION is not set
|
||||||
# CONFIG_ULTRIX_PARTITION is not set
|
# CONFIG_ULTRIX_PARTITION is not set
|
||||||
# CONFIG_SUN_PARTITION is not set
|
# CONFIG_SUN_PARTITION is not set
|
||||||
|
# CONFIG_KARMA_PARTITION is not set
|
||||||
# CONFIG_EFI_PARTITION is not set
|
# CONFIG_EFI_PARTITION is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -875,19 +1081,24 @@ CONFIG_NLS_DEFAULT="iso8859-1"
|
||||||
# Kernel hacking
|
# Kernel hacking
|
||||||
#
|
#
|
||||||
# CONFIG_PRINTK_TIME is not set
|
# CONFIG_PRINTK_TIME is not set
|
||||||
CONFIG_DEBUG_KERNEL=y
|
|
||||||
CONFIG_MAGIC_SYSRQ=y
|
CONFIG_MAGIC_SYSRQ=y
|
||||||
CONFIG_LOG_BUF_SHIFT=14
|
CONFIG_DEBUG_KERNEL=y
|
||||||
|
CONFIG_LOG_BUF_SHIFT=16
|
||||||
|
CONFIG_DETECT_SOFTLOCKUP=y
|
||||||
# CONFIG_SCHEDSTATS is not set
|
# CONFIG_SCHEDSTATS is not set
|
||||||
# CONFIG_DEBUG_SLAB is not set
|
# CONFIG_DEBUG_SLAB is not set
|
||||||
CONFIG_DEBUG_PREEMPT=y
|
CONFIG_DEBUG_PREEMPT=y
|
||||||
|
CONFIG_DEBUG_MUTEXES=y
|
||||||
# CONFIG_DEBUG_SPINLOCK is not set
|
# CONFIG_DEBUG_SPINLOCK is not set
|
||||||
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
|
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
|
||||||
# CONFIG_DEBUG_KOBJECT is not set
|
# CONFIG_DEBUG_KOBJECT is not set
|
||||||
CONFIG_DEBUG_BUGVERBOSE=y
|
CONFIG_DEBUG_BUGVERBOSE=y
|
||||||
CONFIG_DEBUG_INFO=y
|
CONFIG_DEBUG_INFO=y
|
||||||
# CONFIG_DEBUG_FS is not set
|
# CONFIG_DEBUG_FS is not set
|
||||||
|
# CONFIG_DEBUG_VM is not set
|
||||||
CONFIG_FRAME_POINTER=y
|
CONFIG_FRAME_POINTER=y
|
||||||
|
CONFIG_FORCED_INLINING=y
|
||||||
|
# CONFIG_RCU_TORTURE_TEST is not set
|
||||||
CONFIG_DEBUG_USER=y
|
CONFIG_DEBUG_USER=y
|
||||||
# CONFIG_DEBUG_WAITQ is not set
|
# CONFIG_DEBUG_WAITQ is not set
|
||||||
CONFIG_DEBUG_ERRORS=y
|
CONFIG_DEBUG_ERRORS=y
|
||||||
|
@ -912,6 +1123,7 @@ CONFIG_DEBUG_ERRORS=y
|
||||||
# Library routines
|
# Library routines
|
||||||
#
|
#
|
||||||
# CONFIG_CRC_CCITT is not set
|
# CONFIG_CRC_CCITT is not set
|
||||||
|
# CONFIG_CRC16 is not set
|
||||||
CONFIG_CRC32=y
|
CONFIG_CRC32=y
|
||||||
# CONFIG_LIBCRC32C is not set
|
# CONFIG_LIBCRC32C is not set
|
||||||
CONFIG_ZLIB_INFLATE=y
|
CONFIG_ZLIB_INFLATE=y
|
||||||
|
|
|
@ -0,0 +1,926 @@
|
||||||
|
#
|
||||||
|
# Automatically generated make config: don't edit
|
||||||
|
# Linux kernel version: 2.6.17-rc6
|
||||||
|
# Tue Jun 6 15:26:53 2006
|
||||||
|
#
|
||||||
|
CONFIG_ARM=y
|
||||||
|
CONFIG_MMU=y
|
||||||
|
CONFIG_RWSEM_GENERIC_SPINLOCK=y
|
||||||
|
CONFIG_GENERIC_HWEIGHT=y
|
||||||
|
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
||||||
|
CONFIG_VECTORS_BASE=0xffff0000
|
||||||
|
|
||||||
|
#
|
||||||
|
# Code maturity level options
|
||||||
|
#
|
||||||
|
CONFIG_EXPERIMENTAL=y
|
||||||
|
CONFIG_BROKEN_ON_SMP=y
|
||||||
|
CONFIG_LOCK_KERNEL=y
|
||||||
|
CONFIG_INIT_ENV_ARG_LIMIT=32
|
||||||
|
|
||||||
|
#
|
||||||
|
# General setup
|
||||||
|
#
|
||||||
|
CONFIG_LOCALVERSION=""
|
||||||
|
CONFIG_LOCALVERSION_AUTO=y
|
||||||
|
CONFIG_SWAP=y
|
||||||
|
CONFIG_SYSVIPC=y
|
||||||
|
CONFIG_POSIX_MQUEUE=y
|
||||||
|
CONFIG_BSD_PROCESS_ACCT=y
|
||||||
|
# CONFIG_BSD_PROCESS_ACCT_V3 is not set
|
||||||
|
CONFIG_SYSCTL=y
|
||||||
|
# CONFIG_AUDIT is not set
|
||||||
|
CONFIG_IKCONFIG=y
|
||||||
|
CONFIG_IKCONFIG_PROC=y
|
||||||
|
# CONFIG_RELAY is not set
|
||||||
|
CONFIG_INITRAMFS_SOURCE=""
|
||||||
|
CONFIG_UID16=y
|
||||||
|
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
||||||
|
# CONFIG_EMBEDDED is not set
|
||||||
|
CONFIG_KALLSYMS=y
|
||||||
|
# CONFIG_KALLSYMS_ALL is not set
|
||||||
|
# CONFIG_KALLSYMS_EXTRA_PASS is not set
|
||||||
|
CONFIG_HOTPLUG=y
|
||||||
|
CONFIG_PRINTK=y
|
||||||
|
CONFIG_BUG=y
|
||||||
|
CONFIG_ELF_CORE=y
|
||||||
|
CONFIG_BASE_FULL=y
|
||||||
|
CONFIG_FUTEX=y
|
||||||
|
CONFIG_EPOLL=y
|
||||||
|
CONFIG_SHMEM=y
|
||||||
|
CONFIG_SLAB=y
|
||||||
|
# CONFIG_TINY_SHMEM is not set
|
||||||
|
CONFIG_BASE_SMALL=0
|
||||||
|
# CONFIG_SLOB is not set
|
||||||
|
CONFIG_OBSOLETE_INTERMODULE=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Loadable module support
|
||||||
|
#
|
||||||
|
CONFIG_MODULES=y
|
||||||
|
CONFIG_MODULE_UNLOAD=y
|
||||||
|
CONFIG_MODULE_FORCE_UNLOAD=y
|
||||||
|
# CONFIG_MODVERSIONS is not set
|
||||||
|
# CONFIG_MODULE_SRCVERSION_ALL is not set
|
||||||
|
CONFIG_KMOD=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Block layer
|
||||||
|
#
|
||||||
|
# CONFIG_BLK_DEV_IO_TRACE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# IO Schedulers
|
||||||
|
#
|
||||||
|
CONFIG_IOSCHED_NOOP=y
|
||||||
|
CONFIG_IOSCHED_AS=y
|
||||||
|
CONFIG_IOSCHED_DEADLINE=y
|
||||||
|
CONFIG_IOSCHED_CFQ=y
|
||||||
|
CONFIG_DEFAULT_AS=y
|
||||||
|
# CONFIG_DEFAULT_DEADLINE is not set
|
||||||
|
# CONFIG_DEFAULT_CFQ is not set
|
||||||
|
# CONFIG_DEFAULT_NOOP is not set
|
||||||
|
CONFIG_DEFAULT_IOSCHED="anticipatory"
|
||||||
|
|
||||||
|
#
|
||||||
|
# System Type
|
||||||
|
#
|
||||||
|
# CONFIG_ARCH_CLPS7500 is not set
|
||||||
|
# CONFIG_ARCH_CLPS711X is not set
|
||||||
|
# CONFIG_ARCH_CO285 is not set
|
||||||
|
# CONFIG_ARCH_EBSA110 is not set
|
||||||
|
# CONFIG_ARCH_EP93XX is not set
|
||||||
|
# CONFIG_ARCH_FOOTBRIDGE is not set
|
||||||
|
# CONFIG_ARCH_INTEGRATOR is not set
|
||||||
|
# CONFIG_ARCH_IOP3XX is not set
|
||||||
|
# CONFIG_ARCH_IXP4XX is not set
|
||||||
|
# CONFIG_ARCH_IXP2000 is not set
|
||||||
|
# CONFIG_ARCH_IXP23XX is not set
|
||||||
|
# CONFIG_ARCH_L7200 is not set
|
||||||
|
# CONFIG_ARCH_PXA is not set
|
||||||
|
# CONFIG_ARCH_RPC is not set
|
||||||
|
# CONFIG_ARCH_SA1100 is not set
|
||||||
|
# CONFIG_ARCH_S3C2410 is not set
|
||||||
|
# CONFIG_ARCH_SHARK is not set
|
||||||
|
# CONFIG_ARCH_LH7A40X is not set
|
||||||
|
# CONFIG_ARCH_OMAP is not set
|
||||||
|
# CONFIG_ARCH_VERSATILE is not set
|
||||||
|
# CONFIG_ARCH_REALVIEW is not set
|
||||||
|
# CONFIG_ARCH_IMX is not set
|
||||||
|
# CONFIG_ARCH_H720X is not set
|
||||||
|
# CONFIG_ARCH_AAEC2000 is not set
|
||||||
|
# CONFIG_ARCH_AT91RM9200 is not set
|
||||||
|
CONFIG_ARCH_NETX=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# NetX Implementations
|
||||||
|
#
|
||||||
|
CONFIG_MACH_NXDKN=y
|
||||||
|
CONFIG_MACH_NXDB500=y
|
||||||
|
CONFIG_MACH_NXEB500HMI=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Processor Type
|
||||||
|
#
|
||||||
|
CONFIG_CPU_32=y
|
||||||
|
CONFIG_CPU_ARM926T=y
|
||||||
|
CONFIG_CPU_32v5=y
|
||||||
|
CONFIG_CPU_ABRT_EV5TJ=y
|
||||||
|
CONFIG_CPU_CACHE_VIVT=y
|
||||||
|
CONFIG_CPU_COPY_V4WB=y
|
||||||
|
CONFIG_CPU_TLB_V4WBI=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Processor Features
|
||||||
|
#
|
||||||
|
CONFIG_ARM_THUMB=y
|
||||||
|
# CONFIG_CPU_ICACHE_DISABLE is not set
|
||||||
|
# CONFIG_CPU_DCACHE_DISABLE is not set
|
||||||
|
# CONFIG_CPU_DCACHE_WRITETHROUGH is not set
|
||||||
|
# CONFIG_CPU_CACHE_ROUND_ROBIN is not set
|
||||||
|
CONFIG_ARM_VIC=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Bus support
|
||||||
|
#
|
||||||
|
CONFIG_ARM_AMBA=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# PCCARD (PCMCIA/CardBus) support
|
||||||
|
#
|
||||||
|
# CONFIG_PCCARD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Kernel Features
|
||||||
|
#
|
||||||
|
CONFIG_PREEMPT=y
|
||||||
|
# CONFIG_NO_IDLE_HZ is not set
|
||||||
|
CONFIG_HZ=100
|
||||||
|
# CONFIG_AEABI is not set
|
||||||
|
# CONFIG_ARCH_DISCONTIGMEM_ENABLE is not set
|
||||||
|
CONFIG_SELECT_MEMORY_MODEL=y
|
||||||
|
CONFIG_FLATMEM_MANUAL=y
|
||||||
|
# CONFIG_DISCONTIGMEM_MANUAL is not set
|
||||||
|
# CONFIG_SPARSEMEM_MANUAL is not set
|
||||||
|
CONFIG_FLATMEM=y
|
||||||
|
CONFIG_FLAT_NODE_MEM_MAP=y
|
||||||
|
# CONFIG_SPARSEMEM_STATIC is not set
|
||||||
|
CONFIG_SPLIT_PTLOCK_CPUS=4096
|
||||||
|
CONFIG_ALIGNMENT_TRAP=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Boot options
|
||||||
|
#
|
||||||
|
CONFIG_ZBOOT_ROM_TEXT=0x0
|
||||||
|
CONFIG_ZBOOT_ROM_BSS=0x0
|
||||||
|
CONFIG_CMDLINE="console=ttySMX0,115200"
|
||||||
|
# CONFIG_XIP_KERNEL is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Floating point emulation
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# At least one emulation must be selected
|
||||||
|
#
|
||||||
|
# CONFIG_FPE_NWFPE is not set
|
||||||
|
# CONFIG_FPE_FASTFPE is not set
|
||||||
|
# CONFIG_VFP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Userspace binary formats
|
||||||
|
#
|
||||||
|
CONFIG_BINFMT_ELF=y
|
||||||
|
# CONFIG_BINFMT_AOUT is not set
|
||||||
|
# CONFIG_BINFMT_MISC is not set
|
||||||
|
# CONFIG_ARTHUR is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Power management options
|
||||||
|
#
|
||||||
|
# CONFIG_PM is not set
|
||||||
|
# CONFIG_APM is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Networking
|
||||||
|
#
|
||||||
|
CONFIG_NET=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Networking options
|
||||||
|
#
|
||||||
|
# CONFIG_NETDEBUG is not set
|
||||||
|
CONFIG_PACKET=y
|
||||||
|
CONFIG_PACKET_MMAP=y
|
||||||
|
CONFIG_UNIX=y
|
||||||
|
CONFIG_XFRM=y
|
||||||
|
CONFIG_XFRM_USER=m
|
||||||
|
CONFIG_NET_KEY=y
|
||||||
|
CONFIG_INET=y
|
||||||
|
CONFIG_IP_MULTICAST=y
|
||||||
|
# CONFIG_IP_ADVANCED_ROUTER is not set
|
||||||
|
CONFIG_IP_FIB_HASH=y
|
||||||
|
CONFIG_IP_PNP=y
|
||||||
|
CONFIG_IP_PNP_DHCP=y
|
||||||
|
# CONFIG_IP_PNP_BOOTP is not set
|
||||||
|
# CONFIG_IP_PNP_RARP is not set
|
||||||
|
# CONFIG_NET_IPIP is not set
|
||||||
|
CONFIG_NET_IPGRE=m
|
||||||
|
# CONFIG_NET_IPGRE_BROADCAST is not set
|
||||||
|
# CONFIG_IP_MROUTE is not set
|
||||||
|
# CONFIG_ARPD is not set
|
||||||
|
CONFIG_SYN_COOKIES=y
|
||||||
|
CONFIG_INET_AH=y
|
||||||
|
CONFIG_INET_ESP=y
|
||||||
|
CONFIG_INET_IPCOMP=y
|
||||||
|
CONFIG_INET_XFRM_TUNNEL=y
|
||||||
|
CONFIG_INET_TUNNEL=y
|
||||||
|
CONFIG_INET_DIAG=y
|
||||||
|
CONFIG_INET_TCP_DIAG=y
|
||||||
|
# CONFIG_TCP_CONG_ADVANCED is not set
|
||||||
|
CONFIG_TCP_CONG_BIC=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# IP: Virtual Server Configuration
|
||||||
|
#
|
||||||
|
# CONFIG_IP_VS is not set
|
||||||
|
CONFIG_IPV6=m
|
||||||
|
# CONFIG_IPV6_PRIVACY is not set
|
||||||
|
# CONFIG_IPV6_ROUTER_PREF is not set
|
||||||
|
CONFIG_INET6_AH=m
|
||||||
|
CONFIG_INET6_ESP=m
|
||||||
|
CONFIG_INET6_IPCOMP=m
|
||||||
|
CONFIG_INET6_XFRM_TUNNEL=m
|
||||||
|
CONFIG_INET6_TUNNEL=m
|
||||||
|
# CONFIG_IPV6_TUNNEL is not set
|
||||||
|
CONFIG_NETFILTER=y
|
||||||
|
# CONFIG_NETFILTER_DEBUG is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Core Netfilter Configuration
|
||||||
|
#
|
||||||
|
# CONFIG_NETFILTER_NETLINK is not set
|
||||||
|
# CONFIG_NETFILTER_XTABLES is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# IP: Netfilter Configuration
|
||||||
|
#
|
||||||
|
CONFIG_IP_NF_CONNTRACK=m
|
||||||
|
# CONFIG_IP_NF_CT_ACCT is not set
|
||||||
|
# CONFIG_IP_NF_CONNTRACK_MARK is not set
|
||||||
|
# CONFIG_IP_NF_CONNTRACK_EVENTS is not set
|
||||||
|
# CONFIG_IP_NF_CT_PROTO_SCTP is not set
|
||||||
|
CONFIG_IP_NF_FTP=m
|
||||||
|
CONFIG_IP_NF_IRC=m
|
||||||
|
# CONFIG_IP_NF_NETBIOS_NS is not set
|
||||||
|
CONFIG_IP_NF_TFTP=m
|
||||||
|
CONFIG_IP_NF_AMANDA=m
|
||||||
|
# CONFIG_IP_NF_PPTP is not set
|
||||||
|
# CONFIG_IP_NF_H323 is not set
|
||||||
|
CONFIG_IP_NF_QUEUE=m
|
||||||
|
|
||||||
|
#
|
||||||
|
# IPv6: Netfilter Configuration (EXPERIMENTAL)
|
||||||
|
#
|
||||||
|
# CONFIG_IP6_NF_QUEUE is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# DCCP Configuration (EXPERIMENTAL)
|
||||||
|
#
|
||||||
|
# CONFIG_IP_DCCP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCTP Configuration (EXPERIMENTAL)
|
||||||
|
#
|
||||||
|
# CONFIG_IP_SCTP is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# TIPC Configuration (EXPERIMENTAL)
|
||||||
|
#
|
||||||
|
# CONFIG_TIPC is not set
|
||||||
|
# CONFIG_ATM is not set
|
||||||
|
# CONFIG_BRIDGE is not set
|
||||||
|
# CONFIG_VLAN_8021Q is not set
|
||||||
|
# CONFIG_DECNET is not set
|
||||||
|
# CONFIG_LLC2 is not set
|
||||||
|
# CONFIG_IPX is not set
|
||||||
|
# CONFIG_ATALK is not set
|
||||||
|
# CONFIG_X25 is not set
|
||||||
|
# CONFIG_LAPB is not set
|
||||||
|
# CONFIG_NET_DIVERT is not set
|
||||||
|
# CONFIG_ECONET is not set
|
||||||
|
# CONFIG_WAN_ROUTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# QoS and/or fair queueing
|
||||||
|
#
|
||||||
|
# CONFIG_NET_SCHED is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Network testing
|
||||||
|
#
|
||||||
|
CONFIG_NET_PKTGEN=m
|
||||||
|
# CONFIG_HAMRADIO is not set
|
||||||
|
# CONFIG_IRDA is not set
|
||||||
|
# CONFIG_BT is not set
|
||||||
|
# CONFIG_IEEE80211 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Device Drivers
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Generic Driver Options
|
||||||
|
#
|
||||||
|
CONFIG_STANDALONE=y
|
||||||
|
CONFIG_PREVENT_FIRMWARE_BUILD=y
|
||||||
|
CONFIG_FW_LOADER=y
|
||||||
|
# CONFIG_DEBUG_DRIVER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Connector - unified userspace <-> kernelspace linker
|
||||||
|
#
|
||||||
|
# CONFIG_CONNECTOR is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Memory Technology Devices (MTD)
|
||||||
|
#
|
||||||
|
CONFIG_MTD=y
|
||||||
|
# CONFIG_MTD_DEBUG is not set
|
||||||
|
# CONFIG_MTD_CONCAT is not set
|
||||||
|
CONFIG_MTD_PARTITIONS=y
|
||||||
|
# CONFIG_MTD_REDBOOT_PARTS is not set
|
||||||
|
CONFIG_MTD_CMDLINE_PARTS=y
|
||||||
|
# CONFIG_MTD_AFS_PARTS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# User Modules And Translation Layers
|
||||||
|
#
|
||||||
|
CONFIG_MTD_CHAR=y
|
||||||
|
CONFIG_MTD_BLOCK=y
|
||||||
|
# CONFIG_FTL is not set
|
||||||
|
# CONFIG_NFTL is not set
|
||||||
|
# CONFIG_INFTL is not set
|
||||||
|
# CONFIG_RFD_FTL is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# RAM/ROM/Flash chip drivers
|
||||||
|
#
|
||||||
|
CONFIG_MTD_CFI=y
|
||||||
|
# CONFIG_MTD_JEDECPROBE is not set
|
||||||
|
CONFIG_MTD_GEN_PROBE=y
|
||||||
|
# CONFIG_MTD_CFI_ADV_OPTIONS is not set
|
||||||
|
CONFIG_MTD_MAP_BANK_WIDTH_1=y
|
||||||
|
CONFIG_MTD_MAP_BANK_WIDTH_2=y
|
||||||
|
CONFIG_MTD_MAP_BANK_WIDTH_4=y
|
||||||
|
# CONFIG_MTD_MAP_BANK_WIDTH_8 is not set
|
||||||
|
# CONFIG_MTD_MAP_BANK_WIDTH_16 is not set
|
||||||
|
# CONFIG_MTD_MAP_BANK_WIDTH_32 is not set
|
||||||
|
CONFIG_MTD_CFI_I1=y
|
||||||
|
CONFIG_MTD_CFI_I2=y
|
||||||
|
# CONFIG_MTD_CFI_I4 is not set
|
||||||
|
# CONFIG_MTD_CFI_I8 is not set
|
||||||
|
CONFIG_MTD_CFI_INTELEXT=y
|
||||||
|
# CONFIG_MTD_CFI_AMDSTD is not set
|
||||||
|
# CONFIG_MTD_CFI_STAA is not set
|
||||||
|
CONFIG_MTD_CFI_UTIL=y
|
||||||
|
CONFIG_MTD_RAM=y
|
||||||
|
# CONFIG_MTD_ROM is not set
|
||||||
|
# CONFIG_MTD_ABSENT is not set
|
||||||
|
# CONFIG_MTD_OBSOLETE_CHIPS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Mapping drivers for chip access
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_COMPLEX_MAPPINGS is not set
|
||||||
|
# CONFIG_MTD_PHYSMAP is not set
|
||||||
|
# CONFIG_MTD_ARM_INTEGRATOR is not set
|
||||||
|
CONFIG_MTD_PLATRAM=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Self-contained MTD device drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_SLRAM is not set
|
||||||
|
# CONFIG_MTD_PHRAM is not set
|
||||||
|
# CONFIG_MTD_MTDRAM is not set
|
||||||
|
# CONFIG_MTD_BLOCK2MTD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Disk-On-Chip Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_DOC2000 is not set
|
||||||
|
# CONFIG_MTD_DOC2001 is not set
|
||||||
|
# CONFIG_MTD_DOC2001PLUS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# NAND Flash Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_NAND is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# OneNAND Flash Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_MTD_ONENAND is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Parallel port support
|
||||||
|
#
|
||||||
|
# CONFIG_PARPORT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Plug and Play support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Block devices
|
||||||
|
#
|
||||||
|
# CONFIG_BLK_DEV_COW_COMMON is not set
|
||||||
|
CONFIG_BLK_DEV_LOOP=m
|
||||||
|
CONFIG_BLK_DEV_CRYPTOLOOP=m
|
||||||
|
# CONFIG_BLK_DEV_NBD is not set
|
||||||
|
# CONFIG_BLK_DEV_RAM is not set
|
||||||
|
# CONFIG_BLK_DEV_INITRD is not set
|
||||||
|
# CONFIG_CDROM_PKTCDVD is not set
|
||||||
|
# CONFIG_ATA_OVER_ETH is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SCSI device support
|
||||||
|
#
|
||||||
|
# CONFIG_RAID_ATTRS is not set
|
||||||
|
# CONFIG_SCSI is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Multi-device support (RAID and LVM)
|
||||||
|
#
|
||||||
|
# CONFIG_MD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Fusion MPT device support
|
||||||
|
#
|
||||||
|
# CONFIG_FUSION is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# IEEE 1394 (FireWire) support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2O device support
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Network device support
|
||||||
|
#
|
||||||
|
CONFIG_NETDEVICES=y
|
||||||
|
# CONFIG_DUMMY is not set
|
||||||
|
# CONFIG_BONDING is not set
|
||||||
|
# CONFIG_EQUALIZER is not set
|
||||||
|
# CONFIG_TUN is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# PHY device support
|
||||||
|
#
|
||||||
|
# CONFIG_PHYLIB is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ethernet (10 or 100Mbit)
|
||||||
|
#
|
||||||
|
CONFIG_NET_ETHERNET=y
|
||||||
|
CONFIG_MII=y
|
||||||
|
# CONFIG_SMC91X is not set
|
||||||
|
CONFIG_NET_NETX=y
|
||||||
|
# CONFIG_DM9000 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ethernet (1000 Mbit)
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ethernet (10000 Mbit)
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Token Ring devices
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Wireless LAN (non-hamradio)
|
||||||
|
#
|
||||||
|
# CONFIG_NET_RADIO is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Wan interfaces
|
||||||
|
#
|
||||||
|
# CONFIG_WAN is not set
|
||||||
|
# CONFIG_PPP is not set
|
||||||
|
# CONFIG_SLIP is not set
|
||||||
|
# CONFIG_SHAPER is not set
|
||||||
|
# CONFIG_NETCONSOLE is not set
|
||||||
|
# CONFIG_NETPOLL is not set
|
||||||
|
# CONFIG_NET_POLL_CONTROLLER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# ISDN subsystem
|
||||||
|
#
|
||||||
|
# CONFIG_ISDN is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Input device support
|
||||||
|
#
|
||||||
|
CONFIG_INPUT=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Userland interfaces
|
||||||
|
#
|
||||||
|
CONFIG_INPUT_MOUSEDEV=y
|
||||||
|
# CONFIG_INPUT_MOUSEDEV_PSAUX is not set
|
||||||
|
CONFIG_INPUT_MOUSEDEV_SCREEN_X=1024
|
||||||
|
CONFIG_INPUT_MOUSEDEV_SCREEN_Y=768
|
||||||
|
# CONFIG_INPUT_JOYDEV is not set
|
||||||
|
# CONFIG_INPUT_TSDEV is not set
|
||||||
|
# CONFIG_INPUT_EVDEV is not set
|
||||||
|
# CONFIG_INPUT_EVBUG is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Input Device Drivers
|
||||||
|
#
|
||||||
|
# CONFIG_INPUT_KEYBOARD is not set
|
||||||
|
# CONFIG_INPUT_MOUSE is not set
|
||||||
|
# CONFIG_INPUT_JOYSTICK is not set
|
||||||
|
# CONFIG_INPUT_TOUCHSCREEN is not set
|
||||||
|
# CONFIG_INPUT_MISC is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Hardware I/O ports
|
||||||
|
#
|
||||||
|
CONFIG_SERIO=y
|
||||||
|
CONFIG_SERIO_SERPORT=y
|
||||||
|
# CONFIG_SERIO_AMBAKMI is not set
|
||||||
|
# CONFIG_SERIO_RAW is not set
|
||||||
|
# CONFIG_GAMEPORT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Character devices
|
||||||
|
#
|
||||||
|
CONFIG_VT=y
|
||||||
|
CONFIG_VT_CONSOLE=y
|
||||||
|
CONFIG_HW_CONSOLE=y
|
||||||
|
# CONFIG_SERIAL_NONSTANDARD is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Serial drivers
|
||||||
|
#
|
||||||
|
# CONFIG_SERIAL_8250 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Non-8250 serial port support
|
||||||
|
#
|
||||||
|
# CONFIG_SERIAL_AMBA_PL010 is not set
|
||||||
|
# CONFIG_SERIAL_AMBA_PL011 is not set
|
||||||
|
CONFIG_SERIAL_CORE=y
|
||||||
|
CONFIG_SERIAL_CORE_CONSOLE=y
|
||||||
|
CONFIG_SERIAL_NETX=y
|
||||||
|
CONFIG_SERIAL_NETX_CONSOLE=y
|
||||||
|
CONFIG_UNIX98_PTYS=y
|
||||||
|
CONFIG_LEGACY_PTYS=y
|
||||||
|
CONFIG_LEGACY_PTY_COUNT=256
|
||||||
|
|
||||||
|
#
|
||||||
|
# IPMI
|
||||||
|
#
|
||||||
|
# CONFIG_IPMI_HANDLER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Watchdog Cards
|
||||||
|
#
|
||||||
|
# CONFIG_WATCHDOG is not set
|
||||||
|
CONFIG_NVRAM=m
|
||||||
|
# CONFIG_DTLK is not set
|
||||||
|
# CONFIG_R3964 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Ftape, the floppy tape device driver
|
||||||
|
#
|
||||||
|
# CONFIG_RAW_DRIVER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# TPM devices
|
||||||
|
#
|
||||||
|
# CONFIG_TCG_TPM is not set
|
||||||
|
# CONFIG_TELCLOCK is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# I2C support
|
||||||
|
#
|
||||||
|
# CONFIG_I2C is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# SPI support
|
||||||
|
#
|
||||||
|
# CONFIG_SPI is not set
|
||||||
|
# CONFIG_SPI_MASTER is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Dallas's 1-wire bus
|
||||||
|
#
|
||||||
|
# CONFIG_W1 is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Hardware Monitoring support
|
||||||
|
#
|
||||||
|
# CONFIG_HWMON is not set
|
||||||
|
# CONFIG_HWMON_VID is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Misc devices
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# LED devices
|
||||||
|
#
|
||||||
|
# CONFIG_NEW_LEDS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# LED drivers
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# LED Triggers
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Multimedia devices
|
||||||
|
#
|
||||||
|
# CONFIG_VIDEO_DEV is not set
|
||||||
|
CONFIG_VIDEO_V4L2=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Digital Video Broadcasting Devices
|
||||||
|
#
|
||||||
|
# CONFIG_DVB is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Graphics support
|
||||||
|
#
|
||||||
|
CONFIG_FB=y
|
||||||
|
CONFIG_FB_CFB_FILLRECT=y
|
||||||
|
CONFIG_FB_CFB_COPYAREA=y
|
||||||
|
CONFIG_FB_CFB_IMAGEBLIT=y
|
||||||
|
# CONFIG_FB_MACMODES is not set
|
||||||
|
CONFIG_FB_FIRMWARE_EDID=y
|
||||||
|
# CONFIG_FB_MODE_HELPERS is not set
|
||||||
|
# CONFIG_FB_TILEBLITTING is not set
|
||||||
|
CONFIG_FB_ARMCLCD=y
|
||||||
|
# CONFIG_FB_S1D13XXX is not set
|
||||||
|
# CONFIG_FB_VIRTUAL is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Console display driver support
|
||||||
|
#
|
||||||
|
# CONFIG_VGA_CONSOLE is not set
|
||||||
|
CONFIG_DUMMY_CONSOLE=y
|
||||||
|
CONFIG_FRAMEBUFFER_CONSOLE=y
|
||||||
|
# CONFIG_FRAMEBUFFER_CONSOLE_ROTATION is not set
|
||||||
|
# CONFIG_FONTS is not set
|
||||||
|
CONFIG_FONT_8x8=y
|
||||||
|
CONFIG_FONT_8x16=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Logo configuration
|
||||||
|
#
|
||||||
|
CONFIG_LOGO=y
|
||||||
|
CONFIG_LOGO_LINUX_MONO=y
|
||||||
|
CONFIG_LOGO_LINUX_VGA16=y
|
||||||
|
CONFIG_LOGO_LINUX_CLUT224=y
|
||||||
|
# CONFIG_BACKLIGHT_LCD_SUPPORT is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Sound
|
||||||
|
#
|
||||||
|
# CONFIG_SOUND is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB support
|
||||||
|
#
|
||||||
|
CONFIG_USB_ARCH_HAS_HCD=y
|
||||||
|
# CONFIG_USB_ARCH_HAS_OHCI is not set
|
||||||
|
# CONFIG_USB_ARCH_HAS_EHCI is not set
|
||||||
|
# CONFIG_USB is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# NOTE: USB_STORAGE enables SCSI, and 'SCSI disk support'
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# USB Gadget Support
|
||||||
|
#
|
||||||
|
# CONFIG_USB_GADGET is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# MMC/SD Card support
|
||||||
|
#
|
||||||
|
# CONFIG_MMC is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Real Time Clock
|
||||||
|
#
|
||||||
|
CONFIG_RTC_LIB=y
|
||||||
|
CONFIG_RTC_CLASS=m
|
||||||
|
|
||||||
|
#
|
||||||
|
# RTC interfaces
|
||||||
|
#
|
||||||
|
CONFIG_RTC_INTF_SYSFS=m
|
||||||
|
CONFIG_RTC_INTF_PROC=m
|
||||||
|
CONFIG_RTC_INTF_DEV=m
|
||||||
|
|
||||||
|
#
|
||||||
|
# RTC drivers
|
||||||
|
#
|
||||||
|
# CONFIG_RTC_DRV_M48T86 is not set
|
||||||
|
CONFIG_RTC_DRV_NETX=m
|
||||||
|
# CONFIG_RTC_DRV_TEST is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# File systems
|
||||||
|
#
|
||||||
|
# CONFIG_EXT2_FS is not set
|
||||||
|
# CONFIG_EXT3_FS is not set
|
||||||
|
# CONFIG_REISERFS_FS is not set
|
||||||
|
# CONFIG_JFS_FS is not set
|
||||||
|
# CONFIG_FS_POSIX_ACL is not set
|
||||||
|
# CONFIG_XFS_FS is not set
|
||||||
|
# CONFIG_OCFS2_FS is not set
|
||||||
|
# CONFIG_MINIX_FS is not set
|
||||||
|
# CONFIG_ROMFS_FS is not set
|
||||||
|
CONFIG_INOTIFY=y
|
||||||
|
# CONFIG_QUOTA is not set
|
||||||
|
CONFIG_DNOTIFY=y
|
||||||
|
# CONFIG_AUTOFS_FS is not set
|
||||||
|
# CONFIG_AUTOFS4_FS is not set
|
||||||
|
# CONFIG_FUSE_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# CD-ROM/DVD Filesystems
|
||||||
|
#
|
||||||
|
# CONFIG_ISO9660_FS is not set
|
||||||
|
# CONFIG_UDF_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# DOS/FAT/NT Filesystems
|
||||||
|
#
|
||||||
|
# CONFIG_MSDOS_FS is not set
|
||||||
|
# CONFIG_VFAT_FS is not set
|
||||||
|
# CONFIG_NTFS_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Pseudo filesystems
|
||||||
|
#
|
||||||
|
CONFIG_PROC_FS=y
|
||||||
|
CONFIG_SYSFS=y
|
||||||
|
CONFIG_TMPFS=y
|
||||||
|
# CONFIG_HUGETLB_PAGE is not set
|
||||||
|
CONFIG_RAMFS=y
|
||||||
|
# CONFIG_CONFIGFS_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Miscellaneous filesystems
|
||||||
|
#
|
||||||
|
# CONFIG_ADFS_FS is not set
|
||||||
|
# CONFIG_AFFS_FS is not set
|
||||||
|
# CONFIG_HFS_FS is not set
|
||||||
|
# CONFIG_HFSPLUS_FS is not set
|
||||||
|
# CONFIG_BEFS_FS is not set
|
||||||
|
# CONFIG_BFS_FS is not set
|
||||||
|
# CONFIG_EFS_FS is not set
|
||||||
|
# CONFIG_JFFS_FS is not set
|
||||||
|
CONFIG_JFFS2_FS=y
|
||||||
|
CONFIG_JFFS2_FS_DEBUG=0
|
||||||
|
CONFIG_JFFS2_FS_WRITEBUFFER=y
|
||||||
|
# CONFIG_JFFS2_SUMMARY is not set
|
||||||
|
# CONFIG_JFFS2_COMPRESSION_OPTIONS is not set
|
||||||
|
CONFIG_JFFS2_ZLIB=y
|
||||||
|
CONFIG_JFFS2_RTIME=y
|
||||||
|
# CONFIG_JFFS2_RUBIN is not set
|
||||||
|
# CONFIG_CRAMFS is not set
|
||||||
|
# CONFIG_VXFS_FS is not set
|
||||||
|
# CONFIG_HPFS_FS is not set
|
||||||
|
# CONFIG_QNX4FS_FS is not set
|
||||||
|
# CONFIG_SYSV_FS is not set
|
||||||
|
# CONFIG_UFS_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Network File Systems
|
||||||
|
#
|
||||||
|
CONFIG_NFS_FS=y
|
||||||
|
CONFIG_NFS_V3=y
|
||||||
|
# CONFIG_NFS_V3_ACL is not set
|
||||||
|
CONFIG_NFS_V4=y
|
||||||
|
CONFIG_NFS_DIRECTIO=y
|
||||||
|
# CONFIG_NFSD is not set
|
||||||
|
CONFIG_ROOT_NFS=y
|
||||||
|
CONFIG_LOCKD=y
|
||||||
|
CONFIG_LOCKD_V4=y
|
||||||
|
CONFIG_NFS_COMMON=y
|
||||||
|
CONFIG_SUNRPC=y
|
||||||
|
CONFIG_SUNRPC_GSS=y
|
||||||
|
CONFIG_RPCSEC_GSS_KRB5=y
|
||||||
|
# CONFIG_RPCSEC_GSS_SPKM3 is not set
|
||||||
|
# CONFIG_SMB_FS is not set
|
||||||
|
# CONFIG_CIFS is not set
|
||||||
|
# CONFIG_NCP_FS is not set
|
||||||
|
# CONFIG_CODA_FS is not set
|
||||||
|
# CONFIG_AFS_FS is not set
|
||||||
|
# CONFIG_9P_FS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Partition Types
|
||||||
|
#
|
||||||
|
# CONFIG_PARTITION_ADVANCED is not set
|
||||||
|
CONFIG_MSDOS_PARTITION=y
|
||||||
|
|
||||||
|
#
|
||||||
|
# Native Language Support
|
||||||
|
#
|
||||||
|
# CONFIG_NLS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Profiling support
|
||||||
|
#
|
||||||
|
# CONFIG_PROFILING is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Kernel hacking
|
||||||
|
#
|
||||||
|
# CONFIG_PRINTK_TIME is not set
|
||||||
|
CONFIG_MAGIC_SYSRQ=y
|
||||||
|
CONFIG_DEBUG_KERNEL=y
|
||||||
|
CONFIG_LOG_BUF_SHIFT=17
|
||||||
|
CONFIG_DETECT_SOFTLOCKUP=y
|
||||||
|
# CONFIG_SCHEDSTATS is not set
|
||||||
|
# CONFIG_DEBUG_SLAB is not set
|
||||||
|
CONFIG_DEBUG_PREEMPT=y
|
||||||
|
# CONFIG_DEBUG_MUTEXES is not set
|
||||||
|
# CONFIG_DEBUG_SPINLOCK is not set
|
||||||
|
# CONFIG_DEBUG_SPINLOCK_SLEEP is not set
|
||||||
|
# CONFIG_DEBUG_KOBJECT is not set
|
||||||
|
CONFIG_DEBUG_BUGVERBOSE=y
|
||||||
|
# CONFIG_DEBUG_INFO is not set
|
||||||
|
# CONFIG_DEBUG_FS is not set
|
||||||
|
# CONFIG_DEBUG_VM is not set
|
||||||
|
CONFIG_FRAME_POINTER=y
|
||||||
|
# CONFIG_UNWIND_INFO is not set
|
||||||
|
CONFIG_FORCED_INLINING=y
|
||||||
|
# CONFIG_RCU_TORTURE_TEST is not set
|
||||||
|
# CONFIG_DEBUG_USER is not set
|
||||||
|
# CONFIG_DEBUG_WAITQ is not set
|
||||||
|
CONFIG_DEBUG_ERRORS=y
|
||||||
|
# CONFIG_DEBUG_LL is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Security options
|
||||||
|
#
|
||||||
|
# CONFIG_KEYS is not set
|
||||||
|
# CONFIG_SECURITY is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Cryptographic options
|
||||||
|
#
|
||||||
|
CONFIG_CRYPTO=y
|
||||||
|
CONFIG_CRYPTO_HMAC=y
|
||||||
|
CONFIG_CRYPTO_NULL=m
|
||||||
|
CONFIG_CRYPTO_MD4=m
|
||||||
|
CONFIG_CRYPTO_MD5=y
|
||||||
|
CONFIG_CRYPTO_SHA1=y
|
||||||
|
CONFIG_CRYPTO_SHA256=m
|
||||||
|
CONFIG_CRYPTO_SHA512=m
|
||||||
|
# CONFIG_CRYPTO_WP512 is not set
|
||||||
|
# CONFIG_CRYPTO_TGR192 is not set
|
||||||
|
CONFIG_CRYPTO_DES=y
|
||||||
|
CONFIG_CRYPTO_BLOWFISH=m
|
||||||
|
CONFIG_CRYPTO_TWOFISH=m
|
||||||
|
CONFIG_CRYPTO_SERPENT=m
|
||||||
|
CONFIG_CRYPTO_AES=m
|
||||||
|
CONFIG_CRYPTO_CAST5=m
|
||||||
|
CONFIG_CRYPTO_CAST6=m
|
||||||
|
# CONFIG_CRYPTO_TEA is not set
|
||||||
|
CONFIG_CRYPTO_ARC4=m
|
||||||
|
# CONFIG_CRYPTO_KHAZAD is not set
|
||||||
|
# CONFIG_CRYPTO_ANUBIS is not set
|
||||||
|
CONFIG_CRYPTO_DEFLATE=y
|
||||||
|
CONFIG_CRYPTO_MICHAEL_MIC=m
|
||||||
|
CONFIG_CRYPTO_CRC32C=m
|
||||||
|
# CONFIG_CRYPTO_TEST is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Hardware crypto devices
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# Library routines
|
||||||
|
#
|
||||||
|
CONFIG_CRC_CCITT=m
|
||||||
|
# CONFIG_CRC16 is not set
|
||||||
|
CONFIG_CRC32=y
|
||||||
|
CONFIG_LIBCRC32C=m
|
||||||
|
CONFIG_ZLIB_INFLATE=y
|
||||||
|
CONFIG_ZLIB_DEFLATE=y
|
File diff suppressed because it is too large
Load Diff
|
@ -1,12 +1,14 @@
|
||||||
#
|
#
|
||||||
# Automatically generated make config: don't edit
|
# Automatically generated make config: don't edit
|
||||||
# Linux kernel version: 2.6.16
|
# Linux kernel version: 2.6.17
|
||||||
# Mon Mar 20 20:36:02 2006
|
# Tue Jun 20 18:57:01 2006
|
||||||
#
|
#
|
||||||
CONFIG_ARM=y
|
CONFIG_ARM=y
|
||||||
CONFIG_MMU=y
|
CONFIG_MMU=y
|
||||||
CONFIG_RWSEM_GENERIC_SPINLOCK=y
|
CONFIG_RWSEM_GENERIC_SPINLOCK=y
|
||||||
|
CONFIG_GENERIC_HWEIGHT=y
|
||||||
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
CONFIG_GENERIC_CALIBRATE_DELAY=y
|
||||||
|
CONFIG_VECTORS_BASE=0xffff0000
|
||||||
|
|
||||||
#
|
#
|
||||||
# Code maturity level options
|
# Code maturity level options
|
||||||
|
@ -27,6 +29,7 @@ CONFIG_SYSVIPC=y
|
||||||
CONFIG_SYSCTL=y
|
CONFIG_SYSCTL=y
|
||||||
# CONFIG_AUDIT is not set
|
# CONFIG_AUDIT is not set
|
||||||
# CONFIG_IKCONFIG is not set
|
# CONFIG_IKCONFIG is not set
|
||||||
|
# CONFIG_RELAY is not set
|
||||||
CONFIG_INITRAMFS_SOURCE=""
|
CONFIG_INITRAMFS_SOURCE=""
|
||||||
CONFIG_UID16=y
|
CONFIG_UID16=y
|
||||||
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
CONFIG_CC_OPTIMIZE_FOR_SIZE=y
|
||||||
|
@ -42,10 +45,6 @@ CONFIG_BASE_FULL=y
|
||||||
CONFIG_FUTEX=y
|
CONFIG_FUTEX=y
|
||||||
CONFIG_EPOLL=y
|
CONFIG_EPOLL=y
|
||||||
CONFIG_SHMEM=y
|
CONFIG_SHMEM=y
|
||||||
CONFIG_CC_ALIGN_FUNCTIONS=0
|
|
||||||
CONFIG_CC_ALIGN_LABELS=0
|
|
||||||
CONFIG_CC_ALIGN_LOOPS=0
|
|
||||||
CONFIG_CC_ALIGN_JUMPS=0
|
|
||||||
CONFIG_SLAB=y
|
CONFIG_SLAB=y
|
||||||
# CONFIG_TINY_SHMEM is not set
|
# CONFIG_TINY_SHMEM is not set
|
||||||
CONFIG_BASE_SMALL=0
|
CONFIG_BASE_SMALL=0
|
||||||
|
@ -57,7 +56,6 @@ CONFIG_OBSOLETE_INTERMODULE=y
|
||||||
#
|
#
|
||||||
CONFIG_MODULES=y
|
CONFIG_MODULES=y
|
||||||
# CONFIG_MODULE_UNLOAD is not set
|
# CONFIG_MODULE_UNLOAD is not set
|
||||||
CONFIG_OBSOLETE_MODPARM=y
|
|
||||||
# CONFIG_MODVERSIONS is not set
|
# CONFIG_MODVERSIONS is not set
|
||||||
# CONFIG_MODULE_SRCVERSION_ALL is not set
|
# CONFIG_MODULE_SRCVERSION_ALL is not set
|
||||||
CONFIG_KMOD=y
|
CONFIG_KMOD=y
|
||||||
|
@ -65,6 +63,7 @@ CONFIG_KMOD=y
|
||||||
#
|
#
|
||||||
# Block layer
|
# Block layer
|
||||||
#
|
#
|
||||||
|
# CONFIG_BLK_DEV_IO_TRACE is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# IO Schedulers
|
# IO Schedulers
|
||||||
|
@ -92,6 +91,7 @@ CONFIG_DEFAULT_IOSCHED="anticipatory"
|
||||||
# CONFIG_ARCH_IOP3XX is not set
|
# CONFIG_ARCH_IOP3XX is not set
|
||||||
# CONFIG_ARCH_IXP4XX is not set
|
# CONFIG_ARCH_IXP4XX is not set
|
||||||
# CONFIG_ARCH_IXP2000 is not set
|
# CONFIG_ARCH_IXP2000 is not set
|
||||||
|
# CONFIG_ARCH_IXP23XX is not set
|
||||||
# CONFIG_ARCH_L7200 is not set
|
# CONFIG_ARCH_L7200 is not set
|
||||||
# CONFIG_ARCH_PXA is not set
|
# CONFIG_ARCH_PXA is not set
|
||||||
# CONFIG_ARCH_RPC is not set
|
# CONFIG_ARCH_RPC is not set
|
||||||
|
@ -106,6 +106,8 @@ CONFIG_ARCH_S3C2410=y
|
||||||
# CONFIG_ARCH_H720X is not set
|
# CONFIG_ARCH_H720X is not set
|
||||||
# CONFIG_ARCH_AAEC2000 is not set
|
# CONFIG_ARCH_AAEC2000 is not set
|
||||||
# CONFIG_ARCH_AT91RM9200 is not set
|
# CONFIG_ARCH_AT91RM9200 is not set
|
||||||
|
# CONFIG_ARCH_PNX4008 is not set
|
||||||
|
# CONFIG_ARCH_NETX is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# S3C24XX Implementations
|
# S3C24XX Implementations
|
||||||
|
@ -116,14 +118,19 @@ CONFIG_ARCH_BAST=y
|
||||||
CONFIG_BAST_PC104_IRQ=y
|
CONFIG_BAST_PC104_IRQ=y
|
||||||
CONFIG_ARCH_H1940=y
|
CONFIG_ARCH_H1940=y
|
||||||
CONFIG_MACH_N30=y
|
CONFIG_MACH_N30=y
|
||||||
|
CONFIG_MACH_SMDK=y
|
||||||
CONFIG_ARCH_SMDK2410=y
|
CONFIG_ARCH_SMDK2410=y
|
||||||
CONFIG_ARCH_S3C2440=y
|
CONFIG_ARCH_S3C2440=y
|
||||||
|
CONFIG_SMDK2440_CPU2440=y
|
||||||
|
CONFIG_SMDK2440_CPU2442=y
|
||||||
CONFIG_MACH_VR1000=y
|
CONFIG_MACH_VR1000=y
|
||||||
CONFIG_MACH_RX3715=y
|
CONFIG_MACH_RX3715=y
|
||||||
CONFIG_MACH_OTOM=y
|
CONFIG_MACH_OTOM=y
|
||||||
CONFIG_MACH_NEXCODER_2440=y
|
CONFIG_MACH_NEXCODER_2440=y
|
||||||
CONFIG_CPU_S3C2410=y
|
CONFIG_CPU_S3C2410=y
|
||||||
|
CONFIG_CPU_S3C244X=y
|
||||||
CONFIG_CPU_S3C2440=y
|
CONFIG_CPU_S3C2440=y
|
||||||
|
CONFIG_CPU_S3C2442=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# S3C2410 Boot
|
# S3C2410 Boot
|
||||||
|
@ -251,12 +258,15 @@ CONFIG_IP_PNP_BOOTP=y
|
||||||
# CONFIG_INET_AH is not set
|
# CONFIG_INET_AH is not set
|
||||||
# CONFIG_INET_ESP is not set
|
# CONFIG_INET_ESP is not set
|
||||||
# CONFIG_INET_IPCOMP is not set
|
# CONFIG_INET_IPCOMP is not set
|
||||||
|
# CONFIG_INET_XFRM_TUNNEL is not set
|
||||||
# CONFIG_INET_TUNNEL is not set
|
# CONFIG_INET_TUNNEL is not set
|
||||||
CONFIG_INET_DIAG=y
|
CONFIG_INET_DIAG=y
|
||||||
CONFIG_INET_TCP_DIAG=y
|
CONFIG_INET_TCP_DIAG=y
|
||||||
# CONFIG_TCP_CONG_ADVANCED is not set
|
# CONFIG_TCP_CONG_ADVANCED is not set
|
||||||
CONFIG_TCP_CONG_BIC=y
|
CONFIG_TCP_CONG_BIC=y
|
||||||
# CONFIG_IPV6 is not set
|
# CONFIG_IPV6 is not set
|
||||||
|
# CONFIG_INET6_XFRM_TUNNEL is not set
|
||||||
|
# CONFIG_INET6_TUNNEL is not set
|
||||||
# CONFIG_NETFILTER is not set
|
# CONFIG_NETFILTER is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -360,7 +370,6 @@ CONFIG_MTD_CFI_I2=y
|
||||||
# CONFIG_MTD_CFI_I8 is not set
|
# CONFIG_MTD_CFI_I8 is not set
|
||||||
CONFIG_MTD_CFI_INTELEXT=y
|
CONFIG_MTD_CFI_INTELEXT=y
|
||||||
CONFIG_MTD_CFI_AMDSTD=y
|
CONFIG_MTD_CFI_AMDSTD=y
|
||||||
CONFIG_MTD_CFI_AMDSTD_RETRY=0
|
|
||||||
# CONFIG_MTD_CFI_STAA is not set
|
# CONFIG_MTD_CFI_STAA is not set
|
||||||
CONFIG_MTD_CFI_UTIL=y
|
CONFIG_MTD_CFI_UTIL=y
|
||||||
# CONFIG_MTD_RAM is not set
|
# CONFIG_MTD_RAM is not set
|
||||||
|
@ -385,7 +394,6 @@ CONFIG_MTD_BAST_MAXSIZE=4
|
||||||
# CONFIG_MTD_SLRAM is not set
|
# CONFIG_MTD_SLRAM is not set
|
||||||
# CONFIG_MTD_PHRAM is not set
|
# CONFIG_MTD_PHRAM is not set
|
||||||
# CONFIG_MTD_MTDRAM is not set
|
# CONFIG_MTD_MTDRAM is not set
|
||||||
# CONFIG_MTD_BLKMTD is not set
|
|
||||||
# CONFIG_MTD_BLOCK2MTD is not set
|
# CONFIG_MTD_BLOCK2MTD is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -694,7 +702,6 @@ CONFIG_S3C2410_WATCHDOG=y
|
||||||
#
|
#
|
||||||
# CONFIG_USBPCWATCHDOG is not set
|
# CONFIG_USBPCWATCHDOG is not set
|
||||||
# CONFIG_NVRAM is not set
|
# CONFIG_NVRAM is not set
|
||||||
# CONFIG_RTC is not set
|
|
||||||
CONFIG_S3C2410_RTC=y
|
CONFIG_S3C2410_RTC=y
|
||||||
# CONFIG_DTLK is not set
|
# CONFIG_DTLK is not set
|
||||||
# CONFIG_R3964 is not set
|
# CONFIG_R3964 is not set
|
||||||
|
@ -743,9 +750,7 @@ CONFIG_SENSORS_EEPROM=m
|
||||||
# CONFIG_SENSORS_PCF8574 is not set
|
# CONFIG_SENSORS_PCF8574 is not set
|
||||||
# CONFIG_SENSORS_PCA9539 is not set
|
# CONFIG_SENSORS_PCA9539 is not set
|
||||||
# CONFIG_SENSORS_PCF8591 is not set
|
# CONFIG_SENSORS_PCF8591 is not set
|
||||||
# CONFIG_SENSORS_RTC8564 is not set
|
|
||||||
# CONFIG_SENSORS_MAX6875 is not set
|
# CONFIG_SENSORS_MAX6875 is not set
|
||||||
# CONFIG_RTC_X1205_I2C is not set
|
|
||||||
# CONFIG_I2C_DEBUG_CORE is not set
|
# CONFIG_I2C_DEBUG_CORE is not set
|
||||||
# CONFIG_I2C_DEBUG_ALGO is not set
|
# CONFIG_I2C_DEBUG_ALGO is not set
|
||||||
# CONFIG_I2C_DEBUG_BUS is not set
|
# CONFIG_I2C_DEBUG_BUS is not set
|
||||||
|
@ -807,18 +812,29 @@ CONFIG_SENSORS_LM85=m
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# Multimedia Capabilities Port drivers
|
# LED devices
|
||||||
|
#
|
||||||
|
# CONFIG_NEW_LEDS is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# LED drivers
|
||||||
|
#
|
||||||
|
|
||||||
|
#
|
||||||
|
# LED Triggers
|
||||||
#
|
#
|
||||||
|
|
||||||
#
|
#
|
||||||
# Multimedia devices
|
# Multimedia devices
|
||||||
#
|
#
|
||||||
# CONFIG_VIDEO_DEV is not set
|
# CONFIG_VIDEO_DEV is not set
|
||||||
|
CONFIG_VIDEO_V4L2=y
|
||||||
|
|
||||||
#
|
#
|
||||||
# Digital Video Broadcasting Devices
|
# Digital Video Broadcasting Devices
|
||||||
#
|
#
|
||||||
# CONFIG_DVB is not set
|
# CONFIG_DVB is not set
|
||||||
|
# CONFIG_USB_DABUSB is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# Graphics support
|
# Graphics support
|
||||||
|
@ -828,6 +844,7 @@ CONFIG_FB_CFB_FILLRECT=y
|
||||||
CONFIG_FB_CFB_COPYAREA=y
|
CONFIG_FB_CFB_COPYAREA=y
|
||||||
CONFIG_FB_CFB_IMAGEBLIT=y
|
CONFIG_FB_CFB_IMAGEBLIT=y
|
||||||
# CONFIG_FB_MACMODES is not set
|
# CONFIG_FB_MACMODES is not set
|
||||||
|
CONFIG_FB_FIRMWARE_EDID=y
|
||||||
CONFIG_FB_MODE_HELPERS=y
|
CONFIG_FB_MODE_HELPERS=y
|
||||||
# CONFIG_FB_TILEBLITTING is not set
|
# CONFIG_FB_TILEBLITTING is not set
|
||||||
# CONFIG_FB_S1D13XXX is not set
|
# CONFIG_FB_S1D13XXX is not set
|
||||||
|
@ -863,6 +880,7 @@ CONFIG_FONT_8x16=y
|
||||||
#
|
#
|
||||||
CONFIG_USB_ARCH_HAS_HCD=y
|
CONFIG_USB_ARCH_HAS_HCD=y
|
||||||
CONFIG_USB_ARCH_HAS_OHCI=y
|
CONFIG_USB_ARCH_HAS_OHCI=y
|
||||||
|
# CONFIG_USB_ARCH_HAS_EHCI is not set
|
||||||
CONFIG_USB=y
|
CONFIG_USB=y
|
||||||
# CONFIG_USB_DEBUG is not set
|
# CONFIG_USB_DEBUG is not set
|
||||||
|
|
||||||
|
@ -915,9 +933,7 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y
|
||||||
# CONFIG_USB_ACECAD is not set
|
# CONFIG_USB_ACECAD is not set
|
||||||
# CONFIG_USB_KBTAB is not set
|
# CONFIG_USB_KBTAB is not set
|
||||||
# CONFIG_USB_POWERMATE is not set
|
# CONFIG_USB_POWERMATE is not set
|
||||||
# CONFIG_USB_MTOUCH is not set
|
# CONFIG_USB_TOUCHSCREEN is not set
|
||||||
# CONFIG_USB_ITMTOUCH is not set
|
|
||||||
# CONFIG_USB_EGALAX is not set
|
|
||||||
# CONFIG_USB_YEALINK is not set
|
# CONFIG_USB_YEALINK is not set
|
||||||
# CONFIG_USB_XPAD is not set
|
# CONFIG_USB_XPAD is not set
|
||||||
# CONFIG_USB_ATI_REMOTE is not set
|
# CONFIG_USB_ATI_REMOTE is not set
|
||||||
|
@ -930,15 +946,6 @@ CONFIG_USB_OHCI_LITTLE_ENDIAN=y
|
||||||
#
|
#
|
||||||
# CONFIG_USB_MDC800 is not set
|
# CONFIG_USB_MDC800 is not set
|
||||||
|
|
||||||
#
|
|
||||||
# USB Multimedia devices
|
|
||||||
#
|
|
||||||
# CONFIG_USB_DABUSB is not set
|
|
||||||
|
|
||||||
#
|
|
||||||
# Video4Linux support is needed for USB Multimedia device support
|
|
||||||
#
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# USB Network Adapters
|
# USB Network Adapters
|
||||||
#
|
#
|
||||||
|
@ -984,23 +991,18 @@ CONFIG_USB_MON=y
|
||||||
# USB Gadget Support
|
# USB Gadget Support
|
||||||
#
|
#
|
||||||
# CONFIG_USB_GADGET is not set
|
# CONFIG_USB_GADGET is not set
|
||||||
# CONFIG_USB_GADGET_NET2280 is not set
|
|
||||||
# CONFIG_USB_GADGET_PXA2XX is not set
|
|
||||||
# CONFIG_USB_GADGET_GOKU is not set
|
|
||||||
# CONFIG_USB_GADGET_LH7A40X is not set
|
|
||||||
# CONFIG_USB_GADGET_OMAP is not set
|
|
||||||
# CONFIG_USB_GADGET_DUMMY_HCD is not set
|
|
||||||
# CONFIG_USB_ZERO is not set
|
|
||||||
# CONFIG_USB_ETH is not set
|
|
||||||
# CONFIG_USB_GADGETFS is not set
|
|
||||||
# CONFIG_USB_FILE_STORAGE is not set
|
|
||||||
# CONFIG_USB_G_SERIAL is not set
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# MMC/SD Card support
|
# MMC/SD Card support
|
||||||
#
|
#
|
||||||
# CONFIG_MMC is not set
|
# CONFIG_MMC is not set
|
||||||
|
|
||||||
|
#
|
||||||
|
# Real Time Clock
|
||||||
|
#
|
||||||
|
CONFIG_RTC_LIB=y
|
||||||
|
# CONFIG_RTC_CLASS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
# File systems
|
# File systems
|
||||||
#
|
#
|
||||||
|
@ -1052,7 +1054,6 @@ CONFIG_SYSFS=y
|
||||||
# CONFIG_TMPFS is not set
|
# CONFIG_TMPFS is not set
|
||||||
# CONFIG_HUGETLB_PAGE is not set
|
# CONFIG_HUGETLB_PAGE is not set
|
||||||
CONFIG_RAMFS=y
|
CONFIG_RAMFS=y
|
||||||
# CONFIG_RELAYFS_FS is not set
|
|
||||||
# CONFIG_CONFIGFS_FS is not set
|
# CONFIG_CONFIGFS_FS is not set
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -1193,6 +1194,7 @@ CONFIG_DEBUG_INFO=y
|
||||||
# CONFIG_DEBUG_FS is not set
|
# CONFIG_DEBUG_FS is not set
|
||||||
# CONFIG_DEBUG_VM is not set
|
# CONFIG_DEBUG_VM is not set
|
||||||
CONFIG_FRAME_POINTER=y
|
CONFIG_FRAME_POINTER=y
|
||||||
|
# CONFIG_UNWIND_INFO is not set
|
||||||
CONFIG_FORCED_INLINING=y
|
CONFIG_FORCED_INLINING=y
|
||||||
# CONFIG_RCU_TORTURE_TEST is not set
|
# CONFIG_RCU_TORTURE_TEST is not set
|
||||||
CONFIG_DEBUG_USER=y
|
CONFIG_DEBUG_USER=y
|
||||||
|
|
|
@ -271,7 +271,7 @@ ENTRY(sys_call_table)
|
||||||
@ r8 = syscall table
|
@ r8 = syscall table
|
||||||
.type sys_syscall, #function
|
.type sys_syscall, #function
|
||||||
sys_syscall:
|
sys_syscall:
|
||||||
eor scno, r0, #__NR_OABI_SYSCALL_BASE
|
bic scno, r0, #__NR_OABI_SYSCALL_BASE
|
||||||
cmp scno, #__NR_syscall - __NR_SYSCALL_BASE
|
cmp scno, #__NR_syscall - __NR_SYSCALL_BASE
|
||||||
cmpne scno, #NR_syscalls @ check range
|
cmpne scno, #NR_syscalls @ check range
|
||||||
stmloia sp, {r5, r6} @ shuffle args
|
stmloia sp, {r5, r6} @ shuffle args
|
||||||
|
|
|
@ -342,10 +342,10 @@ __do_irq(unsigned int irq, struct irqaction *action, struct pt_regs *regs)
|
||||||
|
|
||||||
#ifdef CONFIG_NO_IDLE_HZ
|
#ifdef CONFIG_NO_IDLE_HZ
|
||||||
if (!(action->flags & SA_TIMER) && system_timer->dyn_tick != NULL) {
|
if (!(action->flags & SA_TIMER) && system_timer->dyn_tick != NULL) {
|
||||||
write_seqlock(&xtime_lock);
|
spin_lock(&system_timer->dyn_tick->lock);
|
||||||
if (system_timer->dyn_tick->state & DYN_TICK_ENABLED)
|
if (system_timer->dyn_tick->state & DYN_TICK_ENABLED)
|
||||||
system_timer->dyn_tick->handler(irq, 0, regs);
|
system_timer->dyn_tick->handler(irq, 0, regs);
|
||||||
write_sequnlock(&xtime_lock);
|
spin_unlock(&system_timer->dyn_tick->lock);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
|
@ -28,6 +28,7 @@
|
||||||
#include <linux/init.h>
|
#include <linux/init.h>
|
||||||
#include <linux/cpu.h>
|
#include <linux/cpu.h>
|
||||||
#include <linux/elfcore.h>
|
#include <linux/elfcore.h>
|
||||||
|
#include <linux/pm.h>
|
||||||
|
|
||||||
#include <asm/leds.h>
|
#include <asm/leds.h>
|
||||||
#include <asm/processor.h>
|
#include <asm/processor.h>
|
||||||
|
@ -71,8 +72,36 @@ static int __init hlt_setup(char *__unused)
|
||||||
__setup("nohlt", nohlt_setup);
|
__setup("nohlt", nohlt_setup);
|
||||||
__setup("hlt", hlt_setup);
|
__setup("hlt", hlt_setup);
|
||||||
|
|
||||||
|
void arm_machine_restart(char mode)
|
||||||
|
{
|
||||||
|
/*
|
||||||
|
* Clean and disable cache, and turn off interrupts
|
||||||
|
*/
|
||||||
|
cpu_proc_fin();
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Tell the mm system that we are going to reboot -
|
||||||
|
* we may need it to insert some 1:1 mappings so that
|
||||||
|
* soft boot works.
|
||||||
|
*/
|
||||||
|
setup_mm_for_reboot(mode);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Now call the architecture specific reboot code.
|
||||||
|
*/
|
||||||
|
arch_reset(mode);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Whoops - the architecture was unable to reboot.
|
||||||
|
* Tell the user!
|
||||||
|
*/
|
||||||
|
mdelay(1000);
|
||||||
|
printk("Reboot failed -- System halted\n");
|
||||||
|
while (1);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The following aren't currently used.
|
* Function pointers to optional machine specific functions
|
||||||
*/
|
*/
|
||||||
void (*pm_idle)(void);
|
void (*pm_idle)(void);
|
||||||
EXPORT_SYMBOL(pm_idle);
|
EXPORT_SYMBOL(pm_idle);
|
||||||
|
@ -80,6 +109,10 @@ EXPORT_SYMBOL(pm_idle);
|
||||||
void (*pm_power_off)(void);
|
void (*pm_power_off)(void);
|
||||||
EXPORT_SYMBOL(pm_power_off);
|
EXPORT_SYMBOL(pm_power_off);
|
||||||
|
|
||||||
|
void (*arm_pm_restart)(char str) = arm_machine_restart;
|
||||||
|
EXPORT_SYMBOL_GPL(arm_pm_restart);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This is our default idle handler. We need to disable
|
* This is our default idle handler. We need to disable
|
||||||
* interrupts here to ensure we don't miss a wakeup call.
|
* interrupts here to ensure we don't miss a wakeup call.
|
||||||
|
@ -151,33 +184,9 @@ void machine_power_off(void)
|
||||||
pm_power_off();
|
pm_power_off();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void machine_restart(char * __unused)
|
void machine_restart(char * __unused)
|
||||||
{
|
{
|
||||||
/*
|
arm_pm_restart(reboot_mode);
|
||||||
* Clean and disable cache, and turn off interrupts
|
|
||||||
*/
|
|
||||||
cpu_proc_fin();
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Tell the mm system that we are going to reboot -
|
|
||||||
* we may need it to insert some 1:1 mappings so that
|
|
||||||
* soft boot works.
|
|
||||||
*/
|
|
||||||
setup_mm_for_reboot(reboot_mode);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Now call the architecture specific reboot code.
|
|
||||||
*/
|
|
||||||
arch_reset(reboot_mode);
|
|
||||||
|
|
||||||
/*
|
|
||||||
* Whoops - the architecture was unable to reboot.
|
|
||||||
* Tell the user!
|
|
||||||
*/
|
|
||||||
mdelay(1000);
|
|
||||||
printk("Reboot failed -- System halted\n");
|
|
||||||
while (1);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void __show_regs(struct pt_regs *regs)
|
void __show_regs(struct pt_regs *regs)
|
||||||
|
|
|
@ -379,7 +379,7 @@ static int timer_dyn_tick_enable(void)
|
||||||
int ret = -ENODEV;
|
int ret = -ENODEV;
|
||||||
|
|
||||||
if (dyn_tick) {
|
if (dyn_tick) {
|
||||||
write_seqlock_irqsave(&xtime_lock, flags);
|
spin_lock_irqsave(&dyn_tick->lock, flags);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
if (!(dyn_tick->state & DYN_TICK_ENABLED)) {
|
if (!(dyn_tick->state & DYN_TICK_ENABLED)) {
|
||||||
ret = dyn_tick->enable();
|
ret = dyn_tick->enable();
|
||||||
|
@ -387,7 +387,7 @@ static int timer_dyn_tick_enable(void)
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
dyn_tick->state |= DYN_TICK_ENABLED;
|
dyn_tick->state |= DYN_TICK_ENABLED;
|
||||||
}
|
}
|
||||||
write_sequnlock_irqrestore(&xtime_lock, flags);
|
spin_unlock_irqrestore(&dyn_tick->lock, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -400,7 +400,7 @@ static int timer_dyn_tick_disable(void)
|
||||||
int ret = -ENODEV;
|
int ret = -ENODEV;
|
||||||
|
|
||||||
if (dyn_tick) {
|
if (dyn_tick) {
|
||||||
write_seqlock_irqsave(&xtime_lock, flags);
|
spin_lock_irqsave(&dyn_tick->lock, flags);
|
||||||
ret = 0;
|
ret = 0;
|
||||||
if (dyn_tick->state & DYN_TICK_ENABLED) {
|
if (dyn_tick->state & DYN_TICK_ENABLED) {
|
||||||
ret = dyn_tick->disable();
|
ret = dyn_tick->disable();
|
||||||
|
@ -408,7 +408,7 @@ static int timer_dyn_tick_disable(void)
|
||||||
if (ret == 0)
|
if (ret == 0)
|
||||||
dyn_tick->state &= ~DYN_TICK_ENABLED;
|
dyn_tick->state &= ~DYN_TICK_ENABLED;
|
||||||
}
|
}
|
||||||
write_sequnlock_irqrestore(&xtime_lock, flags);
|
spin_unlock_irqrestore(&dyn_tick->lock, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
@ -422,15 +422,20 @@ static int timer_dyn_tick_disable(void)
|
||||||
void timer_dyn_reprogram(void)
|
void timer_dyn_reprogram(void)
|
||||||
{
|
{
|
||||||
struct dyn_tick_timer *dyn_tick = system_timer->dyn_tick;
|
struct dyn_tick_timer *dyn_tick = system_timer->dyn_tick;
|
||||||
unsigned long next, seq;
|
unsigned long next, seq, flags;
|
||||||
|
|
||||||
if (dyn_tick && (dyn_tick->state & DYN_TICK_ENABLED)) {
|
if (!dyn_tick)
|
||||||
|
return;
|
||||||
|
|
||||||
|
spin_lock_irqsave(&dyn_tick->lock, flags);
|
||||||
|
if (dyn_tick->state & DYN_TICK_ENABLED) {
|
||||||
next = next_timer_interrupt();
|
next = next_timer_interrupt();
|
||||||
do {
|
do {
|
||||||
seq = read_seqbegin(&xtime_lock);
|
seq = read_seqbegin(&xtime_lock);
|
||||||
dyn_tick->reprogram(next_timer_interrupt() - jiffies);
|
dyn_tick->reprogram(next - jiffies);
|
||||||
} while (read_seqretry(&xtime_lock, seq));
|
} while (read_seqretry(&xtime_lock, seq));
|
||||||
}
|
}
|
||||||
|
spin_unlock_irqrestore(&dyn_tick->lock, flags);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ssize_t timer_show_dyn_tick(struct sys_device *dev, char *buf)
|
static ssize_t timer_show_dyn_tick(struct sys_device *dev, char *buf)
|
||||||
|
@ -499,5 +504,10 @@ void __init time_init(void)
|
||||||
if (system_timer->offset == NULL)
|
if (system_timer->offset == NULL)
|
||||||
system_timer->offset = dummy_gettimeoffset;
|
system_timer->offset = dummy_gettimeoffset;
|
||||||
system_timer->init();
|
system_timer->init();
|
||||||
|
|
||||||
|
#ifdef CONFIG_NO_IDLE_HZ
|
||||||
|
if (system_timer->dyn_tick)
|
||||||
|
system_timer->dyn_tick->lock = SPIN_LOCK_UNLOCKED;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -40,6 +40,18 @@ config MACH_KB9200
|
||||||
help
|
help
|
||||||
Select this if you are using KwikByte's KB920x board
|
Select this if you are using KwikByte's KB920x board
|
||||||
|
|
||||||
|
config MACH_ATEB9200
|
||||||
|
bool "Embest's ATEB9200"
|
||||||
|
depends on ARCH_AT91RM9200
|
||||||
|
help
|
||||||
|
Select this if you are using Embest's ATEB9200 board
|
||||||
|
|
||||||
|
config MACH_KAFA
|
||||||
|
bool "Sperry-Sun KAFA board"
|
||||||
|
depends on ARCH_AT91RM9200
|
||||||
|
help
|
||||||
|
Select this if you are using Sperry-Sun's KAFA board
|
||||||
|
|
||||||
|
|
||||||
comment "AT91RM9200 Feature Selections"
|
comment "AT91RM9200 Feature Selections"
|
||||||
|
|
||||||
|
|
|
@ -7,22 +7,31 @@ obj-m :=
|
||||||
obj-n :=
|
obj-n :=
|
||||||
obj- :=
|
obj- :=
|
||||||
|
|
||||||
|
obj-$(CONFIG_PM) += pm.o
|
||||||
|
|
||||||
# Board-specific support
|
# Board-specific support
|
||||||
obj-$(CONFIG_ARCH_AT91RM9200DK) += board-dk.o
|
obj-$(CONFIG_ARCH_AT91RM9200DK) += board-dk.o
|
||||||
obj-$(CONFIG_MACH_AT91RM9200EK) += board-ek.o
|
obj-$(CONFIG_MACH_AT91RM9200EK) += board-ek.o
|
||||||
obj-$(CONFIG_MACH_CSB337) += board-csb337.o
|
obj-$(CONFIG_MACH_CSB337) += board-csb337.o
|
||||||
obj-$(CONFIG_MACH_CSB637) += board-csb637.o
|
obj-$(CONFIG_MACH_CSB637) += board-csb637.o
|
||||||
#obj-$(CONFIG_MACH_CARMEVA) += board-carmeva.o
|
obj-$(CONFIG_MACH_CARMEVA) += board-carmeva.o
|
||||||
#obj-$(CONFIG_MACH_KB9200) += board-kb9202.o
|
obj-$(CONFIG_MACH_KB9200) += board-kb9202.o
|
||||||
|
obj-$(CONFIG_MACH_ATEB9200) += board-eb9200.o
|
||||||
|
obj-$(CONFIG_MACH_KAFA) += board-kafa.o
|
||||||
|
|
||||||
# LEDs support
|
# LEDs support
|
||||||
led-$(CONFIG_ARCH_AT91RM9200DK) += leds.o
|
led-$(CONFIG_ARCH_AT91RM9200DK) += leds.o
|
||||||
led-$(CONFIG_MACH_AT91RM9200EK) += leds.o
|
led-$(CONFIG_MACH_AT91RM9200EK) += leds.o
|
||||||
led-$(CONFIG_MACH_CSB337) += leds.o
|
led-$(CONFIG_MACH_CSB337) += leds.o
|
||||||
led-$(CONFIG_MACH_CSB637) += leds.o
|
led-$(CONFIG_MACH_CSB637) += leds.o
|
||||||
#led-$(CONFIG_MACH_KB9200) += leds.o
|
led-$(CONFIG_MACH_KB9200) += leds.o
|
||||||
#led-$(CONFIG_MACH_KAFA) += leds.o
|
led-$(CONFIG_MACH_KAFA) += leds.o
|
||||||
obj-$(CONFIG_LEDS) += $(led-y)
|
obj-$(CONFIG_LEDS) += $(led-y)
|
||||||
|
|
||||||
# VGA support
|
# VGA support
|
||||||
#obj-$(CONFIG_FB_S1D13XXX) += ics1523.o
|
#obj-$(CONFIG_FB_S1D13XXX) += ics1523.o
|
||||||
|
|
||||||
|
|
||||||
|
ifeq ($(CONFIG_PM_DEBUG),y)
|
||||||
|
CFLAGS_pm.o += -DDEBUG
|
||||||
|
endif
|
||||||
|
|
|
@ -0,0 +1,131 @@
|
||||||
|
/*
|
||||||
|
* linux/arch/arm/mach-at91rm9200/board-carmeva.c
|
||||||
|
*
|
||||||
|
* Copyright (c) 2005 Peer Georgi
|
||||||
|
* Conitec Datasystems
|
||||||
|
*
|
||||||
|
* 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/config.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/mm.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/platform_device.h>
|
||||||
|
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/setup.h>
|
||||||
|
#include <asm/mach-types.h>
|
||||||
|
#include <asm/irq.h>
|
||||||
|
|
||||||
|
#include <asm/mach/arch.h>
|
||||||
|
#include <asm/mach/map.h>
|
||||||
|
#include <asm/mach/irq.h>
|
||||||
|
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/arch/board.h>
|
||||||
|
#include <asm/arch/gpio.h>
|
||||||
|
|
||||||
|
#include "generic.h"
|
||||||
|
|
||||||
|
static void __init carmeva_init_irq(void)
|
||||||
|
{
|
||||||
|
/* Initialize AIC controller */
|
||||||
|
at91rm9200_init_irq(NULL);
|
||||||
|
|
||||||
|
/* Set up the GPIO interrupts */
|
||||||
|
at91_gpio_irq_setup(BGA_GPIO_BANKS);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Serial port configuration.
|
||||||
|
* 0 .. 3 = USART0 .. USART3
|
||||||
|
* 4 = DBGU
|
||||||
|
*/
|
||||||
|
static struct at91_uart_config __initdata carmeva_uart_config = {
|
||||||
|
.console_tty = 0, /* ttyS0 */
|
||||||
|
.nr_tty = 2,
|
||||||
|
.tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init carmeva_map_io(void)
|
||||||
|
{
|
||||||
|
at91rm9200_map_io();
|
||||||
|
|
||||||
|
/* Initialize clocks: 20.000 MHz crystal */
|
||||||
|
at91_clock_init(20000000);
|
||||||
|
|
||||||
|
/* Setup the serial ports and console */
|
||||||
|
at91_init_serial(&carmeva_uart_config);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct at91_eth_data __initdata carmeva_eth_data = {
|
||||||
|
.phy_irq_pin = AT91_PIN_PC4,
|
||||||
|
.is_rmii = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_usbh_data __initdata carmeva_usbh_data = {
|
||||||
|
.ports = 2,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_udc_data __initdata carmeva_udc_data = {
|
||||||
|
.vbus_pin = AT91_PIN_PD12,
|
||||||
|
.pullup_pin = AT91_PIN_PD9,
|
||||||
|
};
|
||||||
|
|
||||||
|
/* FIXME: user dependend */
|
||||||
|
// static struct at91_cf_data __initdata carmeva_cf_data = {
|
||||||
|
// .det_pin = AT91_PIN_PB0,
|
||||||
|
// .rst_pin = AT91_PIN_PC5,
|
||||||
|
// .irq_pin = ... not connected
|
||||||
|
// .vcc_pin = ... always powered
|
||||||
|
// };
|
||||||
|
|
||||||
|
static struct at91_mmc_data __initdata carmeva_mmc_data = {
|
||||||
|
.is_b = 0,
|
||||||
|
.wire4 = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init carmeva_board_init(void)
|
||||||
|
{
|
||||||
|
/* Serial */
|
||||||
|
at91_add_device_serial();
|
||||||
|
/* Ethernet */
|
||||||
|
at91_add_device_eth(&carmeva_eth_data);
|
||||||
|
/* USB Host */
|
||||||
|
at91_add_device_usbh(&carmeva_usbh_data);
|
||||||
|
/* USB Device */
|
||||||
|
at91_add_device_udc(&carmeva_udc_data);
|
||||||
|
/* I2C */
|
||||||
|
at91_add_device_i2c();
|
||||||
|
/* Compact Flash */
|
||||||
|
// at91_add_device_cf(&carmeva_cf_data);
|
||||||
|
/* SPI */
|
||||||
|
// at91_add_device_spi(NULL, 0);
|
||||||
|
/* MMC */
|
||||||
|
at91_add_device_mmc(&carmeva_mmc_data);
|
||||||
|
}
|
||||||
|
|
||||||
|
MACHINE_START(CARMEVA, "Carmeva")
|
||||||
|
/* Maintainer: Conitec Datasystems */
|
||||||
|
.phys_io = AT91_BASE_SYS,
|
||||||
|
.io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc,
|
||||||
|
.boot_params = AT91_SDRAM_BASE + 0x100,
|
||||||
|
.timer = &at91rm9200_timer,
|
||||||
|
.map_io = carmeva_map_io,
|
||||||
|
.init_irq = carmeva_init_irq,
|
||||||
|
.init_machine = carmeva_board_init,
|
||||||
|
MACHINE_END
|
|
@ -24,6 +24,7 @@
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
|
#include <linux/spi/spi.h>
|
||||||
|
|
||||||
#include <asm/hardware.h>
|
#include <asm/hardware.h>
|
||||||
#include <asm/setup.h>
|
#include <asm/setup.h>
|
||||||
|
@ -34,9 +35,9 @@
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
#include <asm/mach/irq.h>
|
#include <asm/mach/irq.h>
|
||||||
|
|
||||||
#include <asm/arch/hardware.h>
|
#include <asm/hardware.h>
|
||||||
#include <asm/mach/serial_at91rm9200.h>
|
|
||||||
#include <asm/arch/board.h>
|
#include <asm/arch/board.h>
|
||||||
|
#include <asm/arch/gpio.h>
|
||||||
|
|
||||||
#include "generic.h"
|
#include "generic.h"
|
||||||
|
|
||||||
|
@ -54,32 +55,24 @@ static void __init csb337_init_irq(void)
|
||||||
* 0 .. 3 = USART0 .. USART3
|
* 0 .. 3 = USART0 .. USART3
|
||||||
* 4 = DBGU
|
* 4 = DBGU
|
||||||
*/
|
*/
|
||||||
#define CSB337_UART_MAP { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */
|
static struct at91_uart_config __initdata csb337_uart_config = {
|
||||||
#define CSB337_SERIAL_CONSOLE 0 /* ttyS0 */
|
.console_tty = 0, /* ttyS0 */
|
||||||
|
.nr_tty = 2,
|
||||||
|
.tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */
|
||||||
|
};
|
||||||
|
|
||||||
static void __init csb337_map_io(void)
|
static void __init csb337_map_io(void)
|
||||||
{
|
{
|
||||||
int serial[AT91_NR_UART] = CSB337_UART_MAP;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
at91rm9200_map_io();
|
at91rm9200_map_io();
|
||||||
|
|
||||||
/* Initialize clocks: 3.6864 MHz crystal */
|
/* Initialize clocks: 3.6864 MHz crystal */
|
||||||
at91_clock_init(3686400);
|
at91_clock_init(3686400);
|
||||||
|
|
||||||
/* Setup the LEDs */
|
/* Setup the LEDs */
|
||||||
at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2);
|
at91_init_leds(AT91_PIN_PB0, AT91_PIN_PB1);
|
||||||
|
|
||||||
#ifdef CONFIG_SERIAL_AT91
|
/* Setup the serial ports and console */
|
||||||
at91_console_port = CSB337_SERIAL_CONSOLE;
|
at91_init_serial(&csb337_uart_config);
|
||||||
memcpy(at91_serial_map, serial, sizeof(serial));
|
|
||||||
|
|
||||||
/* Register UARTs */
|
|
||||||
for (i = 0; i < AT91_NR_UART; i++) {
|
|
||||||
if (serial[i] >= 0)
|
|
||||||
at91_register_uart(i, serial[i]);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct at91_eth_data __initdata csb337_eth_data = {
|
static struct at91_eth_data __initdata csb337_eth_data = {
|
||||||
|
@ -118,17 +111,31 @@ static struct at91_mmc_data __initdata csb337_mmc_data = {
|
||||||
.wp_pin = AT91_PIN_PD6,
|
.wp_pin = AT91_PIN_PD6,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct spi_board_info csb337_spi_devices[] = {
|
||||||
|
{ /* CAN controller */
|
||||||
|
.modalias = "sak82c900",
|
||||||
|
.chip_select = 0,
|
||||||
|
.max_speed_hz = 6 * 1000 * 1000,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
static void __init csb337_board_init(void)
|
static void __init csb337_board_init(void)
|
||||||
{
|
{
|
||||||
|
/* Serial */
|
||||||
|
at91_add_device_serial();
|
||||||
/* Ethernet */
|
/* Ethernet */
|
||||||
at91_add_device_eth(&csb337_eth_data);
|
at91_add_device_eth(&csb337_eth_data);
|
||||||
/* USB Host */
|
/* USB Host */
|
||||||
at91_add_device_usbh(&csb337_usbh_data);
|
at91_add_device_usbh(&csb337_usbh_data);
|
||||||
/* USB Device */
|
/* USB Device */
|
||||||
at91_add_device_udc(&csb337_udc_data);
|
at91_add_device_udc(&csb337_udc_data);
|
||||||
|
/* I2C */
|
||||||
|
at91_add_device_i2c();
|
||||||
/* Compact Flash */
|
/* Compact Flash */
|
||||||
at91_set_gpio_input(AT91_PIN_PB22, 1); /* IOIS16 */
|
at91_set_gpio_input(AT91_PIN_PB22, 1); /* IOIS16 */
|
||||||
at91_add_device_cf(&csb337_cf_data);
|
at91_add_device_cf(&csb337_cf_data);
|
||||||
|
/* SPI */
|
||||||
|
at91_add_device_spi(csb337_spi_devices, ARRAY_SIZE(csb337_spi_devices));
|
||||||
/* MMC */
|
/* MMC */
|
||||||
at91_add_device_mmc(&csb337_mmc_data);
|
at91_add_device_mmc(&csb337_mmc_data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,9 +34,9 @@
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
#include <asm/mach/irq.h>
|
#include <asm/mach/irq.h>
|
||||||
|
|
||||||
#include <asm/arch/hardware.h>
|
#include <asm/hardware.h>
|
||||||
#include <asm/mach/serial_at91rm9200.h>
|
|
||||||
#include <asm/arch/board.h>
|
#include <asm/arch/board.h>
|
||||||
|
#include <asm/arch/gpio.h>
|
||||||
|
|
||||||
#include "generic.h"
|
#include "generic.h"
|
||||||
|
|
||||||
|
@ -54,14 +54,14 @@ static void __init csb637_init_irq(void)
|
||||||
* 0 .. 3 = USART0 .. USART3
|
* 0 .. 3 = USART0 .. USART3
|
||||||
* 4 = DBGU
|
* 4 = DBGU
|
||||||
*/
|
*/
|
||||||
#define CSB637_UART_MAP { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */
|
static struct at91_uart_config __initdata csb637_uart_config = {
|
||||||
#define CSB637_SERIAL_CONSOLE 0 /* ttyS0 */
|
.console_tty = 0, /* ttyS0 */
|
||||||
|
.nr_tty = 2,
|
||||||
|
.tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */
|
||||||
|
};
|
||||||
|
|
||||||
static void __init csb637_map_io(void)
|
static void __init csb637_map_io(void)
|
||||||
{
|
{
|
||||||
int serial[AT91_NR_UART] = CSB637_UART_MAP;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
at91rm9200_map_io();
|
at91rm9200_map_io();
|
||||||
|
|
||||||
/* Initialize clocks: 3.6864 MHz crystal */
|
/* Initialize clocks: 3.6864 MHz crystal */
|
||||||
|
@ -70,16 +70,8 @@ static void __init csb637_map_io(void)
|
||||||
/* Setup the LEDs */
|
/* Setup the LEDs */
|
||||||
at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2);
|
at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2);
|
||||||
|
|
||||||
#ifdef CONFIG_SERIAL_AT91
|
/* Setup the serial ports and console */
|
||||||
at91_console_port = CSB637_SERIAL_CONSOLE;
|
at91_init_serial(&csb637_uart_config);
|
||||||
memcpy(at91_serial_map, serial, sizeof(serial));
|
|
||||||
|
|
||||||
/* Register UARTs */
|
|
||||||
for (i = 0; i < AT91_NR_UART; i++) {
|
|
||||||
if (serial[i] >= 0)
|
|
||||||
at91_register_uart(i, serial[i]);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct at91_eth_data __initdata csb637_eth_data = {
|
static struct at91_eth_data __initdata csb637_eth_data = {
|
||||||
|
@ -98,12 +90,18 @@ static struct at91_udc_data __initdata csb637_udc_data = {
|
||||||
|
|
||||||
static void __init csb637_board_init(void)
|
static void __init csb637_board_init(void)
|
||||||
{
|
{
|
||||||
|
/* Serial */
|
||||||
|
at91_add_device_serial();
|
||||||
/* Ethernet */
|
/* Ethernet */
|
||||||
at91_add_device_eth(&csb637_eth_data);
|
at91_add_device_eth(&csb637_eth_data);
|
||||||
/* USB Host */
|
/* USB Host */
|
||||||
at91_add_device_usbh(&csb637_usbh_data);
|
at91_add_device_usbh(&csb637_usbh_data);
|
||||||
/* USB Device */
|
/* USB Device */
|
||||||
at91_add_device_udc(&csb637_udc_data);
|
at91_add_device_udc(&csb637_udc_data);
|
||||||
|
/* I2C */
|
||||||
|
at91_add_device_i2c();
|
||||||
|
/* SPI */
|
||||||
|
at91_add_device_spi(NULL, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
MACHINE_START(CSB637, "Cogent CSB637")
|
MACHINE_START(CSB637, "Cogent CSB637")
|
||||||
|
|
|
@ -27,6 +27,7 @@
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
|
#include <linux/spi/spi.h>
|
||||||
|
|
||||||
#include <asm/hardware.h>
|
#include <asm/hardware.h>
|
||||||
#include <asm/setup.h>
|
#include <asm/setup.h>
|
||||||
|
@ -37,9 +38,9 @@
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
#include <asm/mach/irq.h>
|
#include <asm/mach/irq.h>
|
||||||
|
|
||||||
#include <asm/arch/hardware.h>
|
#include <asm/hardware.h>
|
||||||
#include <asm/mach/serial_at91rm9200.h>
|
|
||||||
#include <asm/arch/board.h>
|
#include <asm/arch/board.h>
|
||||||
|
#include <asm/arch/gpio.h>
|
||||||
|
|
||||||
#include "generic.h"
|
#include "generic.h"
|
||||||
|
|
||||||
|
@ -57,14 +58,14 @@ static void __init dk_init_irq(void)
|
||||||
* 0 .. 3 = USART0 .. USART3
|
* 0 .. 3 = USART0 .. USART3
|
||||||
* 4 = DBGU
|
* 4 = DBGU
|
||||||
*/
|
*/
|
||||||
#define DK_UART_MAP { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */
|
static struct at91_uart_config __initdata dk_uart_config = {
|
||||||
#define DK_SERIAL_CONSOLE 0 /* ttyS0 */
|
.console_tty = 0, /* ttyS0 */
|
||||||
|
.nr_tty = 2,
|
||||||
|
.tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */
|
||||||
|
};
|
||||||
|
|
||||||
static void __init dk_map_io(void)
|
static void __init dk_map_io(void)
|
||||||
{
|
{
|
||||||
int serial[AT91_NR_UART] = DK_UART_MAP;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
at91rm9200_map_io();
|
at91rm9200_map_io();
|
||||||
|
|
||||||
/* Initialize clocks: 18.432 MHz crystal */
|
/* Initialize clocks: 18.432 MHz crystal */
|
||||||
|
@ -73,16 +74,8 @@ static void __init dk_map_io(void)
|
||||||
/* Setup the LEDs */
|
/* Setup the LEDs */
|
||||||
at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2);
|
at91_init_leds(AT91_PIN_PB2, AT91_PIN_PB2);
|
||||||
|
|
||||||
#ifdef CONFIG_SERIAL_AT91
|
/* Setup the serial ports and console */
|
||||||
at91_console_port = DK_SERIAL_CONSOLE;
|
at91_init_serial(&dk_uart_config);
|
||||||
memcpy(at91_serial_map, serial, sizeof(serial));
|
|
||||||
|
|
||||||
/* Register UARTs */
|
|
||||||
for (i = 0; i < AT91_NR_UART; i++) {
|
|
||||||
if (at91_serial_map[i] >= 0)
|
|
||||||
at91_register_uart(i, at91_serial_map[i]);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct at91_eth_data __initdata dk_eth_data = {
|
static struct at91_eth_data __initdata dk_eth_data = {
|
||||||
|
@ -111,16 +104,48 @@ static struct at91_mmc_data __initdata dk_mmc_data = {
|
||||||
.wire4 = 1,
|
.wire4 = 1,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct spi_board_info dk_spi_devices[] = {
|
||||||
|
{ /* DataFlash chip */
|
||||||
|
.modalias = "mtd_dataflash",
|
||||||
|
.chip_select = 0,
|
||||||
|
.max_speed_hz = 15 * 1000 * 1000,
|
||||||
|
},
|
||||||
|
{ /* UR6HCPS2-SP40 PS2-to-SPI adapter */
|
||||||
|
.modalias = "ur6hcps2",
|
||||||
|
.chip_select = 1,
|
||||||
|
.max_speed_hz = 250 * 1000,
|
||||||
|
},
|
||||||
|
{ /* TLV1504 ADC, 4 channels, 10 bits; one is a temp sensor */
|
||||||
|
.modalias = "tlv1504",
|
||||||
|
.chip_select = 2,
|
||||||
|
.max_speed_hz = 20 * 1000 * 1000,
|
||||||
|
},
|
||||||
|
#ifdef CONFIG_MTD_AT91_DATAFLASH_CARD
|
||||||
|
{ /* DataFlash card */
|
||||||
|
.modalias = "mtd_dataflash",
|
||||||
|
.chip_select = 3,
|
||||||
|
.max_speed_hz = 15 * 1000 * 1000,
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
static void __init dk_board_init(void)
|
static void __init dk_board_init(void)
|
||||||
{
|
{
|
||||||
|
/* Serial */
|
||||||
|
at91_add_device_serial();
|
||||||
/* Ethernet */
|
/* Ethernet */
|
||||||
at91_add_device_eth(&dk_eth_data);
|
at91_add_device_eth(&dk_eth_data);
|
||||||
/* USB Host */
|
/* USB Host */
|
||||||
at91_add_device_usbh(&dk_usbh_data);
|
at91_add_device_usbh(&dk_usbh_data);
|
||||||
/* USB Device */
|
/* USB Device */
|
||||||
at91_add_device_udc(&dk_udc_data);
|
at91_add_device_udc(&dk_udc_data);
|
||||||
|
at91_set_multi_drive(dk_udc_data.pullup_pin, 1); /* pullup_pin is connected to reset */
|
||||||
/* Compact Flash */
|
/* Compact Flash */
|
||||||
at91_add_device_cf(&dk_cf_data);
|
at91_add_device_cf(&dk_cf_data);
|
||||||
|
/* I2C */
|
||||||
|
at91_add_device_i2c();
|
||||||
|
/* SPI */
|
||||||
|
at91_add_device_spi(dk_spi_devices, ARRAY_SIZE(dk_spi_devices));
|
||||||
#ifdef CONFIG_MTD_AT91_DATAFLASH_CARD
|
#ifdef CONFIG_MTD_AT91_DATAFLASH_CARD
|
||||||
/* DataFlash card */
|
/* DataFlash card */
|
||||||
at91_set_gpio_output(AT91_PIN_PB7, 0);
|
at91_set_gpio_output(AT91_PIN_PB7, 0);
|
||||||
|
|
|
@ -0,0 +1,130 @@
|
||||||
|
/*
|
||||||
|
* linux/arch/arm/mach-at91rm9200/board-eb9200.c
|
||||||
|
*
|
||||||
|
* Copyright (C) 2005 SAN People, adapted for ATEB9200 from Embest
|
||||||
|
* by Andrew Patrikalakis
|
||||||
|
*
|
||||||
|
* 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/config.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/mm.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/device.h>
|
||||||
|
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/setup.h>
|
||||||
|
#include <asm/mach-types.h>
|
||||||
|
#include <asm/irq.h>
|
||||||
|
|
||||||
|
#include <asm/mach/arch.h>
|
||||||
|
#include <asm/mach/map.h>
|
||||||
|
#include <asm/mach/irq.h>
|
||||||
|
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/arch/board.h>
|
||||||
|
#include <asm/arch/gpio.h>
|
||||||
|
|
||||||
|
#include "generic.h"
|
||||||
|
|
||||||
|
static void __init eb9200_init_irq(void)
|
||||||
|
{
|
||||||
|
/* Initialize AIC controller */
|
||||||
|
at91rm9200_init_irq(NULL);
|
||||||
|
|
||||||
|
/* Set up the GPIO interrupts */
|
||||||
|
at91_gpio_irq_setup(BGA_GPIO_BANKS);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Serial port configuration.
|
||||||
|
* 0 .. 3 = USART0 .. USART3
|
||||||
|
* 4 = DBGU
|
||||||
|
*/
|
||||||
|
static struct at91_uart_config __initdata eb9200_uart_config = {
|
||||||
|
.console_tty = 0, /* ttyS0 */
|
||||||
|
.nr_tty = 2,
|
||||||
|
.tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init eb9200_map_io(void)
|
||||||
|
{
|
||||||
|
at91rm9200_map_io();
|
||||||
|
|
||||||
|
/* Initialize clocks: 18.432 MHz crystal */
|
||||||
|
at91_clock_init(18432000);
|
||||||
|
|
||||||
|
/* Setup the serial ports and console */
|
||||||
|
at91_init_serial(&eb9200_uart_config);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct at91_eth_data __initdata eb9200_eth_data = {
|
||||||
|
.phy_irq_pin = AT91_PIN_PC4,
|
||||||
|
.is_rmii = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_usbh_data __initdata eb9200_usbh_data = {
|
||||||
|
.ports = 2,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_udc_data __initdata eb9200_udc_data = {
|
||||||
|
.vbus_pin = AT91_PIN_PD4,
|
||||||
|
.pullup_pin = AT91_PIN_PD5,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_cf_data __initdata eb9200_cf_data = {
|
||||||
|
.det_pin = AT91_PIN_PB0,
|
||||||
|
.rst_pin = AT91_PIN_PC5,
|
||||||
|
// .irq_pin = ... not connected
|
||||||
|
// .vcc_pin = ... always powered
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_mmc_data __initdata eb9200_mmc_data = {
|
||||||
|
.is_b = 0,
|
||||||
|
.wire4 = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init eb9200_board_init(void)
|
||||||
|
{
|
||||||
|
/* Serial */
|
||||||
|
at91_add_device_serial();
|
||||||
|
/* Ethernet */
|
||||||
|
at91_add_device_eth(&eb9200_eth_data);
|
||||||
|
/* USB Host */
|
||||||
|
at91_add_device_usbh(&eb9200_usbh_data);
|
||||||
|
/* USB Device */
|
||||||
|
at91_add_device_udc(&eb9200_udc_data);
|
||||||
|
/* I2C */
|
||||||
|
at91_add_device_i2c();
|
||||||
|
/* Compact Flash */
|
||||||
|
at91_add_device_cf(&eb9200_cf_data);
|
||||||
|
/* SPI */
|
||||||
|
at91_add_device_spi(NULL, 0);
|
||||||
|
/* MMC */
|
||||||
|
/* only supports 1 or 4 bit interface, not wired through to SPI */
|
||||||
|
at91_add_device_mmc(&eb9200_mmc_data);
|
||||||
|
}
|
||||||
|
|
||||||
|
MACHINE_START(ATEB9200, "Embest ATEB9200")
|
||||||
|
.phys_io = AT91_BASE_SYS,
|
||||||
|
.io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc,
|
||||||
|
.boot_params = AT91_SDRAM_BASE + 0x100,
|
||||||
|
.timer = &at91rm9200_timer,
|
||||||
|
.map_io = eb9200_map_io,
|
||||||
|
.init_irq = eb9200_init_irq,
|
||||||
|
.init_machine = eb9200_board_init,
|
||||||
|
MACHINE_END
|
|
@ -27,6 +27,7 @@
|
||||||
#include <linux/mm.h>
|
#include <linux/mm.h>
|
||||||
#include <linux/module.h>
|
#include <linux/module.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
|
#include <linux/spi/spi.h>
|
||||||
|
|
||||||
#include <asm/hardware.h>
|
#include <asm/hardware.h>
|
||||||
#include <asm/setup.h>
|
#include <asm/setup.h>
|
||||||
|
@ -37,9 +38,9 @@
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
#include <asm/mach/irq.h>
|
#include <asm/mach/irq.h>
|
||||||
|
|
||||||
#include <asm/arch/hardware.h>
|
#include <asm/hardware.h>
|
||||||
#include <asm/mach/serial_at91rm9200.h>
|
|
||||||
#include <asm/arch/board.h>
|
#include <asm/arch/board.h>
|
||||||
|
#include <asm/arch/gpio.h>
|
||||||
|
|
||||||
#include "generic.h"
|
#include "generic.h"
|
||||||
|
|
||||||
|
@ -57,14 +58,14 @@ static void __init ek_init_irq(void)
|
||||||
* 0 .. 3 = USART0 .. USART3
|
* 0 .. 3 = USART0 .. USART3
|
||||||
* 4 = DBGU
|
* 4 = DBGU
|
||||||
*/
|
*/
|
||||||
#define EK_UART_MAP { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */
|
static struct at91_uart_config __initdata ek_uart_config = {
|
||||||
#define EK_SERIAL_CONSOLE 0 /* ttyS0 */
|
.console_tty = 0, /* ttyS0 */
|
||||||
|
.nr_tty = 2,
|
||||||
|
.tty_map = { 4, 1, -1, -1, -1 } /* ttyS0, ..., ttyS4 */
|
||||||
|
};
|
||||||
|
|
||||||
static void __init ek_map_io(void)
|
static void __init ek_map_io(void)
|
||||||
{
|
{
|
||||||
int serial[AT91_NR_UART] = EK_UART_MAP;
|
|
||||||
int i;
|
|
||||||
|
|
||||||
at91rm9200_map_io();
|
at91rm9200_map_io();
|
||||||
|
|
||||||
/* Initialize clocks: 18.432 MHz crystal */
|
/* Initialize clocks: 18.432 MHz crystal */
|
||||||
|
@ -73,16 +74,8 @@ static void __init ek_map_io(void)
|
||||||
/* Setup the LEDs */
|
/* Setup the LEDs */
|
||||||
at91_init_leds(AT91_PIN_PB1, AT91_PIN_PB2);
|
at91_init_leds(AT91_PIN_PB1, AT91_PIN_PB2);
|
||||||
|
|
||||||
#ifdef CONFIG_SERIAL_AT91
|
/* Setup the serial ports and console */
|
||||||
at91_console_port = EK_SERIAL_CONSOLE;
|
at91_init_serial(&ek_uart_config);
|
||||||
memcpy(at91_serial_map, serial, sizeof(serial));
|
|
||||||
|
|
||||||
/* Register UARTs */
|
|
||||||
for (i = 0; i < AT91_NR_UART; i++) {
|
|
||||||
if (serial[i] >= 0)
|
|
||||||
at91_register_uart(i, serial[i]);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct at91_eth_data __initdata ek_eth_data = {
|
static struct at91_eth_data __initdata ek_eth_data = {
|
||||||
|
@ -106,14 +99,36 @@ static struct at91_mmc_data __initdata ek_mmc_data = {
|
||||||
.wp_pin = AT91_PIN_PA17,
|
.wp_pin = AT91_PIN_PA17,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
static struct spi_board_info ek_spi_devices[] = {
|
||||||
|
{ /* DataFlash chip */
|
||||||
|
.modalias = "mtd_dataflash",
|
||||||
|
.chip_select = 0,
|
||||||
|
.max_speed_hz = 15 * 1000 * 1000,
|
||||||
|
},
|
||||||
|
#ifdef CONFIG_MTD_AT91_DATAFLASH_CARD
|
||||||
|
{ /* DataFlash card */
|
||||||
|
.modalias = "mtd_dataflash",
|
||||||
|
.chip_select = 3,
|
||||||
|
.max_speed_hz = 15 * 1000 * 1000,
|
||||||
|
},
|
||||||
|
#endif
|
||||||
|
};
|
||||||
|
|
||||||
static void __init ek_board_init(void)
|
static void __init ek_board_init(void)
|
||||||
{
|
{
|
||||||
|
/* Serial */
|
||||||
|
at91_add_device_serial();
|
||||||
/* Ethernet */
|
/* Ethernet */
|
||||||
at91_add_device_eth(&ek_eth_data);
|
at91_add_device_eth(&ek_eth_data);
|
||||||
/* USB Host */
|
/* USB Host */
|
||||||
at91_add_device_usbh(&ek_usbh_data);
|
at91_add_device_usbh(&ek_usbh_data);
|
||||||
/* USB Device */
|
/* USB Device */
|
||||||
at91_add_device_udc(&ek_udc_data);
|
at91_add_device_udc(&ek_udc_data);
|
||||||
|
at91_set_multi_drive(ek_udc_data.pullup_pin, 1); /* pullup_pin is connected to reset */
|
||||||
|
/* I2C */
|
||||||
|
at91_add_device_i2c();
|
||||||
|
/* SPI */
|
||||||
|
at91_add_device_spi(ek_spi_devices, ARRAY_SIZE(ek_spi_devices));
|
||||||
#ifdef CONFIG_MTD_AT91_DATAFLASH_CARD
|
#ifdef CONFIG_MTD_AT91_DATAFLASH_CARD
|
||||||
/* DataFlash card */
|
/* DataFlash card */
|
||||||
at91_set_gpio_output(AT91_PIN_PB22, 0);
|
at91_set_gpio_output(AT91_PIN_PB22, 0);
|
||||||
|
|
|
@ -0,0 +1,116 @@
|
||||||
|
/*
|
||||||
|
* linux/arch/arm/mach-at91rm9200/board-kafa.c
|
||||||
|
*
|
||||||
|
* Copyright (C) 2006 Sperry-Sun
|
||||||
|
*
|
||||||
|
* 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/config.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/mm.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/platform_device.h>
|
||||||
|
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/setup.h>
|
||||||
|
#include <asm/mach-types.h>
|
||||||
|
#include <asm/irq.h>
|
||||||
|
|
||||||
|
#include <asm/mach/arch.h>
|
||||||
|
#include <asm/mach/map.h>
|
||||||
|
#include <asm/mach/irq.h>
|
||||||
|
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/arch/board.h>
|
||||||
|
#include <asm/arch/gpio.h>
|
||||||
|
|
||||||
|
#include "generic.h"
|
||||||
|
|
||||||
|
static void __init kafa_init_irq(void)
|
||||||
|
{
|
||||||
|
/* Initialize AIC controller */
|
||||||
|
at91rm9200_init_irq(NULL);
|
||||||
|
|
||||||
|
/* Set up the GPIO interrupts */
|
||||||
|
at91_gpio_irq_setup(PQFP_GPIO_BANKS);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Serial port configuration.
|
||||||
|
* 0 .. 3 = USART0 .. USART3
|
||||||
|
* 4 = DBGU
|
||||||
|
*/
|
||||||
|
static struct at91_uart_config __initdata kafa_uart_config = {
|
||||||
|
.console_tty = 0, /* ttyS0 */
|
||||||
|
.nr_tty = 2,
|
||||||
|
.tty_map = { 4, 0, -1, -1, -1 } /* ttyS0, ..., ttyS4 */
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init kafa_map_io(void)
|
||||||
|
{
|
||||||
|
at91rm9200_map_io();
|
||||||
|
|
||||||
|
/* Initialize clocks: 18.432 MHz crystal */
|
||||||
|
at91_clock_init(18432000);
|
||||||
|
|
||||||
|
/* Set up the LEDs */
|
||||||
|
at91_init_leds(AT91_PIN_PB4, AT91_PIN_PB4);
|
||||||
|
|
||||||
|
/* Setup the serial ports and console */
|
||||||
|
at91_init_serial(&kafa_uart_config);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct at91_eth_data __initdata kafa_eth_data = {
|
||||||
|
.phy_irq_pin = AT91_PIN_PC4,
|
||||||
|
.is_rmii = 0,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_usbh_data __initdata kafa_usbh_data = {
|
||||||
|
.ports = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_udc_data __initdata kafa_udc_data = {
|
||||||
|
.vbus_pin = AT91_PIN_PB6,
|
||||||
|
.pullup_pin = AT91_PIN_PB7,
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init kafa_board_init(void)
|
||||||
|
{
|
||||||
|
/* Serial */
|
||||||
|
at91_add_device_serial();
|
||||||
|
/* Ethernet */
|
||||||
|
at91_add_device_eth(&kafa_eth_data);
|
||||||
|
/* USB Host */
|
||||||
|
at91_add_device_usbh(&kafa_usbh_data);
|
||||||
|
/* USB Device */
|
||||||
|
at91_add_device_udc(&kafa_udc_data);
|
||||||
|
/* I2C */
|
||||||
|
at91_add_device_i2c();
|
||||||
|
/* SPI */
|
||||||
|
at91_add_device_spi(NULL, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
MACHINE_START(KAFA, "Sperry-Sun KAFA")
|
||||||
|
/* Maintainer: Sergei Sharonov */
|
||||||
|
.phys_io = AT91_BASE_SYS,
|
||||||
|
.io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc,
|
||||||
|
.boot_params = AT91_SDRAM_BASE + 0x100,
|
||||||
|
.timer = &at91rm9200_timer,
|
||||||
|
.map_io = kafa_map_io,
|
||||||
|
.init_irq = kafa_init_irq,
|
||||||
|
.init_machine = kafa_board_init,
|
||||||
|
MACHINE_END
|
|
@ -0,0 +1,125 @@
|
||||||
|
/*
|
||||||
|
* linux/arch/arm/mach-at91rm9200/board-kb9202.c
|
||||||
|
*
|
||||||
|
* Copyright (c) 2005 kb_admin
|
||||||
|
* KwikByte, Inc.
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation; either version 2 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* 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/config.h>
|
||||||
|
#include <linux/types.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/mm.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/platform_device.h>
|
||||||
|
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/setup.h>
|
||||||
|
#include <asm/mach-types.h>
|
||||||
|
#include <asm/irq.h>
|
||||||
|
|
||||||
|
#include <asm/mach/arch.h>
|
||||||
|
#include <asm/mach/map.h>
|
||||||
|
#include <asm/mach/irq.h>
|
||||||
|
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/arch/board.h>
|
||||||
|
#include <asm/arch/gpio.h>
|
||||||
|
|
||||||
|
#include "generic.h"
|
||||||
|
|
||||||
|
static void __init kb9202_init_irq(void)
|
||||||
|
{
|
||||||
|
/* Initialize AIC controller */
|
||||||
|
at91rm9200_init_irq(NULL);
|
||||||
|
|
||||||
|
/* Set up the GPIO interrupts */
|
||||||
|
at91_gpio_irq_setup(PQFP_GPIO_BANKS);
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Serial port configuration.
|
||||||
|
* 0 .. 3 = USART0 .. USART3
|
||||||
|
* 4 = DBGU
|
||||||
|
*/
|
||||||
|
static struct at91_uart_config __initdata kb9202_uart_config = {
|
||||||
|
.console_tty = 0, /* ttyS0 */
|
||||||
|
.nr_tty = 3,
|
||||||
|
.tty_map = { 4, 0, 1, -1, -1 } /* ttyS0, ..., ttyS4 */
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init kb9202_map_io(void)
|
||||||
|
{
|
||||||
|
at91rm9200_map_io();
|
||||||
|
|
||||||
|
/* Initialize clocks: 10 MHz crystal */
|
||||||
|
at91_clock_init(10000000);
|
||||||
|
|
||||||
|
/* Set up the LEDs */
|
||||||
|
at91_init_leds(AT91_PIN_PC19, AT91_PIN_PC18);
|
||||||
|
|
||||||
|
/* Setup the serial ports and console */
|
||||||
|
at91_init_serial(&kb9202_uart_config);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct at91_eth_data __initdata kb9202_eth_data = {
|
||||||
|
.phy_irq_pin = AT91_PIN_PB29,
|
||||||
|
.is_rmii = 0,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_usbh_data __initdata kb9202_usbh_data = {
|
||||||
|
.ports = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_udc_data __initdata kb9202_udc_data = {
|
||||||
|
.vbus_pin = AT91_PIN_PB24,
|
||||||
|
.pullup_pin = AT91_PIN_PB22,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_mmc_data __initdata kb9202_mmc_data = {
|
||||||
|
.det_pin = AT91_PIN_PB2,
|
||||||
|
.is_b = 0,
|
||||||
|
.wire4 = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init kb9202_board_init(void)
|
||||||
|
{
|
||||||
|
/* Serial */
|
||||||
|
at91_add_device_serial();
|
||||||
|
/* Ethernet */
|
||||||
|
at91_add_device_eth(&kb9202_eth_data);
|
||||||
|
/* USB Host */
|
||||||
|
at91_add_device_usbh(&kb9202_usbh_data);
|
||||||
|
/* USB Device */
|
||||||
|
at91_add_device_udc(&kb9202_udc_data);
|
||||||
|
/* MMC */
|
||||||
|
at91_add_device_mmc(&kb9202_mmc_data);
|
||||||
|
/* I2C */
|
||||||
|
at91_add_device_i2c();
|
||||||
|
/* SPI */
|
||||||
|
at91_add_device_spi(NULL, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
MACHINE_START(KB9200, "KB920x")
|
||||||
|
/* Maintainer: KwikByte, Inc. */
|
||||||
|
.phys_io = AT91_BASE_SYS,
|
||||||
|
.io_pg_offst = (AT91_VA_BASE_SYS >> 18) & 0xfffc,
|
||||||
|
.boot_params = AT91_SDRAM_BASE + 0x100,
|
||||||
|
.timer = &at91rm9200_timer,
|
||||||
|
.map_io = kb9202_map_io,
|
||||||
|
.init_irq = kb9202_init_irq,
|
||||||
|
.init_machine = kb9202_board_init,
|
||||||
|
MACHINE_END
|
|
@ -27,12 +27,10 @@
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/mach-types.h>
|
#include <asm/mach-types.h>
|
||||||
|
|
||||||
#include <asm/arch/hardware.h>
|
#include <asm/hardware.h>
|
||||||
#include <asm/arch/board.h> /* for master clock global */
|
|
||||||
|
|
||||||
#include "generic.h"
|
#include "generic.h"
|
||||||
|
|
||||||
#undef DEBUG
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* There's a lot more which can be done with clocks, including cpufreq
|
* There's a lot more which can be done with clocks, including cpufreq
|
||||||
|
@ -41,7 +39,9 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
struct clk {
|
struct clk {
|
||||||
const char *name;
|
const char *name; /* unique clock name */
|
||||||
|
const char *function; /* function of the clock */
|
||||||
|
struct device *dev; /* device associated with function */
|
||||||
unsigned long rate_hz;
|
unsigned long rate_hz;
|
||||||
struct clk *parent;
|
struct clk *parent;
|
||||||
u32 pmc_mask;
|
u32 pmc_mask;
|
||||||
|
@ -71,15 +71,14 @@ static struct clk clk32k = {
|
||||||
};
|
};
|
||||||
static struct clk main_clk = {
|
static struct clk main_clk = {
|
||||||
.name = "main",
|
.name = "main",
|
||||||
.pmc_mask = 1 << 0, /* in PMC_SR */
|
.pmc_mask = AT91_PMC_MOSCS, /* in PMC_SR */
|
||||||
.users = 1,
|
|
||||||
.id = 1,
|
.id = 1,
|
||||||
.primary = 1,
|
.primary = 1,
|
||||||
};
|
};
|
||||||
static struct clk plla = {
|
static struct clk plla = {
|
||||||
.name = "plla",
|
.name = "plla",
|
||||||
.parent = &main_clk,
|
.parent = &main_clk,
|
||||||
.pmc_mask = 1 << 1, /* in PMC_SR */
|
.pmc_mask = AT91_PMC_LOCKA, /* in PMC_SR */
|
||||||
.id = 2,
|
.id = 2,
|
||||||
.primary = 1,
|
.primary = 1,
|
||||||
.pll = 1,
|
.pll = 1,
|
||||||
|
@ -105,7 +104,7 @@ static void pllb_mode(struct clk *clk, int is_on)
|
||||||
static struct clk pllb = {
|
static struct clk pllb = {
|
||||||
.name = "pllb",
|
.name = "pllb",
|
||||||
.parent = &main_clk,
|
.parent = &main_clk,
|
||||||
.pmc_mask = 1 << 2, /* in PMC_SR */
|
.pmc_mask = AT91_PMC_LOCKB, /* in PMC_SR */
|
||||||
.mode = pllb_mode,
|
.mode = pllb_mode,
|
||||||
.id = 3,
|
.id = 3,
|
||||||
.primary = 1,
|
.primary = 1,
|
||||||
|
@ -177,8 +176,7 @@ static struct clk pck3 = {
|
||||||
*/
|
*/
|
||||||
static struct clk mck = {
|
static struct clk mck = {
|
||||||
.name = "mck",
|
.name = "mck",
|
||||||
.pmc_mask = 1 << 3, /* in PMC_SR */
|
.pmc_mask = AT91_PMC_MCKRDY, /* in PMC_SR */
|
||||||
.users = 1, /* (must be) always on */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static void pmc_periph_mode(struct clk *clk, int is_on)
|
static void pmc_periph_mode(struct clk *clk, int is_on)
|
||||||
|
@ -249,6 +247,30 @@ static struct clk spi_clk = {
|
||||||
.pmc_mask = 1 << AT91_ID_SPI,
|
.pmc_mask = 1 << AT91_ID_SPI,
|
||||||
.mode = pmc_periph_mode,
|
.mode = pmc_periph_mode,
|
||||||
};
|
};
|
||||||
|
static struct clk pioA_clk = {
|
||||||
|
.name = "pioA_clk",
|
||||||
|
.parent = &mck,
|
||||||
|
.pmc_mask = 1 << AT91_ID_PIOA,
|
||||||
|
.mode = pmc_periph_mode,
|
||||||
|
};
|
||||||
|
static struct clk pioB_clk = {
|
||||||
|
.name = "pioB_clk",
|
||||||
|
.parent = &mck,
|
||||||
|
.pmc_mask = 1 << AT91_ID_PIOB,
|
||||||
|
.mode = pmc_periph_mode,
|
||||||
|
};
|
||||||
|
static struct clk pioC_clk = {
|
||||||
|
.name = "pioC_clk",
|
||||||
|
.parent = &mck,
|
||||||
|
.pmc_mask = 1 << AT91_ID_PIOC,
|
||||||
|
.mode = pmc_periph_mode,
|
||||||
|
};
|
||||||
|
static struct clk pioD_clk = {
|
||||||
|
.name = "pioD_clk",
|
||||||
|
.parent = &mck,
|
||||||
|
.pmc_mask = 1 << AT91_ID_PIOD,
|
||||||
|
.mode = pmc_periph_mode,
|
||||||
|
};
|
||||||
|
|
||||||
static struct clk *const clock_list[] = {
|
static struct clk *const clock_list[] = {
|
||||||
/* four primary clocks -- MUST BE FIRST! */
|
/* four primary clocks -- MUST BE FIRST! */
|
||||||
|
@ -279,21 +301,46 @@ static struct clk *const clock_list[] = {
|
||||||
&udc_clk,
|
&udc_clk,
|
||||||
&twi_clk,
|
&twi_clk,
|
||||||
&spi_clk,
|
&spi_clk,
|
||||||
|
&pioA_clk,
|
||||||
|
&pioB_clk,
|
||||||
|
&pioC_clk,
|
||||||
|
&pioD_clk,
|
||||||
// ssc0..ssc2
|
// ssc0..ssc2
|
||||||
// tc0..tc5
|
// tc0..tc5
|
||||||
|
// irq0..irq6
|
||||||
&ohci_clk,
|
&ohci_clk,
|
||||||
ðer_clk,
|
ðer_clk,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Associate a particular clock with a function (eg, "uart") and device.
|
||||||
|
* The drivers can then request the same 'function' with several different
|
||||||
|
* devices and not care about which clock name to use.
|
||||||
|
*/
|
||||||
|
void __init at91_clock_associate(const char *id, struct device *dev, const char *func)
|
||||||
|
{
|
||||||
|
struct clk *clk = clk_get(NULL, id);
|
||||||
|
|
||||||
|
if (!dev || !clk || !IS_ERR(clk_get(dev, func)))
|
||||||
|
return;
|
||||||
|
|
||||||
|
clk->function = func;
|
||||||
|
clk->dev = dev;
|
||||||
|
}
|
||||||
|
|
||||||
/* clocks are all static for now; no refcounting necessary */
|
/* clocks are all static for now; no refcounting necessary */
|
||||||
struct clk *clk_get(struct device *dev, const char *id)
|
struct clk *clk_get(struct device *dev, const char *id)
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < ARRAY_SIZE(clock_list); i++) {
|
for (i = 0; i < ARRAY_SIZE(clock_list); i++) {
|
||||||
if (strcmp(id, clock_list[i]->name) == 0)
|
struct clk *clk = clock_list[i];
|
||||||
return clock_list[i];
|
|
||||||
|
if (strcmp(id, clk->name) == 0)
|
||||||
|
return clk;
|
||||||
|
if (clk->function && (dev == clk->dev) && strcmp(id, clk->function) == 0)
|
||||||
|
return clk;
|
||||||
}
|
}
|
||||||
|
|
||||||
return ERR_PTR(-ENOENT);
|
return ERR_PTR(-ENOENT);
|
||||||
|
@ -593,6 +640,30 @@ fail:
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Several unused clocks may be active. Turn them off.
|
||||||
|
*/
|
||||||
|
static void at91_periphclk_reset(void)
|
||||||
|
{
|
||||||
|
unsigned long reg;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
reg = at91_sys_read(AT91_PMC_PCSR);
|
||||||
|
|
||||||
|
for (i = 0; i < ARRAY_SIZE(clock_list); i++) {
|
||||||
|
struct clk *clk = clock_list[i];
|
||||||
|
|
||||||
|
if (clk->mode != pmc_periph_mode)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
if (clk->users > 0)
|
||||||
|
reg &= ~clk->pmc_mask;
|
||||||
|
}
|
||||||
|
|
||||||
|
at91_sys_write(AT91_PMC_PCDR, reg);
|
||||||
|
}
|
||||||
|
|
||||||
int __init at91_clock_init(unsigned long main_clock)
|
int __init at91_clock_init(unsigned long main_clock)
|
||||||
{
|
{
|
||||||
unsigned tmp, freq, mckr;
|
unsigned tmp, freq, mckr;
|
||||||
|
@ -626,7 +697,6 @@ int __init at91_clock_init(unsigned long main_clock)
|
||||||
*/
|
*/
|
||||||
at91_pllb_usb_init = at91_pll_calc(main_clock, 48000000 * 2) | AT91_PMC_USB96M;
|
at91_pllb_usb_init = at91_pll_calc(main_clock, 48000000 * 2) | AT91_PMC_USB96M;
|
||||||
pllb.rate_hz = at91_pll_rate(&pllb, main_clock, at91_pllb_usb_init);
|
pllb.rate_hz = at91_pll_rate(&pllb, main_clock, at91_pllb_usb_init);
|
||||||
at91_sys_write(AT91_PMC_PCDR, (1 << AT91_ID_UHP) | (1 << AT91_ID_UDP));
|
|
||||||
at91_sys_write(AT91_PMC_SCDR, AT91_PMC_UHP | AT91_PMC_UDP);
|
at91_sys_write(AT91_PMC_SCDR, AT91_PMC_UHP | AT91_PMC_UDP);
|
||||||
at91_sys_write(AT91_CKGR_PLLBR, 0);
|
at91_sys_write(AT91_CKGR_PLLBR, 0);
|
||||||
at91_sys_write(AT91_PMC_SCER, AT91_PMC_MCKUDP);
|
at91_sys_write(AT91_PMC_SCER, AT91_PMC_MCKUDP);
|
||||||
|
@ -640,19 +710,18 @@ int __init at91_clock_init(unsigned long main_clock)
|
||||||
*/
|
*/
|
||||||
mckr = at91_sys_read(AT91_PMC_MCKR);
|
mckr = at91_sys_read(AT91_PMC_MCKR);
|
||||||
mck.parent = clock_list[mckr & AT91_PMC_CSS];
|
mck.parent = clock_list[mckr & AT91_PMC_CSS];
|
||||||
mck.parent->users++;
|
|
||||||
freq = mck.parent->rate_hz;
|
freq = mck.parent->rate_hz;
|
||||||
freq /= (1 << ((mckr >> 2) & 3)); /* prescale */
|
freq /= (1 << ((mckr >> 2) & 3)); /* prescale */
|
||||||
mck.rate_hz = freq / (1 + ((mckr >> 8) & 3)); /* mdiv */
|
mck.rate_hz = freq / (1 + ((mckr >> 8) & 3)); /* mdiv */
|
||||||
|
|
||||||
|
/* MCK and CPU clock are "always on" */
|
||||||
|
clk_enable(&mck);
|
||||||
|
|
||||||
printk("Clocks: CPU %u MHz, master %u MHz, main %u.%03u MHz\n",
|
printk("Clocks: CPU %u MHz, master %u MHz, main %u.%03u MHz\n",
|
||||||
freq / 1000000, (unsigned) mck.rate_hz / 1000000,
|
freq / 1000000, (unsigned) mck.rate_hz / 1000000,
|
||||||
(unsigned) main_clock / 1000000,
|
(unsigned) main_clock / 1000000,
|
||||||
((unsigned) main_clock % 1000000) / 1000);
|
((unsigned) main_clock % 1000000) / 1000);
|
||||||
|
|
||||||
/* FIXME get rid of master_clock global */
|
|
||||||
at91_master_clock = mck.rate_hz;
|
|
||||||
|
|
||||||
#ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS
|
#ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS
|
||||||
/* establish PCK0..PCK3 parentage */
|
/* establish PCK0..PCK3 parentage */
|
||||||
for (tmp = 0; tmp < ARRAY_SIZE(clock_list); tmp++) {
|
for (tmp = 0; tmp < ARRAY_SIZE(clock_list); tmp++) {
|
||||||
|
@ -663,19 +732,28 @@ int __init at91_clock_init(unsigned long main_clock)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
pckr = at91_sys_read(AT91_PMC_PCKR(clk->id));
|
pckr = at91_sys_read(AT91_PMC_PCKR(clk->id));
|
||||||
parent = clock_list[pckr & 3];
|
parent = clock_list[pckr & AT91_PMC_CSS];
|
||||||
clk->parent = parent;
|
clk->parent = parent;
|
||||||
clk->rate_hz = parent->rate_hz / (1 << ((pckr >> 2) & 3));
|
clk->rate_hz = parent->rate_hz / (1 << ((pckr >> 2) & 3));
|
||||||
|
|
||||||
|
if (clk->users == 0) {
|
||||||
|
/* not being used, so switch it off */
|
||||||
|
at91_sys_write(AT91_PMC_SCDR, clk->pmc_mask);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
/* disable unused clocks */
|
/* disable all programmable clocks */
|
||||||
at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK0 | AT91_PMC_PCK1 | AT91_PMC_PCK2 | AT91_PMC_PCK3);
|
at91_sys_write(AT91_PMC_SCDR, AT91_PMC_PCK0 | AT91_PMC_PCK1 | AT91_PMC_PCK2 | AT91_PMC_PCK3);
|
||||||
#endif /* CONFIG_AT91_PROGRAMMABLE_CLOCKS */
|
#endif
|
||||||
|
|
||||||
/* FIXME several unused clocks may still be active... provide
|
/* enable the PIO clocks */
|
||||||
* a CONFIG option to turn off all unused clocks at some point
|
clk_enable(&pioA_clk);
|
||||||
* before driver init starts.
|
clk_enable(&pioB_clk);
|
||||||
*/
|
clk_enable(&pioC_clk);
|
||||||
|
clk_enable(&pioD_clk);
|
||||||
|
|
||||||
|
/* disable all other unused peripheral clocks */
|
||||||
|
at91_periphclk_reset();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,8 @@
|
||||||
#include <asm/mach/arch.h>
|
#include <asm/mach/arch.h>
|
||||||
#include <asm/mach/map.h>
|
#include <asm/mach/map.h>
|
||||||
|
|
||||||
#include <asm/arch/hardware.h>
|
#include <asm/hardware.h>
|
||||||
|
#include "generic.h"
|
||||||
|
|
||||||
static struct map_desc at91rm9200_io_desc[] __initdata = {
|
static struct map_desc at91rm9200_io_desc[] __initdata = {
|
||||||
{
|
{
|
||||||
|
@ -94,6 +95,11 @@ static struct map_desc at91rm9200_io_desc[] __initdata = {
|
||||||
.pfn = __phys_to_pfn(AT91_BASE_TCB0),
|
.pfn = __phys_to_pfn(AT91_BASE_TCB0),
|
||||||
.length = SZ_16K,
|
.length = SZ_16K,
|
||||||
.type = MT_DEVICE,
|
.type = MT_DEVICE,
|
||||||
|
}, {
|
||||||
|
.virtual = AT91_SRAM_VIRT_BASE,
|
||||||
|
.pfn = __phys_to_pfn(AT91_SRAM_BASE),
|
||||||
|
.length = AT91_SRAM_SIZE,
|
||||||
|
.type = MT_DEVICE,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -102,14 +108,3 @@ void __init at91rm9200_map_io(void)
|
||||||
iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc));
|
iotable_init(at91rm9200_io_desc, ARRAY_SIZE(at91rm9200_io_desc));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
unsigned long at91_master_clock;
|
|
||||||
|
|
||||||
EXPORT_SYMBOL(at91_master_clock);
|
|
||||||
|
|
||||||
|
|
||||||
int at91_serial_map[AT91_NR_UART];
|
|
||||||
int at91_console_port;
|
|
||||||
|
|
||||||
EXPORT_SYMBOL(at91_serial_map);
|
|
||||||
EXPORT_SYMBOL(at91_console_port);
|
|
||||||
|
|
|
@ -16,9 +16,15 @@
|
||||||
#include <linux/config.h>
|
#include <linux/config.h>
|
||||||
#include <linux/platform_device.h>
|
#include <linux/platform_device.h>
|
||||||
|
|
||||||
|
#include <asm/hardware.h>
|
||||||
#include <asm/arch/board.h>
|
#include <asm/arch/board.h>
|
||||||
#include <asm/arch/pio.h>
|
#include <asm/arch/gpio.h>
|
||||||
|
|
||||||
|
#include "generic.h"
|
||||||
|
|
||||||
|
#define SZ_512 0x00000200
|
||||||
|
#define SZ_256 0x00000100
|
||||||
|
#define SZ_16 0x00000010
|
||||||
|
|
||||||
/* --------------------------------------------------------------------
|
/* --------------------------------------------------------------------
|
||||||
* USB Host
|
* USB Host
|
||||||
|
@ -28,7 +34,7 @@
|
||||||
static u64 ohci_dmamask = 0xffffffffUL;
|
static u64 ohci_dmamask = 0xffffffffUL;
|
||||||
static struct at91_usbh_data usbh_data;
|
static struct at91_usbh_data usbh_data;
|
||||||
|
|
||||||
static struct resource at91_usbh_resource[] = {
|
static struct resource at91_usbh_resources[] = {
|
||||||
[0] = {
|
[0] = {
|
||||||
.start = AT91_UHP_BASE,
|
.start = AT91_UHP_BASE,
|
||||||
.end = AT91_UHP_BASE + SZ_1M - 1,
|
.end = AT91_UHP_BASE + SZ_1M - 1,
|
||||||
|
@ -42,15 +48,15 @@ static struct resource at91_usbh_resource[] = {
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device at91rm9200_usbh_device = {
|
static struct platform_device at91rm9200_usbh_device = {
|
||||||
.name = "at91rm9200-ohci",
|
.name = "at91_ohci",
|
||||||
.id = -1,
|
.id = -1,
|
||||||
.dev = {
|
.dev = {
|
||||||
.dma_mask = &ohci_dmamask,
|
.dma_mask = &ohci_dmamask,
|
||||||
.coherent_dma_mask = 0xffffffff,
|
.coherent_dma_mask = 0xffffffff,
|
||||||
.platform_data = &usbh_data,
|
.platform_data = &usbh_data,
|
||||||
},
|
},
|
||||||
.resource = at91_usbh_resource,
|
.resource = at91_usbh_resources,
|
||||||
.num_resources = ARRAY_SIZE(at91_usbh_resource),
|
.num_resources = ARRAY_SIZE(at91_usbh_resources),
|
||||||
};
|
};
|
||||||
|
|
||||||
void __init at91_add_device_usbh(struct at91_usbh_data *data)
|
void __init at91_add_device_usbh(struct at91_usbh_data *data)
|
||||||
|
@ -74,11 +80,16 @@ void __init at91_add_device_usbh(struct at91_usbh_data *data) {}
|
||||||
static struct at91_udc_data udc_data;
|
static struct at91_udc_data udc_data;
|
||||||
|
|
||||||
static struct resource at91_udc_resources[] = {
|
static struct resource at91_udc_resources[] = {
|
||||||
{
|
[0] = {
|
||||||
.start = AT91_BASE_UDP,
|
.start = AT91_BASE_UDP,
|
||||||
.end = AT91_BASE_UDP + SZ_16K - 1,
|
.end = AT91_BASE_UDP + SZ_16K - 1,
|
||||||
.flags = IORESOURCE_MEM,
|
.flags = IORESOURCE_MEM,
|
||||||
}
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = AT91_ID_UDP,
|
||||||
|
.end = AT91_ID_UDP,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
static struct platform_device at91rm9200_udc_device = {
|
static struct platform_device at91rm9200_udc_device = {
|
||||||
|
@ -100,10 +111,8 @@ void __init at91_add_device_udc(struct at91_udc_data *data)
|
||||||
at91_set_gpio_input(data->vbus_pin, 0);
|
at91_set_gpio_input(data->vbus_pin, 0);
|
||||||
at91_set_deglitch(data->vbus_pin, 1);
|
at91_set_deglitch(data->vbus_pin, 1);
|
||||||
}
|
}
|
||||||
if (data->pullup_pin) {
|
if (data->pullup_pin)
|
||||||
at91_set_gpio_output(data->pullup_pin, 0);
|
at91_set_gpio_output(data->pullup_pin, 0);
|
||||||
at91_set_multi_drive(data->pullup_pin, 1);
|
|
||||||
}
|
|
||||||
|
|
||||||
udc_data = *data;
|
udc_data = *data;
|
||||||
platform_device_register(&at91rm9200_udc_device);
|
platform_device_register(&at91rm9200_udc_device);
|
||||||
|
@ -197,7 +206,7 @@ static struct at91_cf_data cf_data;
|
||||||
static struct resource at91_cf_resources[] = {
|
static struct resource at91_cf_resources[] = {
|
||||||
[0] = {
|
[0] = {
|
||||||
.start = AT91_CF_BASE,
|
.start = AT91_CF_BASE,
|
||||||
/* ties up CS4, CS5, and CS6 */
|
/* ties up CS4, CS5 and CS6 */
|
||||||
.end = AT91_CF_BASE + (0x30000000 - 1),
|
.end = AT91_CF_BASE + (0x30000000 - 1),
|
||||||
.flags = IORESOURCE_MEM | IORESOURCE_MEM_8AND16BIT,
|
.flags = IORESOURCE_MEM | IORESOURCE_MEM_8AND16BIT,
|
||||||
},
|
},
|
||||||
|
@ -231,6 +240,12 @@ void __init at91_add_device_cf(struct at91_cf_data *data)
|
||||||
at91_set_gpio_output(data->vcc_pin, 0);
|
at91_set_gpio_output(data->vcc_pin, 0);
|
||||||
at91_set_gpio_output(data->rst_pin, 0);
|
at91_set_gpio_output(data->rst_pin, 0);
|
||||||
|
|
||||||
|
/* force poweron defaults for these pins ... */
|
||||||
|
at91_set_A_periph(AT91_PIN_PC9, 0); /* A25/CFRNW */
|
||||||
|
at91_set_A_periph(AT91_PIN_PC10, 0); /* NCS4/CFCS */
|
||||||
|
at91_set_A_periph(AT91_PIN_PC11, 0); /* NCS5/CFCE1 */
|
||||||
|
at91_set_A_periph(AT91_PIN_PC12, 0); /* NCS6/CFCE2 */
|
||||||
|
|
||||||
cf_data = *data;
|
cf_data = *data;
|
||||||
platform_device_register(&at91rm9200_cf_device);
|
platform_device_register(&at91rm9200_cf_device);
|
||||||
}
|
}
|
||||||
|
@ -319,6 +334,7 @@ void __init at91_add_device_mmc(struct at91_mmc_data *data)
|
||||||
void __init at91_add_device_mmc(struct at91_mmc_data *data) {}
|
void __init at91_add_device_mmc(struct at91_mmc_data *data) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------------------------------------------
|
/* --------------------------------------------------------------------
|
||||||
* NAND / SmartMedia
|
* NAND / SmartMedia
|
||||||
* -------------------------------------------------------------------- */
|
* -------------------------------------------------------------------- */
|
||||||
|
@ -399,23 +415,111 @@ void __init at91_add_device_i2c(void) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* --------------------------------------------------------------------
|
||||||
|
* SPI
|
||||||
|
* -------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#if defined(CONFIG_SPI_AT91) || defined(CONFIG_SPI_AT91_MODULE) || defined(CONFIG_AT91_SPI) || defined(CONFIG_AT91_SPI_MODULE)
|
||||||
|
static u64 spi_dmamask = 0xffffffffUL;
|
||||||
|
|
||||||
|
static struct resource at91_spi_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = AT91_BASE_SPI,
|
||||||
|
.end = AT91_BASE_SPI + SZ_16K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = AT91_ID_SPI,
|
||||||
|
.end = AT91_ID_SPI,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device at91rm9200_spi_device = {
|
||||||
|
.name = "at91_spi",
|
||||||
|
.id = 0,
|
||||||
|
.dev = {
|
||||||
|
.dma_mask = &spi_dmamask,
|
||||||
|
.coherent_dma_mask = 0xffffffff,
|
||||||
|
},
|
||||||
|
.resource = at91_spi_resources,
|
||||||
|
.num_resources = ARRAY_SIZE(at91_spi_resources),
|
||||||
|
};
|
||||||
|
|
||||||
|
static const unsigned at91_spi_standard_cs[4] = { AT91_PIN_PA3, AT91_PIN_PA4, AT91_PIN_PA5, AT91_PIN_PA6 };
|
||||||
|
|
||||||
|
void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
unsigned long cs_pin;
|
||||||
|
|
||||||
|
at91_set_A_periph(AT91_PIN_PA0, 0); /* MISO */
|
||||||
|
at91_set_A_periph(AT91_PIN_PA1, 0); /* MOSI */
|
||||||
|
at91_set_A_periph(AT91_PIN_PA2, 0); /* SPCK */
|
||||||
|
|
||||||
|
/* Enable SPI chip-selects */
|
||||||
|
for (i = 0; i < nr_devices; i++) {
|
||||||
|
if (devices[i].controller_data)
|
||||||
|
cs_pin = (unsigned long) devices[i].controller_data;
|
||||||
|
else
|
||||||
|
cs_pin = at91_spi_standard_cs[devices[i].chip_select];
|
||||||
|
|
||||||
|
#ifdef CONFIG_SPI_AT91_MANUAL_CS
|
||||||
|
at91_set_gpio_output(cs_pin, 1);
|
||||||
|
#else
|
||||||
|
at91_set_A_periph(cs_pin, 0);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* pass chip-select pin to driver */
|
||||||
|
devices[i].controller_data = (void *) cs_pin;
|
||||||
|
}
|
||||||
|
|
||||||
|
spi_register_board_info(devices, nr_devices);
|
||||||
|
at91_clock_associate("spi0_clk", &at91rm9200_spi_device.dev, "spi");
|
||||||
|
platform_device_register(&at91rm9200_spi_device);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
void __init at91_add_device_spi(struct spi_board_info *devices, int nr_devices) {}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* --------------------------------------------------------------------
|
/* --------------------------------------------------------------------
|
||||||
* RTC
|
* RTC
|
||||||
* -------------------------------------------------------------------- */
|
* -------------------------------------------------------------------- */
|
||||||
|
|
||||||
#if defined(CONFIG_AT91_RTC) || defined(CONFIG_AT91_RTC_MODULE)
|
#if defined(CONFIG_RTC_DRV_AT91) || defined(CONFIG_RTC_DRV_AT91_MODULE)
|
||||||
static struct platform_device at91rm9200_rtc_device = {
|
static struct platform_device at91rm9200_rtc_device = {
|
||||||
.name = "at91_rtc",
|
.name = "at91_rtc",
|
||||||
.id = -1,
|
.id = -1,
|
||||||
.num_resources = 0,
|
.num_resources = 0,
|
||||||
};
|
};
|
||||||
|
|
||||||
void __init at91_add_device_rtc(void)
|
static void __init at91_add_device_rtc(void)
|
||||||
{
|
{
|
||||||
platform_device_register(&at91rm9200_rtc_device);
|
platform_device_register(&at91rm9200_rtc_device);
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
void __init at91_add_device_rtc(void) {}
|
static void __init at91_add_device_rtc(void) {}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* --------------------------------------------------------------------
|
||||||
|
* Watchdog
|
||||||
|
* -------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#if defined(CONFIG_AT91_WATCHDOG) || defined(CONFIG_AT91_WATCHDOG_MODULE)
|
||||||
|
static struct platform_device at91rm9200_wdt_device = {
|
||||||
|
.name = "at91_wdt",
|
||||||
|
.id = -1,
|
||||||
|
.num_resources = 0,
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init at91_add_device_watchdog(void)
|
||||||
|
{
|
||||||
|
platform_device_register(&at91rm9200_wdt_device);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
static void __init at91_add_device_watchdog(void) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
@ -429,13 +533,281 @@ u8 at91_leds_timer;
|
||||||
|
|
||||||
void __init at91_init_leds(u8 cpu_led, u8 timer_led)
|
void __init at91_init_leds(u8 cpu_led, u8 timer_led)
|
||||||
{
|
{
|
||||||
at91_leds_cpu = cpu_led;
|
at91_leds_cpu = cpu_led;
|
||||||
at91_leds_timer = timer_led;
|
at91_leds_timer = timer_led;
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
void __init at91_init_leds(u8 cpu_led, u8 timer_led) {}
|
void __init at91_init_leds(u8 cpu_led, u8 timer_led) {}
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
/* --------------------------------------------------------------------
|
||||||
|
* UART
|
||||||
|
* -------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
#if defined(CONFIG_SERIAL_AT91)
|
||||||
|
static struct resource dbgu_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = AT91_VA_BASE_SYS + AT91_DBGU,
|
||||||
|
.end = AT91_VA_BASE_SYS + AT91_DBGU + SZ_512 - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = AT91_ID_SYS,
|
||||||
|
.end = AT91_ID_SYS,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_uart_data dbgu_data = {
|
||||||
|
.use_dma_tx = 0,
|
||||||
|
.use_dma_rx = 0, /* DBGU not capable of receive DMA */
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device at91rm9200_dbgu_device = {
|
||||||
|
.name = "at91_usart",
|
||||||
|
.id = 0,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &dbgu_data,
|
||||||
|
.coherent_dma_mask = 0xffffffff,
|
||||||
|
},
|
||||||
|
.resource = dbgu_resources,
|
||||||
|
.num_resources = ARRAY_SIZE(dbgu_resources),
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline void configure_dbgu_pins(void)
|
||||||
|
{
|
||||||
|
at91_set_A_periph(AT91_PIN_PA30, 0); /* DRXD */
|
||||||
|
at91_set_A_periph(AT91_PIN_PA31, 1); /* DTXD */
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct resource uart0_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = AT91_BASE_US0,
|
||||||
|
.end = AT91_BASE_US0 + SZ_16K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = AT91_ID_US0,
|
||||||
|
.end = AT91_ID_US0,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_uart_data uart0_data = {
|
||||||
|
.use_dma_tx = 1,
|
||||||
|
.use_dma_rx = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device at91rm9200_uart0_device = {
|
||||||
|
.name = "at91_usart",
|
||||||
|
.id = 1,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &uart0_data,
|
||||||
|
.coherent_dma_mask = 0xffffffff,
|
||||||
|
},
|
||||||
|
.resource = uart0_resources,
|
||||||
|
.num_resources = ARRAY_SIZE(uart0_resources),
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline void configure_usart0_pins(void)
|
||||||
|
{
|
||||||
|
at91_set_A_periph(AT91_PIN_PA17, 1); /* TXD0 */
|
||||||
|
at91_set_A_periph(AT91_PIN_PA18, 0); /* RXD0 */
|
||||||
|
at91_set_A_periph(AT91_PIN_PA20, 0); /* CTS0 */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* AT91RM9200 Errata #39 - RTS0 is not internally connected to PA21.
|
||||||
|
* We need to drive the pin manually. Default is off (RTS is active low).
|
||||||
|
*/
|
||||||
|
at91_set_gpio_output(AT91_PIN_PA21, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct resource uart1_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = AT91_BASE_US1,
|
||||||
|
.end = AT91_BASE_US1 + SZ_16K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = AT91_ID_US1,
|
||||||
|
.end = AT91_ID_US1,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_uart_data uart1_data = {
|
||||||
|
.use_dma_tx = 1,
|
||||||
|
.use_dma_rx = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device at91rm9200_uart1_device = {
|
||||||
|
.name = "at91_usart",
|
||||||
|
.id = 2,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &uart1_data,
|
||||||
|
.coherent_dma_mask = 0xffffffff,
|
||||||
|
},
|
||||||
|
.resource = uart1_resources,
|
||||||
|
.num_resources = ARRAY_SIZE(uart1_resources),
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline void configure_usart1_pins(void)
|
||||||
|
{
|
||||||
|
at91_set_A_periph(AT91_PIN_PB18, 0); /* RI1 */
|
||||||
|
at91_set_A_periph(AT91_PIN_PB19, 0); /* DTR1 */
|
||||||
|
at91_set_A_periph(AT91_PIN_PB20, 1); /* TXD1 */
|
||||||
|
at91_set_A_periph(AT91_PIN_PB21, 0); /* RXD1 */
|
||||||
|
at91_set_A_periph(AT91_PIN_PB23, 0); /* DCD1 */
|
||||||
|
at91_set_A_periph(AT91_PIN_PB24, 0); /* CTS1 */
|
||||||
|
at91_set_A_periph(AT91_PIN_PB25, 0); /* DSR1 */
|
||||||
|
at91_set_A_periph(AT91_PIN_PB26, 0); /* RTS1 */
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct resource uart2_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = AT91_BASE_US2,
|
||||||
|
.end = AT91_BASE_US2 + SZ_16K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = AT91_ID_US2,
|
||||||
|
.end = AT91_ID_US2,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_uart_data uart2_data = {
|
||||||
|
.use_dma_tx = 1,
|
||||||
|
.use_dma_rx = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device at91rm9200_uart2_device = {
|
||||||
|
.name = "at91_usart",
|
||||||
|
.id = 3,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &uart2_data,
|
||||||
|
.coherent_dma_mask = 0xffffffff,
|
||||||
|
},
|
||||||
|
.resource = uart2_resources,
|
||||||
|
.num_resources = ARRAY_SIZE(uart2_resources),
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline void configure_usart2_pins(void)
|
||||||
|
{
|
||||||
|
at91_set_A_periph(AT91_PIN_PA22, 0); /* RXD2 */
|
||||||
|
at91_set_A_periph(AT91_PIN_PA23, 1); /* TXD2 */
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct resource uart3_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = AT91_BASE_US3,
|
||||||
|
.end = AT91_BASE_US3 + SZ_16K - 1,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = AT91_ID_US3,
|
||||||
|
.end = AT91_ID_US3,
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct at91_uart_data uart3_data = {
|
||||||
|
.use_dma_tx = 1,
|
||||||
|
.use_dma_rx = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device at91rm9200_uart3_device = {
|
||||||
|
.name = "at91_usart",
|
||||||
|
.id = 4,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = &uart3_data,
|
||||||
|
.coherent_dma_mask = 0xffffffff,
|
||||||
|
},
|
||||||
|
.resource = uart3_resources,
|
||||||
|
.num_resources = ARRAY_SIZE(uart3_resources),
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline void configure_usart3_pins(void)
|
||||||
|
{
|
||||||
|
at91_set_B_periph(AT91_PIN_PA5, 1); /* TXD3 */
|
||||||
|
at91_set_B_periph(AT91_PIN_PA6, 0); /* RXD3 */
|
||||||
|
}
|
||||||
|
|
||||||
|
struct platform_device *at91_uarts[AT91_NR_UART]; /* the UARTs to use */
|
||||||
|
struct platform_device *at91_default_console_device; /* the serial console device */
|
||||||
|
|
||||||
|
void __init at91_init_serial(struct at91_uart_config *config)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
/* Fill in list of supported UARTs */
|
||||||
|
for (i = 0; i < config->nr_tty; i++) {
|
||||||
|
switch (config->tty_map[i]) {
|
||||||
|
case 0:
|
||||||
|
configure_usart0_pins();
|
||||||
|
at91_uarts[i] = &at91rm9200_uart0_device;
|
||||||
|
at91_clock_associate("usart0_clk", &at91rm9200_uart0_device.dev, "usart");
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
configure_usart1_pins();
|
||||||
|
at91_uarts[i] = &at91rm9200_uart1_device;
|
||||||
|
at91_clock_associate("usart1_clk", &at91rm9200_uart1_device.dev, "usart");
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
configure_usart2_pins();
|
||||||
|
at91_uarts[i] = &at91rm9200_uart2_device;
|
||||||
|
at91_clock_associate("usart2_clk", &at91rm9200_uart2_device.dev, "usart");
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
configure_usart3_pins();
|
||||||
|
at91_uarts[i] = &at91rm9200_uart3_device;
|
||||||
|
at91_clock_associate("usart3_clk", &at91rm9200_uart3_device.dev, "usart");
|
||||||
|
break;
|
||||||
|
case 4:
|
||||||
|
configure_dbgu_pins();
|
||||||
|
at91_uarts[i] = &at91rm9200_dbgu_device;
|
||||||
|
at91_clock_associate("mck", &at91rm9200_dbgu_device.dev, "usart");
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
at91_uarts[i]->id = i; /* update ID number to mapped ID */
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Set serial console device */
|
||||||
|
if (config->console_tty < AT91_NR_UART)
|
||||||
|
at91_default_console_device = at91_uarts[config->console_tty];
|
||||||
|
if (!at91_default_console_device)
|
||||||
|
printk(KERN_INFO "AT91: No default serial console defined.\n");
|
||||||
|
}
|
||||||
|
|
||||||
|
void __init at91_add_device_serial(void)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (i = 0; i < AT91_NR_UART; i++) {
|
||||||
|
if (at91_uarts[i])
|
||||||
|
platform_device_register(at91_uarts[i]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
void __init at91_init_serial(struct at91_uart_config *config) {}
|
||||||
|
void __init at91_add_device_serial(void) {}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* -------------------------------------------------------------------- */
|
/* -------------------------------------------------------------------- */
|
||||||
|
|
||||||
|
/*
|
||||||
|
* These devices are always present and don't need any board-specific
|
||||||
|
* setup.
|
||||||
|
*/
|
||||||
|
static int __init at91_add_standard_devices(void)
|
||||||
|
{
|
||||||
|
at91_add_device_rtc();
|
||||||
|
at91_add_device_watchdog();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
arch_initcall(at91_add_standard_devices);
|
||||||
|
|
|
@ -16,3 +16,10 @@ extern struct sys_timer at91rm9200_timer;
|
||||||
extern void __init at91rm9200_map_io(void);
|
extern void __init at91rm9200_map_io(void);
|
||||||
|
|
||||||
extern int __init at91_clock_init(unsigned long main_clock);
|
extern int __init at91_clock_init(unsigned long main_clock);
|
||||||
|
struct device;
|
||||||
|
extern void __init at91_clock_associate(const char *id, struct device *dev, const char *func);
|
||||||
|
|
||||||
|
/* Power Management */
|
||||||
|
extern void at91_irq_suspend(void);
|
||||||
|
extern void at91_irq_resume(void);
|
||||||
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
#include <asm/io.h>
|
#include <asm/io.h>
|
||||||
#include <asm/mach/irq.h>
|
#include <asm/mach/irq.h>
|
||||||
#include <asm/arch/hardware.h>
|
#include <asm/hardware.h>
|
||||||
#include <asm/arch/gpio.h>
|
#include <asm/arch/gpio.h>
|
||||||
|
|
||||||
static const u32 pio_controller_offset[4] = {
|
static const u32 pio_controller_offset[4] = {
|
||||||
|
@ -213,6 +213,84 @@ EXPORT_SYMBOL(at91_get_gpio_value);
|
||||||
|
|
||||||
/*--------------------------------------------------------------------------*/
|
/*--------------------------------------------------------------------------*/
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM
|
||||||
|
|
||||||
|
static u32 wakeups[BGA_GPIO_BANKS];
|
||||||
|
static u32 backups[BGA_GPIO_BANKS];
|
||||||
|
|
||||||
|
static int gpio_irq_set_wake(unsigned pin, unsigned state)
|
||||||
|
{
|
||||||
|
unsigned mask = pin_to_mask(pin);
|
||||||
|
|
||||||
|
pin -= PIN_BASE;
|
||||||
|
pin /= 32;
|
||||||
|
|
||||||
|
if (unlikely(pin >= BGA_GPIO_BANKS))
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
|
if (state)
|
||||||
|
wakeups[pin] |= mask;
|
||||||
|
else
|
||||||
|
wakeups[pin] &= ~mask;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void at91_gpio_suspend(void)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (i = 0; i < BGA_GPIO_BANKS; i++) {
|
||||||
|
u32 pio = pio_controller_offset[i];
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Note: drivers should have disabled GPIO interrupts that
|
||||||
|
* aren't supposed to be wakeup sources.
|
||||||
|
* But that is not much good on ARM..... disable_irq() does
|
||||||
|
* not update the hardware immediately, so the hardware mask
|
||||||
|
* (IMR) has the wrong value (not current, too much is
|
||||||
|
* permitted).
|
||||||
|
*
|
||||||
|
* Our workaround is to disable all non-wakeup IRQs ...
|
||||||
|
* which is exactly what correct drivers asked for in the
|
||||||
|
* first place!
|
||||||
|
*/
|
||||||
|
backups[i] = at91_sys_read(pio + PIO_IMR);
|
||||||
|
at91_sys_write(pio_controller_offset[i] + PIO_IDR, backups[i]);
|
||||||
|
at91_sys_write(pio_controller_offset[i] + PIO_IER, wakeups[i]);
|
||||||
|
|
||||||
|
if (!wakeups[i]) {
|
||||||
|
disable_irq_wake(AT91_ID_PIOA + i);
|
||||||
|
at91_sys_write(AT91_PMC_PCDR, 1 << (AT91_ID_PIOA + i));
|
||||||
|
} else {
|
||||||
|
enable_irq_wake(AT91_ID_PIOA + i);
|
||||||
|
#ifdef CONFIG_PM_DEBUG
|
||||||
|
printk(KERN_DEBUG "GPIO-%c may wake for %08x\n", "ABCD"[i], wakeups[i]);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
void at91_gpio_resume(void)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
|
||||||
|
for (i = 0; i < BGA_GPIO_BANKS; i++) {
|
||||||
|
at91_sys_write(pio_controller_offset[i] + PIO_IDR, wakeups[i]);
|
||||||
|
at91_sys_write(pio_controller_offset[i] + PIO_IER, backups[i]);
|
||||||
|
}
|
||||||
|
|
||||||
|
at91_sys_write(AT91_PMC_PCER,
|
||||||
|
(1 << AT91_ID_PIOA)
|
||||||
|
| (1 << AT91_ID_PIOB)
|
||||||
|
| (1 << AT91_ID_PIOC)
|
||||||
|
| (1 << AT91_ID_PIOD));
|
||||||
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
#define gpio_irq_set_wake NULL
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
/* Several AIC controller irqs are dispatched through this GPIO handler.
|
/* Several AIC controller irqs are dispatched through this GPIO handler.
|
||||||
* To use any AT91_PIN_* as an externally triggered IRQ, first call
|
* To use any AT91_PIN_* as an externally triggered IRQ, first call
|
||||||
|
@ -252,6 +330,7 @@ static struct irqchip gpio_irqchip = {
|
||||||
.mask = gpio_irq_mask,
|
.mask = gpio_irq_mask,
|
||||||
.unmask = gpio_irq_unmask,
|
.unmask = gpio_irq_unmask,
|
||||||
.set_type = gpio_irq_type,
|
.set_type = gpio_irq_type,
|
||||||
|
.set_wake = gpio_irq_set_wake,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void gpio_irq_handler(unsigned irq, struct irqdesc *desc, struct pt_regs *regs)
|
static void gpio_irq_handler(unsigned irq, struct irqdesc *desc, struct pt_regs *regs)
|
||||||
|
@ -266,6 +345,7 @@ static void gpio_irq_handler(unsigned irq, struct irqdesc *desc, struct pt_regs
|
||||||
/* temporarily mask (level sensitive) parent IRQ */
|
/* temporarily mask (level sensitive) parent IRQ */
|
||||||
desc->chip->ack(irq);
|
desc->chip->ack(irq);
|
||||||
for (;;) {
|
for (;;) {
|
||||||
|
/* reading ISR acks the pending (edge triggered) GPIO interrupt */
|
||||||
isr = __raw_readl(pio + PIO_ISR) & __raw_readl(pio + PIO_IMR);
|
isr = __raw_readl(pio + PIO_ISR) & __raw_readl(pio + PIO_IMR);
|
||||||
if (!isr)
|
if (!isr)
|
||||||
break;
|
break;
|
||||||
|
@ -315,15 +395,16 @@ void __init at91_gpio_irq_setup(unsigned banks)
|
||||||
set_irq_chipdata(id, controller);
|
set_irq_chipdata(id, controller);
|
||||||
|
|
||||||
for (i = 0; i < 32; i++, pin++) {
|
for (i = 0; i < 32; i++, pin++) {
|
||||||
|
/*
|
||||||
|
* Can use the "simple" and not "edge" handler since it's
|
||||||
|
* shorter, and the AIC handles interupts sanely.
|
||||||
|
*/
|
||||||
set_irq_chip(pin, &gpio_irqchip);
|
set_irq_chip(pin, &gpio_irqchip);
|
||||||
set_irq_handler(pin, do_simple_IRQ);
|
set_irq_handler(pin, do_simple_IRQ);
|
||||||
set_irq_flags(pin, IRQF_VALID);
|
set_irq_flags(pin, IRQF_VALID);
|
||||||
}
|
}
|
||||||
|
|
||||||
set_irq_chained_handler(id, gpio_irq_handler);
|
set_irq_chained_handler(id, gpio_irq_handler);
|
||||||
|
|
||||||
/* enable the PIO peripheral clock */
|
|
||||||
at91_sys_write(AT91_PMC_PCER, 1 << id);
|
|
||||||
}
|
}
|
||||||
pr_info("AT91: %d gpio irqs in %d banks\n", pin - PIN_BASE, banks);
|
pr_info("AT91: %d gpio irqs in %d banks\n", pin - PIN_BASE, banks);
|
||||||
}
|
}
|
||||||
|
|
|
@ -92,10 +92,6 @@ static int at91rm9200_irq_type(unsigned irq, unsigned type)
|
||||||
{
|
{
|
||||||
unsigned int smr, srctype;
|
unsigned int smr, srctype;
|
||||||
|
|
||||||
/* change triggering only for FIQ and external IRQ0..IRQ6 */
|
|
||||||
if ((irq < AT91_ID_IRQ0) && (irq != AT91_ID_FIQ))
|
|
||||||
return -EINVAL;
|
|
||||||
|
|
||||||
switch (type) {
|
switch (type) {
|
||||||
case IRQT_HIGH:
|
case IRQT_HIGH:
|
||||||
srctype = AT91_AIC_SRCTYPE_HIGH;
|
srctype = AT91_AIC_SRCTYPE_HIGH;
|
||||||
|
@ -104,9 +100,13 @@ static int at91rm9200_irq_type(unsigned irq, unsigned type)
|
||||||
srctype = AT91_AIC_SRCTYPE_RISING;
|
srctype = AT91_AIC_SRCTYPE_RISING;
|
||||||
break;
|
break;
|
||||||
case IRQT_LOW:
|
case IRQT_LOW:
|
||||||
|
if ((irq > AT91_ID_FIQ) && (irq < AT91_ID_IRQ0)) /* only supported on external interrupts */
|
||||||
|
return -EINVAL;
|
||||||
srctype = AT91_AIC_SRCTYPE_LOW;
|
srctype = AT91_AIC_SRCTYPE_LOW;
|
||||||
break;
|
break;
|
||||||
case IRQT_FALLING:
|
case IRQT_FALLING:
|
||||||
|
if ((irq > AT91_ID_FIQ) && (irq < AT91_ID_IRQ0)) /* only supported on external interrupts */
|
||||||
|
return -EINVAL;
|
||||||
srctype = AT91_AIC_SRCTYPE_FALLING;
|
srctype = AT91_AIC_SRCTYPE_FALLING;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
|
@ -118,11 +118,47 @@ static int at91rm9200_irq_type(unsigned irq, unsigned type)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM
|
||||||
|
|
||||||
|
static u32 wakeups;
|
||||||
|
static u32 backups;
|
||||||
|
|
||||||
|
static int at91rm9200_irq_set_wake(unsigned irq, unsigned value)
|
||||||
|
{
|
||||||
|
if (unlikely(irq >= 32))
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
|
if (value)
|
||||||
|
wakeups |= (1 << irq);
|
||||||
|
else
|
||||||
|
wakeups &= ~(1 << irq);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
void at91_irq_suspend(void)
|
||||||
|
{
|
||||||
|
backups = at91_sys_read(AT91_AIC_IMR);
|
||||||
|
at91_sys_write(AT91_AIC_IDCR, backups);
|
||||||
|
at91_sys_write(AT91_AIC_IECR, wakeups);
|
||||||
|
}
|
||||||
|
|
||||||
|
void at91_irq_resume(void)
|
||||||
|
{
|
||||||
|
at91_sys_write(AT91_AIC_IDCR, wakeups);
|
||||||
|
at91_sys_write(AT91_AIC_IECR, backups);
|
||||||
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
#define at91rm9200_irq_set_wake NULL
|
||||||
|
#endif
|
||||||
|
|
||||||
static struct irqchip at91rm9200_irq_chip = {
|
static struct irqchip at91rm9200_irq_chip = {
|
||||||
.ack = at91rm9200_mask_irq,
|
.ack = at91rm9200_mask_irq,
|
||||||
.mask = at91rm9200_mask_irq,
|
.mask = at91rm9200_mask_irq,
|
||||||
.unmask = at91rm9200_unmask_irq,
|
.unmask = at91rm9200_unmask_irq,
|
||||||
.set_type = at91rm9200_irq_type,
|
.set_type = at91rm9200_irq_type,
|
||||||
|
.set_wake = at91rm9200_irq_set_wake,
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -0,0 +1,225 @@
|
||||||
|
/*
|
||||||
|
* arch/arm/mach-at91rm9200/pm.c
|
||||||
|
* AT91 Power Management
|
||||||
|
*
|
||||||
|
* Copyright (C) 2005 David Brownell
|
||||||
|
*
|
||||||
|
* 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.
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <linux/pm.h>
|
||||||
|
#include <linux/sched.h>
|
||||||
|
#include <linux/proc_fs.h>
|
||||||
|
#include <linux/pm.h>
|
||||||
|
#include <linux/interrupt.h>
|
||||||
|
#include <linux/sysfs.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/platform_device.h>
|
||||||
|
|
||||||
|
#include <asm/io.h>
|
||||||
|
#include <asm/irq.h>
|
||||||
|
#include <asm/atomic.h>
|
||||||
|
#include <asm/mach/time.h>
|
||||||
|
#include <asm/mach/irq.h>
|
||||||
|
#include <asm/mach-types.h>
|
||||||
|
|
||||||
|
#include <asm/arch/gpio.h>
|
||||||
|
|
||||||
|
#include "generic.h"
|
||||||
|
|
||||||
|
|
||||||
|
static int at91_pm_valid_state(suspend_state_t state)
|
||||||
|
{
|
||||||
|
switch (state) {
|
||||||
|
case PM_SUSPEND_ON:
|
||||||
|
case PM_SUSPEND_STANDBY:
|
||||||
|
case PM_SUSPEND_MEM:
|
||||||
|
return 1;
|
||||||
|
|
||||||
|
default:
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static suspend_state_t target_state;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Called after processes are frozen, but before we shutdown devices.
|
||||||
|
*/
|
||||||
|
static int at91_pm_prepare(suspend_state_t state)
|
||||||
|
{
|
||||||
|
target_state = state;
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Verify that all the clocks are correct before entering
|
||||||
|
* slow-clock mode.
|
||||||
|
*/
|
||||||
|
static int at91_pm_verify_clocks(void)
|
||||||
|
{
|
||||||
|
unsigned long scsr;
|
||||||
|
int i;
|
||||||
|
|
||||||
|
scsr = at91_sys_read(AT91_PMC_SCSR);
|
||||||
|
|
||||||
|
/* USB must not be using PLLB */
|
||||||
|
if ((scsr & (AT91_PMC_UHP | AT91_PMC_UDP)) != 0) {
|
||||||
|
pr_debug("AT91: PM - Suspend-to-RAM with USB still active\n");
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_AT91_PROGRAMMABLE_CLOCKS
|
||||||
|
/* PCK0..PCK3 must be disabled, or configured to use clk32k */
|
||||||
|
for (i = 0; i < 4; i++) {
|
||||||
|
u32 css;
|
||||||
|
|
||||||
|
if ((scsr & (AT91_PMC_PCK0 << i)) == 0)
|
||||||
|
continue;
|
||||||
|
|
||||||
|
css = at91_sys_read(AT91_PMC_PCKR(i)) & AT91_PMC_CSS;
|
||||||
|
if (css != AT91_PMC_CSS_SLOW) {
|
||||||
|
pr_debug("AT91: PM - Suspend-to-RAM with PCK%d src %d\n", i, css);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
return 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Call this from platform driver suspend() to see how deeply to suspend.
|
||||||
|
* For example, some controllers (like OHCI) need one of the PLL clocks
|
||||||
|
* in order to act as a wakeup source, and those are not available when
|
||||||
|
* going into slow clock mode.
|
||||||
|
*
|
||||||
|
* REVISIT: generalize as clk_will_be_available(clk)? Other platforms have
|
||||||
|
* the very same problem (but not using at91 main_clk), and it'd be better
|
||||||
|
* to add one generic API rather than lots of platform-specific ones.
|
||||||
|
*/
|
||||||
|
int at91_suspend_entering_slow_clock(void)
|
||||||
|
{
|
||||||
|
return (target_state == PM_SUSPEND_MEM);
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(at91_suspend_entering_slow_clock);
|
||||||
|
|
||||||
|
|
||||||
|
static void (*slow_clock)(void);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
static int at91_pm_enter(suspend_state_t state)
|
||||||
|
{
|
||||||
|
at91_gpio_suspend();
|
||||||
|
at91_irq_suspend();
|
||||||
|
|
||||||
|
pr_debug("AT91: PM - wake mask %08x, pm state %d\n",
|
||||||
|
/* remember all the always-wake irqs */
|
||||||
|
(at91_sys_read(AT91_PMC_PCSR)
|
||||||
|
| (1 << AT91_ID_FIQ)
|
||||||
|
| (1 << AT91_ID_SYS)
|
||||||
|
| (1 << AT91_ID_IRQ0)
|
||||||
|
| (1 << AT91_ID_IRQ1)
|
||||||
|
| (1 << AT91_ID_IRQ2)
|
||||||
|
| (1 << AT91_ID_IRQ3)
|
||||||
|
| (1 << AT91_ID_IRQ4)
|
||||||
|
| (1 << AT91_ID_IRQ5)
|
||||||
|
| (1 << AT91_ID_IRQ6))
|
||||||
|
& at91_sys_read(AT91_AIC_IMR),
|
||||||
|
state);
|
||||||
|
|
||||||
|
switch (state) {
|
||||||
|
/*
|
||||||
|
* Suspend-to-RAM is like STANDBY plus slow clock mode, so
|
||||||
|
* drivers must suspend more deeply: only the master clock
|
||||||
|
* controller may be using the main oscillator.
|
||||||
|
*/
|
||||||
|
case PM_SUSPEND_MEM:
|
||||||
|
/*
|
||||||
|
* Ensure that clocks are in a valid state.
|
||||||
|
*/
|
||||||
|
if (!at91_pm_verify_clocks())
|
||||||
|
goto error;
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Enter slow clock mode by switching over to clk32k and
|
||||||
|
* turning off the main oscillator; reverse on wakeup.
|
||||||
|
*/
|
||||||
|
if (slow_clock) {
|
||||||
|
slow_clock();
|
||||||
|
break;
|
||||||
|
} else {
|
||||||
|
/* DEVELOPMENT ONLY */
|
||||||
|
pr_info("AT91: PM - no slow clock mode yet ...\n");
|
||||||
|
/* FALLTHROUGH leaving master clock alone */
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* STANDBY mode has *all* drivers suspended; ignores irqs not
|
||||||
|
* marked as 'wakeup' event sources; and reduces DRAM power.
|
||||||
|
* But otherwise it's identical to PM_SUSPEND_ON: cpu idle, and
|
||||||
|
* nothing fancy done with main or cpu clocks.
|
||||||
|
*/
|
||||||
|
case PM_SUSPEND_STANDBY:
|
||||||
|
/*
|
||||||
|
* NOTE: the Wait-for-Interrupt instruction needs to be
|
||||||
|
* in icache so the SDRAM stays in self-refresh mode until
|
||||||
|
* the wakeup IRQ occurs.
|
||||||
|
*/
|
||||||
|
asm("b 1f; .align 5; 1:");
|
||||||
|
asm("mcr p15, 0, r0, c7, c10, 4"); /* drain write buffer */
|
||||||
|
at91_sys_write(AT91_SDRAMC_SRR, 1); /* self-refresh mode */
|
||||||
|
/* fall though to next state */
|
||||||
|
|
||||||
|
case PM_SUSPEND_ON:
|
||||||
|
asm("mcr p15, 0, r0, c7, c0, 4"); /* wait for interrupt */
|
||||||
|
break;
|
||||||
|
|
||||||
|
default:
|
||||||
|
pr_debug("AT91: PM - bogus suspend state %d\n", state);
|
||||||
|
goto error;
|
||||||
|
}
|
||||||
|
|
||||||
|
pr_debug("AT91: PM - wakeup %08x\n",
|
||||||
|
at91_sys_read(AT91_AIC_IPR) & at91_sys_read(AT91_AIC_IMR));
|
||||||
|
|
||||||
|
error:
|
||||||
|
target_state = PM_SUSPEND_ON;
|
||||||
|
at91_irq_resume();
|
||||||
|
at91_gpio_resume();
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static struct pm_ops at91_pm_ops ={
|
||||||
|
.pm_disk_mode = 0,
|
||||||
|
.valid = at91_pm_valid_state,
|
||||||
|
.prepare = at91_pm_prepare,
|
||||||
|
.enter = at91_pm_enter,
|
||||||
|
};
|
||||||
|
|
||||||
|
static int __init at91_pm_init(void)
|
||||||
|
{
|
||||||
|
printk("AT91: Power Management\n");
|
||||||
|
|
||||||
|
#ifdef CONFIG_AT91_PM_SLOW_CLOCK
|
||||||
|
/* REVISIT allocations of SRAM should be dynamically managed.
|
||||||
|
* FIQ handlers and other components will want SRAM/TCM too...
|
||||||
|
*/
|
||||||
|
slow_clock = (void *) (AT91_VA_BASE_SRAM + (3 * SZ_4K));
|
||||||
|
memcpy(slow_clock, at91rm9200_slow_clock, at91rm9200_slow_clock_sz);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
/* Disable SDRAM low-power mode. Cannot be used with self-refresh. */
|
||||||
|
at91_sys_write(AT91_SDRAMC_LPR, 0);
|
||||||
|
|
||||||
|
pm_set_ops(&at91_pm_ops);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
arch_initcall(at91_pm_init);
|
|
@ -31,6 +31,8 @@
|
||||||
#include <asm/irq.h>
|
#include <asm/irq.h>
|
||||||
#include <asm/mach/time.h>
|
#include <asm/mach/time.h>
|
||||||
|
|
||||||
|
static unsigned long last_crtr;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* The ST_CRTR is updated asynchronously to the master clock. It is therefore
|
* The ST_CRTR is updated asynchronously to the master clock. It is therefore
|
||||||
* necessary to read it twice (with the same value) to ensure accuracy.
|
* necessary to read it twice (with the same value) to ensure accuracy.
|
||||||
|
@ -56,7 +58,7 @@ static unsigned long at91rm9200_gettimeoffset(void)
|
||||||
{
|
{
|
||||||
unsigned long elapsed;
|
unsigned long elapsed;
|
||||||
|
|
||||||
elapsed = (read_CRTR() - at91_sys_read(AT91_ST_RTAR)) & AT91_ST_ALMV;
|
elapsed = (read_CRTR() - last_crtr) & AT91_ST_ALMV;
|
||||||
|
|
||||||
return (unsigned long)(elapsed * (tick_nsec / 1000)) / LATCH;
|
return (unsigned long)(elapsed * (tick_nsec / 1000)) / LATCH;
|
||||||
}
|
}
|
||||||
|
@ -66,15 +68,12 @@ static unsigned long at91rm9200_gettimeoffset(void)
|
||||||
*/
|
*/
|
||||||
static irqreturn_t at91rm9200_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
|
static irqreturn_t at91rm9200_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
|
||||||
{
|
{
|
||||||
unsigned long rtar;
|
|
||||||
|
|
||||||
if (at91_sys_read(AT91_ST_SR) & AT91_ST_PITS) { /* This is a shared interrupt */
|
if (at91_sys_read(AT91_ST_SR) & AT91_ST_PITS) { /* This is a shared interrupt */
|
||||||
write_seqlock(&xtime_lock);
|
write_seqlock(&xtime_lock);
|
||||||
|
|
||||||
while (((read_CRTR() - at91_sys_read(AT91_ST_RTAR)) & AT91_ST_ALMV) >= LATCH) {
|
while (((read_CRTR() - last_crtr) & AT91_ST_ALMV) >= LATCH) {
|
||||||
timer_tick(regs);
|
timer_tick(regs);
|
||||||
rtar = (at91_sys_read(AT91_ST_RTAR) + LATCH) & AT91_ST_ALMV;
|
last_crtr = (last_crtr + LATCH) & AT91_ST_ALMV;
|
||||||
at91_sys_write(AT91_ST_RTAR, rtar);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
write_sequnlock(&xtime_lock);
|
write_sequnlock(&xtime_lock);
|
||||||
|
@ -87,10 +86,24 @@ static irqreturn_t at91rm9200_timer_interrupt(int irq, void *dev_id, struct pt_r
|
||||||
|
|
||||||
static struct irqaction at91rm9200_timer_irq = {
|
static struct irqaction at91rm9200_timer_irq = {
|
||||||
.name = "at91_tick",
|
.name = "at91_tick",
|
||||||
.flags = SA_SHIRQ | SA_INTERRUPT,
|
.flags = SA_SHIRQ | SA_INTERRUPT | SA_TIMER,
|
||||||
.handler = at91rm9200_timer_interrupt
|
.handler = at91rm9200_timer_interrupt
|
||||||
};
|
};
|
||||||
|
|
||||||
|
void at91rm9200_timer_reset(void)
|
||||||
|
{
|
||||||
|
last_crtr = 0;
|
||||||
|
|
||||||
|
/* Real time counter incremented every 30.51758 microseconds */
|
||||||
|
at91_sys_write(AT91_ST_RTMR, 1);
|
||||||
|
|
||||||
|
/* Set Period Interval timer */
|
||||||
|
at91_sys_write(AT91_ST_PIMR, LATCH);
|
||||||
|
|
||||||
|
/* Enable Period Interval Timer interrupt */
|
||||||
|
at91_sys_write(AT91_ST_IER, AT91_ST_PITS);
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Set up timer interrupt.
|
* Set up timer interrupt.
|
||||||
*/
|
*/
|
||||||
|
@ -100,28 +113,30 @@ void __init at91rm9200_timer_init(void)
|
||||||
at91_sys_write(AT91_ST_IDR, AT91_ST_PITS | AT91_ST_WDOVF | AT91_ST_RTTINC | AT91_ST_ALMS);
|
at91_sys_write(AT91_ST_IDR, AT91_ST_PITS | AT91_ST_WDOVF | AT91_ST_RTTINC | AT91_ST_ALMS);
|
||||||
(void) at91_sys_read(AT91_ST_SR); /* Clear any pending interrupts */
|
(void) at91_sys_read(AT91_ST_SR); /* Clear any pending interrupts */
|
||||||
|
|
||||||
/*
|
/* Make IRQs happen for the system timer */
|
||||||
* Make IRQs happen for the system timer.
|
|
||||||
*/
|
|
||||||
setup_irq(AT91_ID_SYS, &at91rm9200_timer_irq);
|
setup_irq(AT91_ID_SYS, &at91rm9200_timer_irq);
|
||||||
|
|
||||||
/* Set initial alarm to 0 */
|
|
||||||
at91_sys_write(AT91_ST_RTAR, 0);
|
|
||||||
|
|
||||||
/* Real time counter incremented every 30.51758 microseconds */
|
|
||||||
at91_sys_write(AT91_ST_RTMR, 1);
|
|
||||||
|
|
||||||
/* Set Period Interval timer */
|
|
||||||
at91_sys_write(AT91_ST_PIMR, LATCH);
|
|
||||||
|
|
||||||
/* Change the kernel's 'tick' value to 10009 usec. (the default is 10000) */
|
/* Change the kernel's 'tick' value to 10009 usec. (the default is 10000) */
|
||||||
tick_usec = (LATCH * 1000000) / CLOCK_TICK_RATE;
|
tick_usec = (LATCH * 1000000) / CLOCK_TICK_RATE;
|
||||||
|
|
||||||
/* Enable Period Interval Timer interrupt */
|
/* Initialize and enable the timer interrupt */
|
||||||
at91_sys_write(AT91_ST_IER, AT91_ST_PITS);
|
at91rm9200_timer_reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef CONFIG_PM
|
||||||
|
static void at91rm9200_timer_suspend(void)
|
||||||
|
{
|
||||||
|
/* disable Period Interval Timer interrupt */
|
||||||
|
at91_sys_write(AT91_ST_IDR, AT91_ST_PITS);
|
||||||
|
}
|
||||||
|
#else
|
||||||
|
#define at91rm9200_timer_suspend NULL
|
||||||
|
#endif
|
||||||
|
|
||||||
struct sys_timer at91rm9200_timer = {
|
struct sys_timer at91rm9200_timer = {
|
||||||
.init = at91rm9200_timer_init,
|
.init = at91rm9200_timer_init,
|
||||||
.offset = at91rm9200_gettimeoffset,
|
.offset = at91rm9200_gettimeoffset,
|
||||||
|
.suspend = at91rm9200_timer_suspend,
|
||||||
|
.resume = at91rm9200_timer_reset,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -14,6 +14,7 @@ config MACH_LPD7A400
|
||||||
bool "LPD7A400 Card Engine"
|
bool "LPD7A400 Card Engine"
|
||||||
select ARCH_LH7A400
|
select ARCH_LH7A400
|
||||||
# select IDE_POLL
|
# select IDE_POLL
|
||||||
|
select HAS_TOUCHSCREEN_ADS7843_LH7
|
||||||
help
|
help
|
||||||
Say Y here if you are using Logic Product Development's
|
Say Y here if you are using Logic Product Development's
|
||||||
LPD7A400 CardEngine. For the time being, the LPD7A400 and
|
LPD7A400 CardEngine. For the time being, the LPD7A400 and
|
||||||
|
@ -23,6 +24,7 @@ config MACH_LPD7A404
|
||||||
bool "LPD7A404 Card Engine"
|
bool "LPD7A404 Card Engine"
|
||||||
select ARCH_LH7A404
|
select ARCH_LH7A404
|
||||||
# select IDE_POLL
|
# select IDE_POLL
|
||||||
|
select HAS_TOUCHSCREEN_ADC_LH7
|
||||||
help
|
help
|
||||||
Say Y here if you are using Logic Product Development's
|
Say Y here if you are using Logic Product Development's
|
||||||
LPD7A404 CardEngine. For the time being, the LPD7A400 and
|
LPD7A404 CardEngine. For the time being, the LPD7A400 and
|
||||||
|
@ -34,6 +36,9 @@ config ARCH_LH7A400
|
||||||
config ARCH_LH7A404
|
config ARCH_LH7A404
|
||||||
bool
|
bool
|
||||||
|
|
||||||
|
config LPD7A40X_CPLD_SSP
|
||||||
|
bool
|
||||||
|
|
||||||
config LH7A40X_CONTIGMEM
|
config LH7A40X_CONTIGMEM
|
||||||
bool "Disable NUMA Support"
|
bool "Disable NUMA Support"
|
||||||
depends on ARCH_LH7A40X
|
depends on ARCH_LH7A40X
|
||||||
|
|
|
@ -4,11 +4,14 @@
|
||||||
|
|
||||||
# Object file lists.
|
# Object file lists.
|
||||||
|
|
||||||
obj-y := time.o
|
obj-y := time.o clocks.o
|
||||||
obj-$(CONFIG_MACH_KEV7A400) += arch-kev7a400.o irq-lh7a400.o
|
obj-m :=
|
||||||
obj-$(CONFIG_MACH_LPD7A400) += arch-lpd7a40x.o irq-lh7a400.o
|
obj-n :=
|
||||||
obj-$(CONFIG_MACH_LPD7A404) += arch-lpd7a40x.o irq-lh7a404.o
|
obj- :=
|
||||||
|
|
||||||
|
obj-$(CONFIG_MACH_KEV7A400) += arch-kev7a400.o irq-lh7a400.o
|
||||||
|
obj-$(CONFIG_MACH_LPD7A400) += arch-lpd7a40x.o irq-lh7a400.o
|
||||||
|
obj-$(CONFIG_MACH_LPD7A404) += arch-lpd7a40x.o irq-lh7a404.o
|
||||||
|
obj-$(CONFIG_LPD7A40X_CPLD_SSP) += ssp-cpld.o
|
||||||
|
obj-$(CONFIG_FB_ARMCLCD) += clcd.o
|
||||||
|
|
||||||
obj-m :=
|
|
||||||
obj-n :=
|
|
||||||
obj- :=
|
|
||||||
|
|
|
@ -23,6 +23,28 @@
|
||||||
|
|
||||||
#include "common.h"
|
#include "common.h"
|
||||||
|
|
||||||
|
#define CPLD_INT_NETHERNET (1<<0)
|
||||||
|
#define CPLD_INTMASK_ETHERNET (1<<2)
|
||||||
|
#if defined (CONFIG_MACH_LPD7A400)
|
||||||
|
# define CPLD_INT_NTOUCH (1<<1)
|
||||||
|
# define CPLD_INTMASK_TOUCH (1<<3)
|
||||||
|
# define CPLD_INT_PEN (1<<4)
|
||||||
|
# define CPLD_INTMASK_PEN (1<<4)
|
||||||
|
# define CPLD_INT_PIRQ (1<<4)
|
||||||
|
#endif
|
||||||
|
#define CPLD_INTMASK_CPLD (1<<7)
|
||||||
|
#define CPLD_INT_CPLD (1<<6)
|
||||||
|
|
||||||
|
#define CPLD_CONTROL_SWINT (1<<7) /* Disable all CPLD IRQs */
|
||||||
|
#define CPLD_CONTROL_OCMSK (1<<6) /* Mask USB1 connect IRQ */
|
||||||
|
#define CPLD_CONTROL_PDRV (1<<5) /* PCC_nDRV high */
|
||||||
|
#define CPLD_CONTROL_USB1C (1<<4) /* USB1 connect IRQ active */
|
||||||
|
#define CPLD_CONTROL_USB1P (1<<3) /* USB1 power disable */
|
||||||
|
#define CPLD_CONTROL_AWKP (1<<2) /* Auto-wakeup disabled */
|
||||||
|
#define CPLD_CONTROL_LCD_ENABLE (1<<1) /* LCD Vee enable */
|
||||||
|
#define CPLD_CONTROL_WRLAN_NENABLE (1<<0) /* SMC91x power disable */
|
||||||
|
|
||||||
|
|
||||||
static struct resource smc91x_resources[] = {
|
static struct resource smc91x_resources[] = {
|
||||||
[0] = {
|
[0] = {
|
||||||
.start = CPLD00_PHYS,
|
.start = CPLD00_PHYS,
|
||||||
|
@ -48,12 +70,12 @@ static struct platform_device smc91x_device = {
|
||||||
static struct resource lh7a40x_usbclient_resources[] = {
|
static struct resource lh7a40x_usbclient_resources[] = {
|
||||||
[0] = {
|
[0] = {
|
||||||
.start = USB_PHYS,
|
.start = USB_PHYS,
|
||||||
.end = (USB_PHYS + 0xFF),
|
.end = (USB_PHYS + PAGE_SIZE),
|
||||||
.flags = IORESOURCE_MEM,
|
.flags = IORESOURCE_MEM,
|
||||||
},
|
},
|
||||||
[1] = {
|
[1] = {
|
||||||
.start = IRQ_USBINTR,
|
.start = IRQ_USB,
|
||||||
.end = IRQ_USBINTR,
|
.end = IRQ_USB,
|
||||||
.flags = IORESOURCE_IRQ,
|
.flags = IORESOURCE_IRQ,
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
@ -61,7 +83,8 @@ static struct resource lh7a40x_usbclient_resources[] = {
|
||||||
static u64 lh7a40x_usbclient_dma_mask = 0xffffffffUL;
|
static u64 lh7a40x_usbclient_dma_mask = 0xffffffffUL;
|
||||||
|
|
||||||
static struct platform_device lh7a40x_usbclient_device = {
|
static struct platform_device lh7a40x_usbclient_device = {
|
||||||
.name = "lh7a40x_udc",
|
// .name = "lh7a40x_udc",
|
||||||
|
.name = "lh7-udc",
|
||||||
.id = 0,
|
.id = 0,
|
||||||
.dev = {
|
.dev = {
|
||||||
.dma_mask = &lh7a40x_usbclient_dma_mask,
|
.dma_mask = &lh7a40x_usbclient_dma_mask,
|
||||||
|
@ -101,7 +124,7 @@ static struct platform_device lh7a404_usbhost_device = {
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
static struct platform_device *lpd7a40x_devs[] __initdata = {
|
static struct platform_device* lpd7a40x_devs[] __initdata = {
|
||||||
&smc91x_device,
|
&smc91x_device,
|
||||||
&lh7a40x_usbclient_device,
|
&lh7a40x_usbclient_device,
|
||||||
#if defined (CONFIG_ARCH_LH7A404)
|
#if defined (CONFIG_ARCH_LH7A404)
|
||||||
|
@ -113,29 +136,52 @@ extern void lpd7a400_map_io (void);
|
||||||
|
|
||||||
static void __init lpd7a40x_init (void)
|
static void __init lpd7a40x_init (void)
|
||||||
{
|
{
|
||||||
CPLD_CONTROL |= (1<<6); /* Mask USB1 connection IRQ */
|
#if defined (CONFIG_MACH_LPD7A400)
|
||||||
|
CPLD_CONTROL |= 0
|
||||||
|
| CPLD_CONTROL_SWINT /* Disable software interrupt */
|
||||||
|
| CPLD_CONTROL_OCMSK; /* Mask USB1 connection IRQ */
|
||||||
CPLD_CONTROL &= ~(0
|
CPLD_CONTROL &= ~(0
|
||||||
| (1<<1) /* Disable LCD */
|
| CPLD_CONTROL_LCD_ENABLE /* Disable LCD */
|
||||||
| (1<<0) /* Enable WLAN */
|
| CPLD_CONTROL_WRLAN_NENABLE /* Enable SMC91x */
|
||||||
);
|
);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (CONFIG_MACH_LPD7A404)
|
||||||
|
CPLD_CONTROL &= ~(0
|
||||||
|
| CPLD_CONTROL_WRLAN_NENABLE /* Enable SMC91x */
|
||||||
|
);
|
||||||
|
#endif
|
||||||
|
|
||||||
platform_add_devices (lpd7a40x_devs, ARRAY_SIZE (lpd7a40x_devs));
|
platform_add_devices (lpd7a40x_devs, ARRAY_SIZE (lpd7a40x_devs));
|
||||||
|
#if defined (CONFIG_FB_ARMCLCD)
|
||||||
|
lh7a40x_clcd_init ();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void lh7a40x_ack_cpld_irq (u32 irq)
|
static void lh7a40x_ack_cpld_irq (u32 irq)
|
||||||
{
|
{
|
||||||
/* CPLD doesn't have ack capability */
|
/* CPLD doesn't have ack capability, but some devices may */
|
||||||
|
|
||||||
|
#if defined (CPLD_INTMASK_TOUCH)
|
||||||
|
/* The touch control *must* mask the the interrupt because the
|
||||||
|
* interrupt bit is read by the driver to determine if the pen
|
||||||
|
* is still down. */
|
||||||
|
if (irq == IRQ_TOUCH)
|
||||||
|
CPLD_INTERRUPTS |= CPLD_INTMASK_TOUCH;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void lh7a40x_mask_cpld_irq (u32 irq)
|
static void lh7a40x_mask_cpld_irq (u32 irq)
|
||||||
{
|
{
|
||||||
switch (irq) {
|
switch (irq) {
|
||||||
case IRQ_LPD7A40X_ETH_INT:
|
case IRQ_LPD7A40X_ETH_INT:
|
||||||
CPLD_INTERRUPTS = CPLD_INTERRUPTS | 0x4;
|
CPLD_INTERRUPTS |= CPLD_INTMASK_ETHERNET;
|
||||||
break;
|
break;
|
||||||
case IRQ_LPD7A400_TS:
|
#if defined (IRQ_TOUCH)
|
||||||
CPLD_INTERRUPTS = CPLD_INTERRUPTS | 0x8;
|
case IRQ_TOUCH:
|
||||||
|
CPLD_INTERRUPTS |= CPLD_INTMASK_TOUCH;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -143,11 +189,13 @@ static void lh7a40x_unmask_cpld_irq (u32 irq)
|
||||||
{
|
{
|
||||||
switch (irq) {
|
switch (irq) {
|
||||||
case IRQ_LPD7A40X_ETH_INT:
|
case IRQ_LPD7A40X_ETH_INT:
|
||||||
CPLD_INTERRUPTS = CPLD_INTERRUPTS & ~ 0x4;
|
CPLD_INTERRUPTS &= ~CPLD_INTMASK_ETHERNET;
|
||||||
break;
|
break;
|
||||||
case IRQ_LPD7A400_TS:
|
#if defined (IRQ_TOUCH)
|
||||||
CPLD_INTERRUPTS = CPLD_INTERRUPTS & ~ 0x8;
|
case IRQ_TOUCH:
|
||||||
|
CPLD_INTERRUPTS &= ~CPLD_INTMASK_TOUCH;
|
||||||
break;
|
break;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -164,11 +212,13 @@ static void lpd7a40x_cpld_handler (unsigned int irq, struct irqdesc *desc,
|
||||||
|
|
||||||
desc->chip->ack (irq);
|
desc->chip->ack (irq);
|
||||||
|
|
||||||
if ((mask & 0x1) == 0) /* WLAN */
|
if ((mask & (1<<0)) == 0) /* WLAN */
|
||||||
IRQ_DISPATCH (IRQ_LPD7A40X_ETH_INT);
|
IRQ_DISPATCH (IRQ_LPD7A40X_ETH_INT);
|
||||||
|
|
||||||
if ((mask & 0x2) == 0) /* Touch */
|
#if defined (IRQ_TOUCH)
|
||||||
IRQ_DISPATCH (IRQ_LPD7A400_TS);
|
if ((mask & (1<<1)) == 0) /* Touch */
|
||||||
|
IRQ_DISPATCH (IRQ_TOUCH);
|
||||||
|
#endif
|
||||||
|
|
||||||
desc->chip->unmask (irq); /* Level-triggered need this */
|
desc->chip->unmask (irq); /* Level-triggered need this */
|
||||||
}
|
}
|
||||||
|
@ -204,9 +254,21 @@ void __init lh7a40x_init_board_irq (void)
|
||||||
|
|
||||||
/* Then, configure CPLD interrupt */
|
/* Then, configure CPLD interrupt */
|
||||||
|
|
||||||
CPLD_INTERRUPTS = 0x9c; /* Disable all CPLD interrupts */
|
/* Disable all CPLD interrupts */
|
||||||
|
#if defined (CONFIG_MACH_LPD7A400)
|
||||||
|
CPLD_INTERRUPTS = CPLD_INTMASK_TOUCH | CPLD_INTMASK_PEN
|
||||||
|
| CPLD_INTMASK_ETHERNET;
|
||||||
|
/* *** FIXME: don't know why we need 7 and 4. 7 is way wrong
|
||||||
|
and 4 is uncefined. */
|
||||||
|
// (1<<7)|(1<<4)|(1<<3)|(1<<2);
|
||||||
|
#endif
|
||||||
|
#if defined (CONFIG_MACH_LPD7A404)
|
||||||
|
CPLD_INTERRUPTS = CPLD_INTMASK_ETHERNET;
|
||||||
|
/* *** FIXME: don't know why we need 6 and 5, neither is defined. */
|
||||||
|
// (1<<6)|(1<<5)|(1<<3);
|
||||||
|
#endif
|
||||||
GPIO_PFDD &= ~(1 << pinCPLD); /* Make input */
|
GPIO_PFDD &= ~(1 << pinCPLD); /* Make input */
|
||||||
GPIO_INTTYPE1 |= (1 << pinCPLD); /* Edge triggered */
|
GPIO_INTTYPE1 &= ~(1 << pinCPLD); /* Level triggered */
|
||||||
GPIO_INTTYPE2 &= ~(1 << pinCPLD); /* Active low */
|
GPIO_INTTYPE2 &= ~(1 << pinCPLD); /* Active low */
|
||||||
barrier ();
|
barrier ();
|
||||||
GPIO_GPIOFINTEN |= (1 << pinCPLD); /* Enable */
|
GPIO_GPIOFINTEN |= (1 << pinCPLD); /* Enable */
|
||||||
|
@ -216,7 +278,7 @@ void __init lh7a40x_init_board_irq (void)
|
||||||
for (irq = IRQ_BOARD_START;
|
for (irq = IRQ_BOARD_START;
|
||||||
irq < IRQ_BOARD_START + NR_IRQ_BOARD; ++irq) {
|
irq < IRQ_BOARD_START + NR_IRQ_BOARD; ++irq) {
|
||||||
set_irq_chip (irq, &lpd7a40x_cpld_chip);
|
set_irq_chip (irq, &lpd7a40x_cpld_chip);
|
||||||
set_irq_handler (irq, do_edge_IRQ);
|
set_irq_handler (irq, do_level_IRQ);
|
||||||
set_irq_flags (irq, IRQF_VALID);
|
set_irq_flags (irq, IRQF_VALID);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -226,91 +288,109 @@ void __init lh7a40x_init_board_irq (void)
|
||||||
lpd7a40x_cpld_handler);
|
lpd7a40x_cpld_handler);
|
||||||
}
|
}
|
||||||
|
|
||||||
static struct map_desc lpd7a400_io_desc[] __initdata = {
|
static struct map_desc lpd7a40x_io_desc[] __initdata = {
|
||||||
{
|
{
|
||||||
.virtual = IO_VIRT,
|
.virtual = IO_VIRT,
|
||||||
.pfn = __phys_to_pfn(IO_PHYS),
|
.pfn = __phys_to_pfn(IO_PHYS),
|
||||||
.length = IO_SIZE,
|
.length = IO_SIZE,
|
||||||
.type = MT_DEVICE
|
.type = MT_DEVICE
|
||||||
}, { /* Mapping added to work around chip select problems */
|
},
|
||||||
|
{ /* Mapping added to work around chip select problems */
|
||||||
.virtual = IOBARRIER_VIRT,
|
.virtual = IOBARRIER_VIRT,
|
||||||
.pfn = __phys_to_pfn(IOBARRIER_PHYS),
|
.pfn = __phys_to_pfn(IOBARRIER_PHYS),
|
||||||
.length = IOBARRIER_SIZE,
|
.length = IOBARRIER_SIZE,
|
||||||
.type = MT_DEVICE
|
.type = MT_DEVICE
|
||||||
}, {
|
},
|
||||||
|
{
|
||||||
.virtual = CF_VIRT,
|
.virtual = CF_VIRT,
|
||||||
.pfn = __phys_to_pfn(CF_PHYS),
|
.pfn = __phys_to_pfn(CF_PHYS),
|
||||||
.length = CF_SIZE,
|
.length = CF_SIZE,
|
||||||
.type = MT_DEVICE
|
.type = MT_DEVICE
|
||||||
}, {
|
},
|
||||||
.virtual = CPLD02_VIRT,
|
{
|
||||||
.pfn = __phys_to_pfn(CPLD02_PHYS),
|
.virtual = CPLD02_VIRT,
|
||||||
.length = CPLD02_SIZE,
|
.pfn = __phys_to_pfn(CPLD02_PHYS),
|
||||||
.type = MT_DEVICE
|
.length = CPLD02_SIZE,
|
||||||
}, {
|
.type = MT_DEVICE
|
||||||
.virtual = CPLD06_VIRT,
|
},
|
||||||
.pfn = __phys_to_pfn(CPLD06_PHYS),
|
{
|
||||||
.length = CPLD06_SIZE,
|
.virtual = CPLD06_VIRT,
|
||||||
.type = MT_DEVICE
|
.pfn = __phys_to_pfn(CPLD06_PHYS),
|
||||||
}, {
|
.length = CPLD06_SIZE,
|
||||||
.virtual = CPLD08_VIRT,
|
.type = MT_DEVICE
|
||||||
.pfn = __phys_to_pfn(CPLD08_PHYS),
|
},
|
||||||
.length = CPLD08_SIZE,
|
{
|
||||||
.type = MT_DEVICE
|
.virtual = CPLD08_VIRT,
|
||||||
}, {
|
.pfn = __phys_to_pfn(CPLD08_PHYS),
|
||||||
.virtual = CPLD0C_VIRT,
|
.length = CPLD08_SIZE,
|
||||||
.pfn = __phys_to_pfn(CPLD0C_PHYS),
|
.type = MT_DEVICE
|
||||||
.length = CPLD0C_SIZE,
|
},
|
||||||
.type = MT_DEVICE
|
{
|
||||||
}, {
|
.virtual = CPLD08_VIRT,
|
||||||
.virtual = CPLD0E_VIRT,
|
.pfn = __phys_to_pfn(CPLD08_PHYS),
|
||||||
.pfn = __phys_to_pfn(CPLD0E_PHYS),
|
.length = CPLD08_SIZE,
|
||||||
.length = CPLD0E_SIZE,
|
.type = MT_DEVICE
|
||||||
.type = MT_DEVICE
|
},
|
||||||
}, {
|
{
|
||||||
.virtual = CPLD10_VIRT,
|
.virtual = CPLD0A_VIRT,
|
||||||
.pfn = __phys_to_pfn(CPLD10_PHYS),
|
.pfn = __phys_to_pfn(CPLD0A_PHYS),
|
||||||
.length = CPLD10_SIZE,
|
.length = CPLD0A_SIZE,
|
||||||
.type = MT_DEVICE
|
.type = MT_DEVICE
|
||||||
}, {
|
},
|
||||||
.virtual = CPLD12_VIRT,
|
{
|
||||||
.pfn = __phys_to_pfn(CPLD12_PHYS),
|
.virtual = CPLD0C_VIRT,
|
||||||
.length = CPLD12_SIZE,
|
.pfn = __phys_to_pfn(CPLD0C_PHYS),
|
||||||
.type = MT_DEVICE
|
.length = CPLD0C_SIZE,
|
||||||
}, {
|
.type = MT_DEVICE
|
||||||
.virtual = CPLD14_VIRT,
|
},
|
||||||
.pfn = __phys_to_pfn(CPLD14_PHYS),
|
{
|
||||||
.length = CPLD14_SIZE,
|
.virtual = CPLD0E_VIRT,
|
||||||
.type = MT_DEVICE
|
.pfn = __phys_to_pfn(CPLD0E_PHYS),
|
||||||
}, {
|
.length = CPLD0E_SIZE,
|
||||||
.virtual = CPLD16_VIRT,
|
.type = MT_DEVICE
|
||||||
.pfn = __phys_to_pfn(CPLD16_PHYS),
|
},
|
||||||
.length = CPLD16_SIZE,
|
{
|
||||||
.type = MT_DEVICE
|
.virtual = CPLD10_VIRT,
|
||||||
}, {
|
.pfn = __phys_to_pfn(CPLD10_PHYS),
|
||||||
.virtual = CPLD18_VIRT,
|
.length = CPLD10_SIZE,
|
||||||
.pfn = __phys_to_pfn(CPLD18_PHYS),
|
.type = MT_DEVICE
|
||||||
.length = CPLD18_SIZE,
|
},
|
||||||
.type = MT_DEVICE
|
{
|
||||||
}, {
|
.virtual = CPLD12_VIRT,
|
||||||
.virtual = CPLD1A_VIRT,
|
.pfn = __phys_to_pfn(CPLD12_PHYS),
|
||||||
.pfn = __phys_to_pfn(CPLD1A_PHYS),
|
.length = CPLD12_SIZE,
|
||||||
.length = CPLD1A_SIZE,
|
.type = MT_DEVICE
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.virtual = CPLD14_VIRT,
|
||||||
|
.pfn = __phys_to_pfn(CPLD14_PHYS),
|
||||||
|
.length = CPLD14_SIZE,
|
||||||
|
.type = MT_DEVICE
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.virtual = CPLD16_VIRT,
|
||||||
|
.pfn = __phys_to_pfn(CPLD16_PHYS),
|
||||||
|
.length = CPLD16_SIZE,
|
||||||
|
.type = MT_DEVICE
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.virtual = CPLD18_VIRT,
|
||||||
|
.pfn = __phys_to_pfn(CPLD18_PHYS),
|
||||||
|
.length = CPLD18_SIZE,
|
||||||
|
.type = MT_DEVICE
|
||||||
|
},
|
||||||
|
{
|
||||||
|
.virtual = CPLD1A_VIRT,
|
||||||
|
.pfn = __phys_to_pfn(CPLD1A_PHYS),
|
||||||
|
.length = CPLD1A_SIZE,
|
||||||
.type = MT_DEVICE
|
.type = MT_DEVICE
|
||||||
},
|
},
|
||||||
/* This mapping is redundant since the smc driver performs another. */
|
|
||||||
/* { CPLD00_VIRT, CPLD00_PHYS, CPLD00_SIZE, MT_DEVICE }, */
|
|
||||||
};
|
};
|
||||||
|
|
||||||
void __init
|
void __init
|
||||||
lpd7a400_map_io(void)
|
lpd7a40x_map_io(void)
|
||||||
{
|
{
|
||||||
iotable_init (lpd7a400_io_desc, ARRAY_SIZE (lpd7a400_io_desc));
|
iotable_init (lpd7a40x_io_desc, ARRAY_SIZE (lpd7a40x_io_desc));
|
||||||
|
|
||||||
/* Fixup (improve) Static Memory Controller settings */
|
|
||||||
SMC_BCR0 = 0x200039af; /* Boot Flash */
|
|
||||||
SMC_BCR6 = 0x1000fbe0; /* CPLD */
|
|
||||||
SMC_BCR7 = 0x1000b2c2; /* Compact Flash */
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef CONFIG_MACH_LPD7A400
|
#ifdef CONFIG_MACH_LPD7A400
|
||||||
|
@ -320,7 +400,7 @@ MACHINE_START (LPD7A400, "Logic Product Development LPD7A400-10")
|
||||||
.phys_io = 0x80000000,
|
.phys_io = 0x80000000,
|
||||||
.io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc,
|
.io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc,
|
||||||
.boot_params = 0xc0000100,
|
.boot_params = 0xc0000100,
|
||||||
.map_io = lpd7a400_map_io,
|
.map_io = lpd7a40x_map_io,
|
||||||
.init_irq = lh7a400_init_irq,
|
.init_irq = lh7a400_init_irq,
|
||||||
.timer = &lh7a40x_timer,
|
.timer = &lh7a40x_timer,
|
||||||
.init_machine = lpd7a40x_init,
|
.init_machine = lpd7a40x_init,
|
||||||
|
@ -335,7 +415,7 @@ MACHINE_START (LPD7A404, "Logic Product Development LPD7A404-10")
|
||||||
.phys_io = 0x80000000,
|
.phys_io = 0x80000000,
|
||||||
.io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc,
|
.io_pg_offst = ((io_p2v (0x80000000))>>18) & 0xfffc,
|
||||||
.boot_params = 0xc0000100,
|
.boot_params = 0xc0000100,
|
||||||
.map_io = lpd7a400_map_io,
|
.map_io = lpd7a40x_map_io,
|
||||||
.init_irq = lh7a404_init_irq,
|
.init_irq = lh7a404_init_irq,
|
||||||
.timer = &lh7a40x_timer,
|
.timer = &lh7a40x_timer,
|
||||||
.init_machine = lpd7a40x_init,
|
.init_machine = lpd7a40x_init,
|
||||||
|
|
|
@ -0,0 +1,241 @@
|
||||||
|
/*
|
||||||
|
* arch/arm/mach-lh7a40x/clcd.c
|
||||||
|
*
|
||||||
|
* Copyright (C) 2004 Marc Singer
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU General Public License
|
||||||
|
* version 2 as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
#include <linux/config.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/device.h>
|
||||||
|
#include <linux/dma-mapping.h>
|
||||||
|
#include <linux/sysdev.h>
|
||||||
|
#include <linux/interrupt.h>
|
||||||
|
|
||||||
|
//#include <linux/module.h>
|
||||||
|
//#include <linux/time.h>
|
||||||
|
//#include <asm/hardware.h>
|
||||||
|
|
||||||
|
//#include <asm/mach/time.h>
|
||||||
|
#include <asm/irq.h>
|
||||||
|
#include <asm/mach/irq.h>
|
||||||
|
|
||||||
|
#include <asm/system.h>
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <linux/amba/bus.h>
|
||||||
|
#include <linux/amba/clcd.h>
|
||||||
|
|
||||||
|
#define HRTFTC_HRSETUP __REG(HRTFTC_PHYS + 0x00)
|
||||||
|
#define HRTFTC_HRCON __REG(HRTFTC_PHYS + 0x04)
|
||||||
|
#define HRTFTC_HRTIMING1 __REG(HRTFTC_PHYS + 0x08)
|
||||||
|
#define HRTFTC_HRTIMING2 __REG(HRTFTC_PHYS + 0x0c)
|
||||||
|
|
||||||
|
#define ALI_SETUP __REG(ALI_PHYS + 0x00)
|
||||||
|
#define ALI_CONTROL __REG(ALI_PHYS + 0x04)
|
||||||
|
#define ALI_TIMING1 __REG(ALI_PHYS + 0x08)
|
||||||
|
#define ALI_TIMING2 __REG(ALI_PHYS + 0x0c)
|
||||||
|
|
||||||
|
#include "lcd-panel.h"
|
||||||
|
|
||||||
|
static void lh7a40x_clcd_disable (struct clcd_fb *fb)
|
||||||
|
{
|
||||||
|
#if defined (CONFIG_MACH_LPD7A400)
|
||||||
|
CPLD_CONTROL &= ~(1<<1); /* Disable LCD Vee */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (CONFIG_MACH_LPD7A404)
|
||||||
|
GPIO_PCD &= ~(1<<3); /* Disable LCD Vee */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (CONFIG_ARCH_LH7A400)
|
||||||
|
HRTFTC_HRSETUP &= ~(1<<13); /* Disable HRTFT controller */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (CONFIG_ARCH_LH7A404)
|
||||||
|
ALI_SETUP &= ~(1<<13); /* Disable ALI */
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
static void lh7a40x_clcd_enable (struct clcd_fb *fb)
|
||||||
|
{
|
||||||
|
struct clcd_panel_extra* extra
|
||||||
|
= (struct clcd_panel_extra*) fb->board_data;
|
||||||
|
|
||||||
|
#if defined (CONFIG_MACH_LPD7A400)
|
||||||
|
CPLD_CONTROL |= (1<<1); /* Enable LCD Vee */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (CONFIG_MACH_LPD7A404)
|
||||||
|
GPIO_PCDD &= ~(1<<3); /* Enable LCD Vee */
|
||||||
|
GPIO_PCD |= (1<<3);
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (CONFIG_ARCH_LH7A400)
|
||||||
|
|
||||||
|
if (extra) {
|
||||||
|
HRTFTC_HRSETUP
|
||||||
|
= (1 << 13)
|
||||||
|
| ((fb->fb.var.xres - 1) << 4)
|
||||||
|
| 0xc
|
||||||
|
| (extra->hrmode ? 1 : 0);
|
||||||
|
HRTFTC_HRCON
|
||||||
|
= ((extra->clsen ? 1 : 0) << 1)
|
||||||
|
| ((extra->spsen ? 1 : 0) << 0);
|
||||||
|
HRTFTC_HRTIMING1
|
||||||
|
= (extra->pcdel << 8)
|
||||||
|
| (extra->revdel << 4)
|
||||||
|
| (extra->lpdel << 0);
|
||||||
|
HRTFTC_HRTIMING2
|
||||||
|
= (extra->spldel << 9)
|
||||||
|
| (extra->pc2del << 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
HRTFTC_HRSETUP
|
||||||
|
= (1 << 13)
|
||||||
|
| 0xc;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (CONFIG_ARCH_LH7A404)
|
||||||
|
|
||||||
|
if (extra) {
|
||||||
|
ALI_SETUP
|
||||||
|
= (1 << 13)
|
||||||
|
| ((fb->fb.var.xres - 1) << 4)
|
||||||
|
| 0xc
|
||||||
|
| (extra->hrmode ? 1 : 0);
|
||||||
|
ALI_CONTROL
|
||||||
|
= ((extra->clsen ? 1 : 0) << 1)
|
||||||
|
| ((extra->spsen ? 1 : 0) << 0);
|
||||||
|
ALI_TIMING1
|
||||||
|
= (extra->pcdel << 8)
|
||||||
|
| (extra->revdel << 4)
|
||||||
|
| (extra->lpdel << 0);
|
||||||
|
ALI_TIMING2
|
||||||
|
= (extra->spldel << 9)
|
||||||
|
| (extra->pc2del << 0);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
ALI_SETUP
|
||||||
|
= (1 << 13)
|
||||||
|
| 0xc;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
#define FRAMESIZE(s) (((s) + PAGE_SIZE - 1)&PAGE_MASK)
|
||||||
|
|
||||||
|
static int lh7a40x_clcd_setup (struct clcd_fb *fb)
|
||||||
|
{
|
||||||
|
dma_addr_t dma;
|
||||||
|
u32 len = FRAMESIZE (lcd_panel.mode.xres*lcd_panel.mode.yres
|
||||||
|
*(lcd_panel.bpp/8));
|
||||||
|
|
||||||
|
fb->panel = &lcd_panel;
|
||||||
|
|
||||||
|
/* Enforce the sync polarity defaults */
|
||||||
|
if (!(fb->panel->tim2 & TIM2_IHS))
|
||||||
|
fb->fb.var.sync |= FB_SYNC_HOR_HIGH_ACT;
|
||||||
|
if (!(fb->panel->tim2 & TIM2_IVS))
|
||||||
|
fb->fb.var.sync |= FB_SYNC_VERT_HIGH_ACT;
|
||||||
|
|
||||||
|
#if defined (HAS_LCD_PANEL_EXTRA)
|
||||||
|
fb->board_data = &lcd_panel_extra;
|
||||||
|
#endif
|
||||||
|
|
||||||
|
fb->fb.screen_base
|
||||||
|
= dma_alloc_writecombine (&fb->dev->dev, len,
|
||||||
|
&dma, GFP_KERNEL);
|
||||||
|
printk ("CLCD: LCD setup fb virt 0x%p phys 0x%p l %x io 0x%p \n",
|
||||||
|
fb->fb.screen_base, (void*) dma, len,
|
||||||
|
(void*) io_p2v (CLCDC_PHYS));
|
||||||
|
printk ("CLCD: pixclock %d\n", lcd_panel.mode.pixclock);
|
||||||
|
|
||||||
|
if (!fb->fb.screen_base) {
|
||||||
|
printk(KERN_ERR "CLCD: unable to map framebuffer\n");
|
||||||
|
return -ENOMEM;
|
||||||
|
}
|
||||||
|
|
||||||
|
#if defined (USE_RGB555)
|
||||||
|
fb->fb.var.green.length = 5; /* Panel uses RGB 5:5:5 */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
fb->fb.fix.smem_start = dma;
|
||||||
|
fb->fb.fix.smem_len = len;
|
||||||
|
|
||||||
|
/* Drive PE4 high to prevent CPLD crash */
|
||||||
|
GPIO_PEDD |= (1<<4);
|
||||||
|
GPIO_PED |= (1<<4);
|
||||||
|
|
||||||
|
GPIO_PINMUX |= (1<<1) | (1<<0); /* LCDVD[15:4] */
|
||||||
|
|
||||||
|
// fb->fb.fbops->fb_check_var (&fb->fb.var, &fb->fb);
|
||||||
|
// fb->fb.fbops->fb_set_par (&fb->fb);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int lh7a40x_clcd_mmap (struct clcd_fb *fb, struct vm_area_struct *vma)
|
||||||
|
{
|
||||||
|
return dma_mmap_writecombine(&fb->dev->dev, vma,
|
||||||
|
fb->fb.screen_base,
|
||||||
|
fb->fb.fix.smem_start,
|
||||||
|
fb->fb.fix.smem_len);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void lh7a40x_clcd_remove (struct clcd_fb *fb)
|
||||||
|
{
|
||||||
|
dma_free_writecombine (&fb->dev->dev, fb->fb.fix.smem_len,
|
||||||
|
fb->fb.screen_base, fb->fb.fix.smem_start);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct clcd_board clcd_platform_data = {
|
||||||
|
.name = "lh7a40x FB",
|
||||||
|
.check = clcdfb_check,
|
||||||
|
.decode = clcdfb_decode,
|
||||||
|
.enable = lh7a40x_clcd_enable,
|
||||||
|
.setup = lh7a40x_clcd_setup,
|
||||||
|
.mmap = lh7a40x_clcd_mmap,
|
||||||
|
.remove = lh7a40x_clcd_remove,
|
||||||
|
.disable = lh7a40x_clcd_disable,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define IRQ_CLCDC (IRQ_LCDINTR)
|
||||||
|
|
||||||
|
#define AMBA_DEVICE(name,busid,base,plat,pid) \
|
||||||
|
static struct amba_device name##_device = { \
|
||||||
|
.dev = { \
|
||||||
|
.coherent_dma_mask = ~0, \
|
||||||
|
.bus_id = busid, \
|
||||||
|
.platform_data = plat, \
|
||||||
|
}, \
|
||||||
|
.res = { \
|
||||||
|
.start = base##_PHYS, \
|
||||||
|
.end = (base##_PHYS) + (4*1024) - 1, \
|
||||||
|
.flags = IORESOURCE_MEM, \
|
||||||
|
}, \
|
||||||
|
.dma_mask = ~0, \
|
||||||
|
.irq = { IRQ_##base, }, \
|
||||||
|
/* .dma = base##_DMA,*/ \
|
||||||
|
.periphid = pid, \
|
||||||
|
}
|
||||||
|
|
||||||
|
AMBA_DEVICE(clcd, "cldc-lh7a40x", CLCDC, &clcd_platform_data, 0x41110);
|
||||||
|
|
||||||
|
static struct amba_device *amba_devs[] __initdata = {
|
||||||
|
&clcd_device,
|
||||||
|
};
|
||||||
|
|
||||||
|
void __init lh7a40x_clcd_init (void)
|
||||||
|
{
|
||||||
|
int i;
|
||||||
|
int result;
|
||||||
|
printk ("CLCD: registering amba devices\n");
|
||||||
|
for (i = 0; i < ARRAY_SIZE(amba_devs); i++) {
|
||||||
|
struct amba_device *d = amba_devs[i];
|
||||||
|
result = amba_device_register(d, &iomem_resource);
|
||||||
|
printk (" %d -> %d\n", i ,result);
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,199 @@
|
||||||
|
/* arch/arm/mach-lh7a40x/clocks.c
|
||||||
|
*
|
||||||
|
* Copyright (C) 2004 Marc Singer
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU General Public License
|
||||||
|
* version 2 as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <linux/config.h>
|
||||||
|
#include <linux/cpufreq.h>
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/arch/clocks.h>
|
||||||
|
#include <linux/err.h>
|
||||||
|
|
||||||
|
struct module;
|
||||||
|
struct icst525_params;
|
||||||
|
|
||||||
|
struct clk {
|
||||||
|
struct list_head node;
|
||||||
|
unsigned long rate;
|
||||||
|
struct module *owner;
|
||||||
|
const char *name;
|
||||||
|
// void *data;
|
||||||
|
// const struct icst525_params *params;
|
||||||
|
// void (*setvco)(struct clk *, struct icst525_vco vco);
|
||||||
|
};
|
||||||
|
|
||||||
|
int clk_register(struct clk *clk);
|
||||||
|
void clk_unregister(struct clk *clk);
|
||||||
|
|
||||||
|
/* ----- */
|
||||||
|
|
||||||
|
#define MAINDIV1(c) (((c) >> 7) & 0x0f)
|
||||||
|
#define MAINDIV2(c) (((c) >> 11) & 0x1f)
|
||||||
|
#define PS(c) (((c) >> 18) & 0x03)
|
||||||
|
#define PREDIV(c) (((c) >> 2) & 0x1f)
|
||||||
|
#define HCLKDIV(c) (((c) >> 0) & 0x02)
|
||||||
|
#define PCLKDIV(c) (((c) >> 16) & 0x03)
|
||||||
|
|
||||||
|
unsigned int cpufreq_get (unsigned int cpu) /* in kHz */
|
||||||
|
{
|
||||||
|
return fclkfreq_get ()/1000;
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(cpufreq_get);
|
||||||
|
|
||||||
|
unsigned int fclkfreq_get (void)
|
||||||
|
{
|
||||||
|
unsigned int clkset = CSC_CLKSET;
|
||||||
|
unsigned int gclk
|
||||||
|
= XTAL_IN
|
||||||
|
/ (1 << PS(clkset))
|
||||||
|
* (MAINDIV1(clkset) + 2)
|
||||||
|
/ (PREDIV(clkset) + 2)
|
||||||
|
* (MAINDIV2(clkset) + 2)
|
||||||
|
;
|
||||||
|
return gclk;
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned int hclkfreq_get (void)
|
||||||
|
{
|
||||||
|
unsigned int clkset = CSC_CLKSET;
|
||||||
|
unsigned int hclk = fclkfreq_get () / (HCLKDIV(clkset) + 1);
|
||||||
|
|
||||||
|
return hclk;
|
||||||
|
}
|
||||||
|
|
||||||
|
unsigned int pclkfreq_get (void)
|
||||||
|
{
|
||||||
|
unsigned int clkset = CSC_CLKSET;
|
||||||
|
int pclkdiv = PCLKDIV(clkset);
|
||||||
|
unsigned int pclk;
|
||||||
|
if (pclkdiv == 0x3)
|
||||||
|
pclkdiv = 0x2;
|
||||||
|
pclk = hclkfreq_get () / (1 << pclkdiv);
|
||||||
|
|
||||||
|
return pclk;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* ----- */
|
||||||
|
|
||||||
|
static LIST_HEAD(clocks);
|
||||||
|
static DECLARE_MUTEX(clocks_sem);
|
||||||
|
|
||||||
|
struct clk *clk_get (struct device *dev, const char *id)
|
||||||
|
{
|
||||||
|
struct clk *p;
|
||||||
|
struct clk *clk = ERR_PTR(-ENOENT);
|
||||||
|
|
||||||
|
down (&clocks_sem);
|
||||||
|
list_for_each_entry (p, &clocks, node) {
|
||||||
|
if (strcmp (id, p->name) == 0
|
||||||
|
&& try_module_get(p->owner)) {
|
||||||
|
clk = p;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
up (&clocks_sem);
|
||||||
|
|
||||||
|
return clk;
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(clk_get);
|
||||||
|
|
||||||
|
void clk_put (struct clk *clk)
|
||||||
|
{
|
||||||
|
module_put(clk->owner);
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(clk_put);
|
||||||
|
|
||||||
|
int clk_enable (struct clk *clk)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(clk_enable);
|
||||||
|
|
||||||
|
void clk_disable (struct clk *clk)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(clk_disable);
|
||||||
|
|
||||||
|
int clk_use (struct clk *clk)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(clk_use);
|
||||||
|
|
||||||
|
void clk_unuse (struct clk *clk)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(clk_unuse);
|
||||||
|
|
||||||
|
unsigned long clk_get_rate (struct clk *clk)
|
||||||
|
{
|
||||||
|
return clk->rate;
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(clk_get_rate);
|
||||||
|
|
||||||
|
long clk_round_rate (struct clk *clk, unsigned long rate)
|
||||||
|
{
|
||||||
|
return rate;
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(clk_round_rate);
|
||||||
|
|
||||||
|
int clk_set_rate (struct clk *clk, unsigned long rate)
|
||||||
|
{
|
||||||
|
int ret = -EIO;
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(clk_set_rate);
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
/*
|
||||||
|
* These are fixed clocks.
|
||||||
|
*/
|
||||||
|
static struct clk kmi_clk = {
|
||||||
|
.name = "KMIREFCLK",
|
||||||
|
.rate = 24000000,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct clk uart_clk = {
|
||||||
|
.name = "UARTCLK",
|
||||||
|
.rate = 24000000,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct clk mmci_clk = {
|
||||||
|
.name = "MCLK",
|
||||||
|
.rate = 33000000,
|
||||||
|
};
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static struct clk clcd_clk = {
|
||||||
|
.name = "CLCDCLK",
|
||||||
|
.rate = 0,
|
||||||
|
};
|
||||||
|
|
||||||
|
int clk_register (struct clk *clk)
|
||||||
|
{
|
||||||
|
down (&clocks_sem);
|
||||||
|
list_add (&clk->node, &clocks);
|
||||||
|
up (&clocks_sem);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(clk_register);
|
||||||
|
|
||||||
|
void clk_unregister (struct clk *clk)
|
||||||
|
{
|
||||||
|
down (&clocks_sem);
|
||||||
|
list_del (&clk->node);
|
||||||
|
up (&clocks_sem);
|
||||||
|
}
|
||||||
|
EXPORT_SYMBOL(clk_unregister);
|
||||||
|
|
||||||
|
static int __init clk_init (void)
|
||||||
|
{
|
||||||
|
clk_register(&clcd_clk);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
arch_initcall(clk_init);
|
|
@ -12,6 +12,7 @@ extern struct sys_timer lh7a40x_timer;
|
||||||
|
|
||||||
extern void lh7a400_init_irq (void);
|
extern void lh7a400_init_irq (void);
|
||||||
extern void lh7a404_init_irq (void);
|
extern void lh7a404_init_irq (void);
|
||||||
|
extern void lh7a40x_clcd_init (void);
|
||||||
extern void lh7a40x_init_board_irq (void);
|
extern void lh7a40x_init_board_irq (void);
|
||||||
|
|
||||||
#define IRQ_DISPATCH(irq) desc_handle_irq((irq),(irq_desc + irq), regs)
|
#define IRQ_DISPATCH(irq) desc_handle_irq((irq),(irq_desc + irq), regs)
|
||||||
|
|
|
@ -28,13 +28,17 @@
|
||||||
|
|
||||||
static unsigned char irq_pri_vic1[] = {
|
static unsigned char irq_pri_vic1[] = {
|
||||||
#if defined (USE_PRIORITIES)
|
#if defined (USE_PRIORITIES)
|
||||||
IRQ_GPIO3INTR,
|
IRQ_GPIO3INTR, /* CPLD */
|
||||||
|
IRQ_DMAM2P4, IRQ_DMAM2P5, /* AC97 */
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
static unsigned char irq_pri_vic2[] = {
|
static unsigned char irq_pri_vic2[] = {
|
||||||
#if defined (USE_PRIORITIES)
|
#if defined (USE_PRIORITIES)
|
||||||
IRQ_T3UI, IRQ_GPIO7INTR,
|
IRQ_T3UI, /* Timer */
|
||||||
|
IRQ_GPIO7INTR, /* CPLD */
|
||||||
IRQ_UART1INTR, IRQ_UART2INTR, IRQ_UART3INTR,
|
IRQ_UART1INTR, IRQ_UART2INTR, IRQ_UART3INTR,
|
||||||
|
IRQ_LCDINTR, /* LCD */
|
||||||
|
IRQ_TSCINTR, /* ADC/Touchscreen */
|
||||||
#endif
|
#endif
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -98,10 +102,19 @@ static struct irqchip lh7a404_gpio_vic2_chip = {
|
||||||
|
|
||||||
/* IRQ initialization */
|
/* IRQ initialization */
|
||||||
|
|
||||||
|
#if defined (CONFIG_ARCH_LH7A400) && defined (CONFIG_ARCH_LH7A404)
|
||||||
|
extern void* branch_irq_lh7a400;
|
||||||
|
#endif
|
||||||
|
|
||||||
void __init lh7a404_init_irq (void)
|
void __init lh7a404_init_irq (void)
|
||||||
{
|
{
|
||||||
int irq;
|
int irq;
|
||||||
|
|
||||||
|
#if defined (CONFIG_ARCH_LH7A400) && defined (CONFIG_ARCH_LH7A404)
|
||||||
|
#define NOP 0xe1a00000 /* mov r0, r0 */
|
||||||
|
branch_irq_lh7a400 = NOP;
|
||||||
|
#endif
|
||||||
|
|
||||||
VIC1_INTENCLR = 0xffffffff;
|
VIC1_INTENCLR = 0xffffffff;
|
||||||
VIC2_INTENCLR = 0xffffffff;
|
VIC2_INTENCLR = 0xffffffff;
|
||||||
VIC1_INTSEL = 0; /* All IRQs */
|
VIC1_INTSEL = 0; /* All IRQs */
|
||||||
|
|
|
@ -0,0 +1,346 @@
|
||||||
|
/* lcd-panel.h
|
||||||
|
$Id$
|
||||||
|
|
||||||
|
written by Marc Singer
|
||||||
|
18 Jul 2005
|
||||||
|
|
||||||
|
Copyright (C) 2005 Marc Singer
|
||||||
|
|
||||||
|
-----------
|
||||||
|
DESCRIPTION
|
||||||
|
-----------
|
||||||
|
|
||||||
|
Only one panel may be defined at a time.
|
||||||
|
|
||||||
|
The pixel clock is calculated to be no greater than the target.
|
||||||
|
|
||||||
|
Each timing value is accompanied by a specification comment.
|
||||||
|
|
||||||
|
UNITS/MIN/TYP/MAX
|
||||||
|
|
||||||
|
Most of the units will be in clocks.
|
||||||
|
|
||||||
|
USE_RGB555
|
||||||
|
|
||||||
|
Define this macro to configure the AMBA LCD controller to use an
|
||||||
|
RGB555 encoding for the pels instead of the normal RGB565.
|
||||||
|
|
||||||
|
LPD9520, LPD79524, LPD7A400, LPD7A404-10, LPD7A404-11
|
||||||
|
|
||||||
|
These boards are best approximated by 555 for all panels. Some
|
||||||
|
can use an extra low-order bit of blue in bit 16 of the color
|
||||||
|
value, but we don't have a way to communicate this non-linear
|
||||||
|
mapping to the kernel.
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
#if !defined (__LCD_PANEL_H__)
|
||||||
|
# define __LCD_PANEL_H__
|
||||||
|
|
||||||
|
#if defined (MACH_LPD79520)\
|
||||||
|
|| defined (MACH_LPD79524)\
|
||||||
|
|| defined (MACH_LPD7A400)\
|
||||||
|
|| defined (MACH_LPD7A404)
|
||||||
|
# define USE_RGB555
|
||||||
|
#endif
|
||||||
|
|
||||||
|
struct clcd_panel_extra {
|
||||||
|
unsigned int hrmode;
|
||||||
|
unsigned int clsen;
|
||||||
|
unsigned int spsen;
|
||||||
|
unsigned int pcdel;
|
||||||
|
unsigned int revdel;
|
||||||
|
unsigned int lpdel;
|
||||||
|
unsigned int spldel;
|
||||||
|
unsigned int pc2del;
|
||||||
|
};
|
||||||
|
|
||||||
|
#define NS_TO_CLOCK(ns,c) ((((ns)*((c)/1000) + (1000000 - 1))/1000000))
|
||||||
|
#define CLOCK_TO_DIV(e,c) (((c) + (e) - 1)/(e))
|
||||||
|
|
||||||
|
#if defined CONFIG_FB_ARMCLCD_SHARP_LQ035Q7DB02_HRTFT
|
||||||
|
|
||||||
|
/* Logic Product Development LCD 3.5" QVGA HRTFT -10 */
|
||||||
|
/* Sharp PN LQ035Q7DB02 w/HRTFT controller chip */
|
||||||
|
|
||||||
|
#define PIX_CLOCK_TARGET (6800000)
|
||||||
|
#define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK)
|
||||||
|
#define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER)
|
||||||
|
|
||||||
|
static struct clcd_panel lcd_panel = {
|
||||||
|
.mode = {
|
||||||
|
.name = "3.5in QVGA (LQ035Q7DB02)",
|
||||||
|
.xres = 240,
|
||||||
|
.yres = 320,
|
||||||
|
.pixclock = PIX_CLOCK,
|
||||||
|
.left_margin = 16,
|
||||||
|
.right_margin = 21,
|
||||||
|
.upper_margin = 8, // line/8/8/8
|
||||||
|
.lower_margin = 5,
|
||||||
|
.hsync_len = 61,
|
||||||
|
.vsync_len = NS_TO_CLOCK (60, PIX_CLOCK),
|
||||||
|
.vmode = FB_VMODE_NONINTERLACED,
|
||||||
|
},
|
||||||
|
.width = -1,
|
||||||
|
.height = -1,
|
||||||
|
.tim2 = TIM2_IPC | (PIX_CLOCK_DIVIDER - 2),
|
||||||
|
.cntl = CNTL_LCDTFT | CNTL_WATERMARK,
|
||||||
|
.bpp = 16,
|
||||||
|
};
|
||||||
|
|
||||||
|
#define HAS_LCD_PANEL_EXTRA
|
||||||
|
|
||||||
|
static struct clcd_panel_extra lcd_panel_extra = {
|
||||||
|
.hrmode = 1,
|
||||||
|
.clsen = 1,
|
||||||
|
.spsen = 1,
|
||||||
|
.pcdel = 8,
|
||||||
|
.revdel = 7,
|
||||||
|
.lpdel = 13,
|
||||||
|
.spldel = 77,
|
||||||
|
.pc2del = 208,
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined CONFIG_FB_ARMCLCD_SHARP_LQ057Q3DC02
|
||||||
|
|
||||||
|
/* Logic Product Development LCD 5.7" QVGA -10 */
|
||||||
|
/* Sharp PN LQ057Q3DC02 */
|
||||||
|
/* QVGA mode, V/Q=LOW */
|
||||||
|
|
||||||
|
/* From Sharp on 2006.1.3. I believe some of the values are incorrect
|
||||||
|
* based on the datasheet.
|
||||||
|
|
||||||
|
Timing0 TIMING1 TIMING2 CONTROL
|
||||||
|
0x140A0C4C 0x080504EF 0x013F380D 0x00000829
|
||||||
|
HBP= 20 VBP= 8 BCD= 0
|
||||||
|
HFP= 10 VFP= 5 CPL=319
|
||||||
|
HSW= 12 VSW= 1 IOE= 0
|
||||||
|
PPL= 19 LPP=239 IPC= 1
|
||||||
|
IHS= 1
|
||||||
|
IVS= 1
|
||||||
|
ACB= 0
|
||||||
|
CSEL= 0
|
||||||
|
PCD= 13
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* The full horozontal cycle (Th) is clock/360/400/450. */
|
||||||
|
/* The full vertical cycle (Tv) is line/251/262/280. */
|
||||||
|
|
||||||
|
#define PIX_CLOCK_TARGET (6300000) /* -/6.3/7 MHz */
|
||||||
|
#define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK)
|
||||||
|
#define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER)
|
||||||
|
|
||||||
|
static struct clcd_panel lcd_panel = {
|
||||||
|
.mode = {
|
||||||
|
.name = "5.7in QVGA (LQ057Q3DC02)",
|
||||||
|
.xres = 320,
|
||||||
|
.yres = 240,
|
||||||
|
.pixclock = PIX_CLOCK,
|
||||||
|
.left_margin = 11,
|
||||||
|
.right_margin = 400-11-320-2,
|
||||||
|
.upper_margin = 7, // line/7/7/7
|
||||||
|
.lower_margin = 262-7-240-2,
|
||||||
|
.hsync_len = 2, // clk/2/96/200
|
||||||
|
.vsync_len = 2, // line/2/-/34
|
||||||
|
.vmode = FB_VMODE_NONINTERLACED,
|
||||||
|
},
|
||||||
|
.width = -1,
|
||||||
|
.height = -1,
|
||||||
|
.tim2 = TIM2_IHS | TIM2_IVS
|
||||||
|
| (PIX_CLOCK_DIVIDER - 2),
|
||||||
|
.cntl = CNTL_LCDTFT | CNTL_WATERMARK,
|
||||||
|
.bpp = 16,
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined CONFIG_FB_ARMCLCD_SHARP_LQ64D343
|
||||||
|
|
||||||
|
/* Logic Product Development LCD 6.4" VGA -10 */
|
||||||
|
/* Sharp PN LQ64D343 */
|
||||||
|
|
||||||
|
/* The full horozontal cycle (Th) is clock/750/800/900. */
|
||||||
|
/* The full vertical cycle (Tv) is line/515/525/560. */
|
||||||
|
|
||||||
|
#define PIX_CLOCK_TARGET (28330000)
|
||||||
|
#define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK)
|
||||||
|
#define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER)
|
||||||
|
|
||||||
|
static struct clcd_panel lcd_panel = {
|
||||||
|
.mode = {
|
||||||
|
.name = "6.4in QVGA (LQ64D343)",
|
||||||
|
.xres = 640,
|
||||||
|
.yres = 480,
|
||||||
|
.pixclock = PIX_CLOCK,
|
||||||
|
.left_margin = 32,
|
||||||
|
.right_margin = 800-32-640-96,
|
||||||
|
.upper_margin = 32, // line/34/34/34
|
||||||
|
.lower_margin = 540-32-480-2,
|
||||||
|
.hsync_len = 96, // clk/2/96/200
|
||||||
|
.vsync_len = 2, // line/2/-/34
|
||||||
|
.vmode = FB_VMODE_NONINTERLACED,
|
||||||
|
},
|
||||||
|
.width = -1,
|
||||||
|
.height = -1,
|
||||||
|
.tim2 = TIM2_IHS | TIM2_IVS
|
||||||
|
| (PIX_CLOCK_DIVIDER - 2),
|
||||||
|
.cntl = CNTL_LCDTFT | CNTL_WATERMARK,
|
||||||
|
.bpp = 16,
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined CONFIG_FB_ARMCLCD_SHARP_LQ10D368
|
||||||
|
|
||||||
|
/* Logic Product Development LCD 10.4" VGA -10 */
|
||||||
|
/* Sharp PN LQ10D368 */
|
||||||
|
|
||||||
|
#define PIX_CLOCK_TARGET (28330000)
|
||||||
|
#define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK)
|
||||||
|
#define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER)
|
||||||
|
|
||||||
|
static struct clcd_panel lcd_panel = {
|
||||||
|
.mode = {
|
||||||
|
.name = "10.4in VGA (LQ10D368)",
|
||||||
|
.xres = 640,
|
||||||
|
.yres = 480,
|
||||||
|
.pixclock = PIX_CLOCK,
|
||||||
|
.left_margin = 21,
|
||||||
|
.right_margin = 15,
|
||||||
|
.upper_margin = 34,
|
||||||
|
.lower_margin = 5,
|
||||||
|
.hsync_len = 96,
|
||||||
|
.vsync_len = 16,
|
||||||
|
.vmode = FB_VMODE_NONINTERLACED,
|
||||||
|
},
|
||||||
|
.width = -1,
|
||||||
|
.height = -1,
|
||||||
|
.tim2 = TIM2_IHS | TIM2_IVS
|
||||||
|
| (PIX_CLOCK_DIVIDER - 2),
|
||||||
|
.cntl = CNTL_LCDTFT | CNTL_WATERMARK,
|
||||||
|
.bpp = 16,
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined CONFIG_FB_ARMCLCD_SHARP_LQ121S1DG41
|
||||||
|
|
||||||
|
/* Logic Product Development LCD 12.1" SVGA -10 */
|
||||||
|
/* Sharp PN LQ121S1DG41, was LQ121S1DG31 */
|
||||||
|
|
||||||
|
/* Note that with a 99993900 Hz HCLK, it is not possible to hit the
|
||||||
|
* target clock frequency range of 35MHz to 42MHz. */
|
||||||
|
|
||||||
|
/* If the target pixel clock is substantially lower than the panel
|
||||||
|
* spec, this is done to prevent the LCD display from glitching when
|
||||||
|
* the CPU is under load. A pixel clock higher than 25MHz
|
||||||
|
* (empirically determined) will compete with the CPU for bus cycles
|
||||||
|
* for the Ethernet chip. However, even a pixel clock of 10MHz
|
||||||
|
* competes with Compact Flash interface during some operations
|
||||||
|
* (fdisk, e2fsck). And, at that speed the display may have a visible
|
||||||
|
* flicker. */
|
||||||
|
|
||||||
|
/* The full horozontal cycle (Th) is clock/832/1056/1395. */
|
||||||
|
|
||||||
|
#define PIX_CLOCK_TARGET (20000000)
|
||||||
|
#define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK)
|
||||||
|
#define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER)
|
||||||
|
|
||||||
|
static struct clcd_panel lcd_panel = {
|
||||||
|
.mode = {
|
||||||
|
.name = "12.1in SVGA (LQ121S1DG41)",
|
||||||
|
.xres = 800,
|
||||||
|
.yres = 600,
|
||||||
|
.pixclock = PIX_CLOCK,
|
||||||
|
.left_margin = 89, // ns/5/-/(1/PIX_CLOCK)-10
|
||||||
|
.right_margin = 1056-800-89-128,
|
||||||
|
.upper_margin = 23, // line/23/23/23
|
||||||
|
.lower_margin = 44,
|
||||||
|
.hsync_len = 128, // clk/2/128/200
|
||||||
|
.vsync_len = 4, // line/2/4/6
|
||||||
|
.vmode = FB_VMODE_NONINTERLACED,
|
||||||
|
},
|
||||||
|
.width = -1,
|
||||||
|
.height = -1,
|
||||||
|
.tim2 = TIM2_IHS | TIM2_IVS
|
||||||
|
| (PIX_CLOCK_DIVIDER - 2),
|
||||||
|
.cntl = CNTL_LCDTFT | CNTL_WATERMARK,
|
||||||
|
.bpp = 16,
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined CONFIG_FB_ARMCLCD_HITACHI
|
||||||
|
|
||||||
|
/* Hitachi*/
|
||||||
|
/* Submitted by Michele Da Rold <michele.darold@ecsproject.com> */
|
||||||
|
|
||||||
|
#define PIX_CLOCK_TARGET (49000000)
|
||||||
|
#define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK)
|
||||||
|
#define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER)
|
||||||
|
|
||||||
|
static struct clcd_panel lcd_panel = {
|
||||||
|
.mode = {
|
||||||
|
.name = "Hitachi 800x480",
|
||||||
|
.xres = 800,
|
||||||
|
.yres = 480,
|
||||||
|
.pixclock = PIX_CLOCK,
|
||||||
|
.left_margin = 88,
|
||||||
|
.right_margin = 40,
|
||||||
|
.upper_margin = 32,
|
||||||
|
.lower_margin = 11,
|
||||||
|
.hsync_len = 128,
|
||||||
|
.vsync_len = 2,
|
||||||
|
.vmode = FB_VMODE_NONINTERLACED,
|
||||||
|
},
|
||||||
|
.width = -1,
|
||||||
|
.height = -1,
|
||||||
|
.tim2 = TIM2_IPC | TIM2_IHS | TIM2_IVS
|
||||||
|
| (PIX_CLOCK_DIVIDER - 2),
|
||||||
|
.cntl = CNTL_LCDTFT | CNTL_WATERMARK,
|
||||||
|
.bpp = 16,
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
#if defined CONFIG_FB_ARMCLCD_AUO_A070VW01_WIDE
|
||||||
|
|
||||||
|
/* AU Optotronics A070VW01 7.0 Wide Screen color Display*/
|
||||||
|
/* Submitted by Michele Da Rold <michele.darold@ecsproject.com> */
|
||||||
|
|
||||||
|
#define PIX_CLOCK_TARGET (10000000)
|
||||||
|
#define PIX_CLOCK_DIVIDER CLOCK_TO_DIV (PIX_CLOCK_TARGET, HCLK)
|
||||||
|
#define PIX_CLOCK (HCLK/PIX_CLOCK_DIVIDER)
|
||||||
|
|
||||||
|
static struct clcd_panel lcd_panel = {
|
||||||
|
.mode = {
|
||||||
|
.name = "7.0in Wide (A070VW01)",
|
||||||
|
.xres = 480,
|
||||||
|
.yres = 234,
|
||||||
|
.pixclock = PIX_CLOCK,
|
||||||
|
.left_margin = 30,
|
||||||
|
.right_margin = 25,
|
||||||
|
.upper_margin = 14,
|
||||||
|
.lower_margin = 12,
|
||||||
|
.hsync_len = 100,
|
||||||
|
.vsync_len = 1,
|
||||||
|
.vmode = FB_VMODE_NONINTERLACED,
|
||||||
|
},
|
||||||
|
.width = -1,
|
||||||
|
.height = -1,
|
||||||
|
.tim2 = TIM2_IPC | TIM2_IHS | TIM2_IVS
|
||||||
|
| (PIX_CLOCK_DIVIDER - 2),
|
||||||
|
.cntl = CNTL_LCDTFT | CNTL_WATERMARK,
|
||||||
|
.bpp = 16,
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#undef NS_TO_CLOCK
|
||||||
|
#undef CLOCK_TO_DIV
|
||||||
|
|
||||||
|
#endif /* __LCD_PANEL_H__ */
|
|
@ -0,0 +1,343 @@
|
||||||
|
/* arch/arm/mach-lh7a40x/ssp-cpld.c
|
||||||
|
*
|
||||||
|
* Copyright (C) 2004,2005 Marc Singer
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or
|
||||||
|
* modify it under the terms of the GNU General Public License
|
||||||
|
* version 2 as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* SSP/SPI driver for the CardEngine CPLD.
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
|
/* NOTES
|
||||||
|
-----
|
||||||
|
|
||||||
|
o *** This driver is cribbed from the 7952x implementation.
|
||||||
|
Some comments may not apply.
|
||||||
|
|
||||||
|
o This driver contains sufficient logic to control either the
|
||||||
|
serial EEPROMs or the audio codec. It is included in the kernel
|
||||||
|
to support the codec. The EEPROMs are really the responsibility
|
||||||
|
of the boot loader and should probably be left alone.
|
||||||
|
|
||||||
|
o The code must be augmented to cope with multiple, simultaneous
|
||||||
|
clients.
|
||||||
|
o The audio codec writes to the codec chip whenever playback
|
||||||
|
starts.
|
||||||
|
o The touchscreen driver writes to the ads chip every time it
|
||||||
|
samples.
|
||||||
|
o The audio codec must write 16 bits, but the touch chip writes
|
||||||
|
are 8 bits long.
|
||||||
|
o We need to be able to keep these configurations separate while
|
||||||
|
simultaneously active.
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/kernel.h>
|
||||||
|
//#include <linux/sched.h>
|
||||||
|
#include <linux/errno.h>
|
||||||
|
#include <linux/interrupt.h>
|
||||||
|
//#include <linux/ioport.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/delay.h>
|
||||||
|
#include <linux/spinlock.h>
|
||||||
|
|
||||||
|
#include <asm/io.h>
|
||||||
|
#include <asm/irq.h>
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
|
||||||
|
#include <asm/arch/ssp.h>
|
||||||
|
|
||||||
|
//#define TALK
|
||||||
|
|
||||||
|
#if defined (TALK)
|
||||||
|
#define PRINTK(f...) printk (f)
|
||||||
|
#else
|
||||||
|
#define PRINTK(f...) do {} while (0)
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#if defined (CONFIG_ARCH_LH7A400)
|
||||||
|
# define CPLD_SPID __REGP16(CPLD06_VIRT) /* SPI data */
|
||||||
|
# define CPLD_SPIC __REGP16(CPLD08_VIRT) /* SPI control */
|
||||||
|
# define CPLD_SPIC_CS_CODEC (1<<0)
|
||||||
|
# define CPLD_SPIC_CS_TOUCH (1<<1)
|
||||||
|
# define CPLD_SPIC_WRITE (0<<2)
|
||||||
|
# define CPLD_SPIC_READ (1<<2)
|
||||||
|
# define CPLD_SPIC_DONE (1<<3) /* r/o */
|
||||||
|
# define CPLD_SPIC_LOAD (1<<4)
|
||||||
|
# define CPLD_SPIC_START (1<<4)
|
||||||
|
# define CPLD_SPIC_LOADED (1<<5) /* r/o */
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#define CPLD_SPI __REGP16(CPLD0A_VIRT) /* SPI operation */
|
||||||
|
#define CPLD_SPI_CS_EEPROM (1<<3)
|
||||||
|
#define CPLD_SPI_SCLK (1<<2)
|
||||||
|
#define CPLD_SPI_TX_SHIFT (1)
|
||||||
|
#define CPLD_SPI_TX (1<<CPLD_SPI_TX_SHIFT)
|
||||||
|
#define CPLD_SPI_RX_SHIFT (0)
|
||||||
|
#define CPLD_SPI_RX (1<<CPLD_SPI_RX_SHIFT)
|
||||||
|
|
||||||
|
/* *** FIXME: these timing values are substantially larger than the
|
||||||
|
*** chip requires. We may implement an nsleep () function. */
|
||||||
|
#define T_SKH 1 /* Clock time high (us) */
|
||||||
|
#define T_SKL 1 /* Clock time low (us) */
|
||||||
|
#define T_CS 1 /* Minimum chip select low time (us) */
|
||||||
|
#define T_CSS 1 /* Minimum chip select setup time (us) */
|
||||||
|
#define T_DIS 1 /* Data setup time (us) */
|
||||||
|
|
||||||
|
/* EEPROM SPI bits */
|
||||||
|
#define P_START (1<<9)
|
||||||
|
#define P_WRITE (1<<7)
|
||||||
|
#define P_READ (2<<7)
|
||||||
|
#define P_ERASE (3<<7)
|
||||||
|
#define P_EWDS (0<<7)
|
||||||
|
#define P_WRAL (0<<7)
|
||||||
|
#define P_ERAL (0<<7)
|
||||||
|
#define P_EWEN (0<<7)
|
||||||
|
#define P_A_EWDS (0<<5)
|
||||||
|
#define P_A_WRAL (1<<5)
|
||||||
|
#define P_A_ERAL (2<<5)
|
||||||
|
#define P_A_EWEN (3<<5)
|
||||||
|
|
||||||
|
struct ssp_configuration {
|
||||||
|
int device;
|
||||||
|
int mode;
|
||||||
|
int speed;
|
||||||
|
int frame_size_write;
|
||||||
|
int frame_size_read;
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct ssp_configuration ssp_configuration;
|
||||||
|
static spinlock_t ssp_lock;
|
||||||
|
|
||||||
|
static void enable_cs (void)
|
||||||
|
{
|
||||||
|
switch (ssp_configuration.device) {
|
||||||
|
case DEVICE_EEPROM:
|
||||||
|
CPLD_SPI |= CPLD_SPI_CS_EEPROM;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
udelay (T_CSS);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void disable_cs (void)
|
||||||
|
{
|
||||||
|
switch (ssp_configuration.device) {
|
||||||
|
case DEVICE_EEPROM:
|
||||||
|
CPLD_SPI &= ~CPLD_SPI_CS_EEPROM;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
udelay (T_CS);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void pulse_clock (void)
|
||||||
|
{
|
||||||
|
CPLD_SPI |= CPLD_SPI_SCLK;
|
||||||
|
udelay (T_SKH);
|
||||||
|
CPLD_SPI &= ~CPLD_SPI_SCLK;
|
||||||
|
udelay (T_SKL);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* execute_spi_command
|
||||||
|
|
||||||
|
sends an spi command to a device. It first sends cwrite bits from
|
||||||
|
v. If cread is greater than zero it will read cread bits
|
||||||
|
(discarding the leading 0 bit) and return them. If cread is less
|
||||||
|
than zero it will check for completetion status and return 0 on
|
||||||
|
success or -1 on timeout. If cread is zero it does nothing other
|
||||||
|
than sending the command.
|
||||||
|
|
||||||
|
On the LPD7A400, we can only read or write multiples of 8 bits on
|
||||||
|
the codec and the touch screen device. Here, we round up.
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
static int execute_spi_command (int v, int cwrite, int cread)
|
||||||
|
{
|
||||||
|
unsigned long l = 0;
|
||||||
|
|
||||||
|
#if defined (CONFIG_MACH_LPD7A400)
|
||||||
|
/* The codec and touch devices cannot be bit-banged. Instead,
|
||||||
|
* the CPLD provides an eight-bit shift register and a crude
|
||||||
|
* interface. */
|
||||||
|
if ( ssp_configuration.device == DEVICE_CODEC
|
||||||
|
|| ssp_configuration.device == DEVICE_TOUCH) {
|
||||||
|
int select = 0;
|
||||||
|
|
||||||
|
PRINTK ("spi(%d %d.%d) 0x%04x",
|
||||||
|
ssp_configuration.device, cwrite, cread,
|
||||||
|
v);
|
||||||
|
#if defined (TALK)
|
||||||
|
if (ssp_configuration.device == DEVICE_CODEC)
|
||||||
|
PRINTK (" 0x%03x -> %2d", v & 0x1ff, (v >> 9) & 0x7f);
|
||||||
|
#endif
|
||||||
|
PRINTK ("\n");
|
||||||
|
|
||||||
|
if (ssp_configuration.device == DEVICE_CODEC)
|
||||||
|
select = CPLD_SPIC_CS_CODEC;
|
||||||
|
if (ssp_configuration.device == DEVICE_TOUCH)
|
||||||
|
select = CPLD_SPIC_CS_TOUCH;
|
||||||
|
if (cwrite) {
|
||||||
|
for (cwrite = (cwrite + 7)/8; cwrite-- > 0; ) {
|
||||||
|
CPLD_SPID = (v >> (8*cwrite)) & 0xff;
|
||||||
|
CPLD_SPIC = select | CPLD_SPIC_LOAD;
|
||||||
|
while (!(CPLD_SPIC & CPLD_SPIC_LOADED))
|
||||||
|
;
|
||||||
|
CPLD_SPIC = select;
|
||||||
|
while (!(CPLD_SPIC & CPLD_SPIC_DONE))
|
||||||
|
;
|
||||||
|
}
|
||||||
|
v = 0;
|
||||||
|
}
|
||||||
|
if (cread) {
|
||||||
|
mdelay (2); /* *** FIXME: required by ads7843? */
|
||||||
|
v = 0;
|
||||||
|
for (cread = (cread + 7)/8; cread-- > 0;) {
|
||||||
|
CPLD_SPID = 0;
|
||||||
|
CPLD_SPIC = select | CPLD_SPIC_READ
|
||||||
|
| CPLD_SPIC_START;
|
||||||
|
while (!(CPLD_SPIC & CPLD_SPIC_LOADED))
|
||||||
|
;
|
||||||
|
CPLD_SPIC = select | CPLD_SPIC_READ;
|
||||||
|
while (!(CPLD_SPIC & CPLD_SPIC_DONE))
|
||||||
|
;
|
||||||
|
v = (v << 8) | CPLD_SPID;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return v;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
PRINTK ("spi(%d) 0x%04x -> 0x%x\r\n", ssp_configuration.device,
|
||||||
|
v & 0x1ff, (v >> 9) & 0x7f);
|
||||||
|
|
||||||
|
enable_cs ();
|
||||||
|
|
||||||
|
v <<= CPLD_SPI_TX_SHIFT; /* Correction for position of SPI_TX bit */
|
||||||
|
while (cwrite--) {
|
||||||
|
CPLD_SPI
|
||||||
|
= (CPLD_SPI & ~CPLD_SPI_TX)
|
||||||
|
| ((v >> cwrite) & CPLD_SPI_TX);
|
||||||
|
udelay (T_DIS);
|
||||||
|
pulse_clock ();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (cread < 0) {
|
||||||
|
int delay = 10;
|
||||||
|
disable_cs ();
|
||||||
|
udelay (1);
|
||||||
|
enable_cs ();
|
||||||
|
|
||||||
|
l = -1;
|
||||||
|
do {
|
||||||
|
if (CPLD_SPI & CPLD_SPI_RX) {
|
||||||
|
l = 0;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
} while (udelay (1), --delay);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
/* We pulse the clock before the data to skip the leading zero. */
|
||||||
|
while (cread-- > 0) {
|
||||||
|
pulse_clock ();
|
||||||
|
l = (l<<1)
|
||||||
|
| (((CPLD_SPI & CPLD_SPI_RX)
|
||||||
|
>> CPLD_SPI_RX_SHIFT) & 0x1);
|
||||||
|
}
|
||||||
|
|
||||||
|
disable_cs ();
|
||||||
|
return l;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int ssp_init (void)
|
||||||
|
{
|
||||||
|
spin_lock_init (&ssp_lock);
|
||||||
|
memset (&ssp_configuration, 0, sizeof (ssp_configuration));
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/* ssp_chip_select
|
||||||
|
|
||||||
|
drops the chip select line for the CPLD shift-register controlled
|
||||||
|
devices. It doesn't enable chip
|
||||||
|
|
||||||
|
*/
|
||||||
|
|
||||||
|
static void ssp_chip_select (int enable)
|
||||||
|
{
|
||||||
|
#if defined (CONFIG_MACH_LPD7A400)
|
||||||
|
int select;
|
||||||
|
|
||||||
|
if (ssp_configuration.device == DEVICE_CODEC)
|
||||||
|
select = CPLD_SPIC_CS_CODEC;
|
||||||
|
else if (ssp_configuration.device == DEVICE_TOUCH)
|
||||||
|
select = CPLD_SPIC_CS_TOUCH;
|
||||||
|
else
|
||||||
|
return;
|
||||||
|
|
||||||
|
if (enable)
|
||||||
|
CPLD_SPIC = select;
|
||||||
|
else
|
||||||
|
CPLD_SPIC = 0;
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
|
static void ssp_acquire (void)
|
||||||
|
{
|
||||||
|
spin_lock (&ssp_lock);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void ssp_release (void)
|
||||||
|
{
|
||||||
|
ssp_chip_select (0); /* just in case */
|
||||||
|
spin_unlock (&ssp_lock);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int ssp_configure (int device, int mode, int speed,
|
||||||
|
int frame_size_write, int frame_size_read)
|
||||||
|
{
|
||||||
|
ssp_configuration.device = device;
|
||||||
|
ssp_configuration.mode = mode;
|
||||||
|
ssp_configuration.speed = speed;
|
||||||
|
ssp_configuration.frame_size_write = frame_size_write;
|
||||||
|
ssp_configuration.frame_size_read = frame_size_read;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int ssp_read (void)
|
||||||
|
{
|
||||||
|
return execute_spi_command (0, 0, ssp_configuration.frame_size_read);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int ssp_write (u16 data)
|
||||||
|
{
|
||||||
|
execute_spi_command (data, ssp_configuration.frame_size_write, 0);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int ssp_write_read (u16 data)
|
||||||
|
{
|
||||||
|
return execute_spi_command (data, ssp_configuration.frame_size_write,
|
||||||
|
ssp_configuration.frame_size_read);
|
||||||
|
}
|
||||||
|
|
||||||
|
struct ssp_driver lh7a40x_cpld_ssp_driver = {
|
||||||
|
.init = ssp_init,
|
||||||
|
.acquire = ssp_acquire,
|
||||||
|
.release = ssp_release,
|
||||||
|
.configure = ssp_configure,
|
||||||
|
.chip_select = ssp_chip_select,
|
||||||
|
.read = ssp_read,
|
||||||
|
.write = ssp_write,
|
||||||
|
.write_read = ssp_write_read,
|
||||||
|
};
|
||||||
|
|
||||||
|
|
||||||
|
MODULE_AUTHOR("Marc Singer");
|
||||||
|
MODULE_DESCRIPTION("LPD7A40X CPLD SPI driver");
|
||||||
|
MODULE_LICENSE("GPL");
|
|
@ -1,4 +1,4 @@
|
||||||
/*
|
/*
|
||||||
* arch/arm/mach-lh7a40x/time.c
|
* arch/arm/mach-lh7a40x/time.c
|
||||||
*
|
*
|
||||||
* Copyright (C) 2004 Logic Product Development
|
* Copyright (C) 2004 Logic Product Development
|
||||||
|
@ -57,7 +57,7 @@ static struct irqaction lh7a40x_timer_irq = {
|
||||||
.handler = lh7a40x_timer_interrupt,
|
.handler = lh7a40x_timer_interrupt,
|
||||||
};
|
};
|
||||||
|
|
||||||
static void __init lh7a40x_timer_init(void)
|
static void __init lh7a40x_timer_init (void)
|
||||||
{
|
{
|
||||||
/* Stop/disable all timers */
|
/* Stop/disable all timers */
|
||||||
TIMER_CONTROL1 = 0;
|
TIMER_CONTROL1 = 0;
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
menu "NetX Implementations"
|
||||||
|
depends on ARCH_NETX
|
||||||
|
|
||||||
|
config MACH_NXDKN
|
||||||
|
bool "Enable Hilscher nxdkn Eval Board support"
|
||||||
|
depends on ARCH_NETX
|
||||||
|
help
|
||||||
|
Board support for the Hilscher NetX Eval Board
|
||||||
|
|
||||||
|
config MACH_NXDB500
|
||||||
|
bool "Enable Hilscher nxdb500 Eval Board support"
|
||||||
|
depends on ARCH_NETX
|
||||||
|
select ARM_AMBA
|
||||||
|
help
|
||||||
|
Board support for the Hilscher nxdb500 Eval Board
|
||||||
|
|
||||||
|
config MACH_NXEB500HMI
|
||||||
|
bool "Enable Hilscher nxeb500hmi Eval Board support"
|
||||||
|
depends on ARCH_NETX
|
||||||
|
select ARM_AMBA
|
||||||
|
help
|
||||||
|
Board support for the Hilscher nxeb500hmi Eval Board
|
||||||
|
|
||||||
|
endmenu
|
|
@ -0,0 +1,15 @@
|
||||||
|
#
|
||||||
|
# Makefile for the linux kernel.
|
||||||
|
#
|
||||||
|
# Note! Dependencies are done automagically by 'make dep', which also
|
||||||
|
# removes any old dependencies. DON'T put your own dependencies here
|
||||||
|
# unless it's something special (ie not a .c file).
|
||||||
|
|
||||||
|
# Object file lists.
|
||||||
|
|
||||||
|
obj-y += time.o generic.o pfifo.o xc.o
|
||||||
|
|
||||||
|
# Specific board support
|
||||||
|
obj-$(CONFIG_MACH_NXDKN) += nxdkn.o
|
||||||
|
obj-$(CONFIG_MACH_NXDB500) += nxdb500.o fb.o
|
||||||
|
obj-$(CONFIG_MACH_NXEB500HMI) += nxeb500hmi.o fb.o
|
|
@ -0,0 +1,2 @@
|
||||||
|
zreladdr-y := 0x80008000
|
||||||
|
|
|
@ -0,0 +1,114 @@
|
||||||
|
/*
|
||||||
|
* arch/arm/mach-netx/fb.c
|
||||||
|
*
|
||||||
|
* Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2
|
||||||
|
* as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <linux/device.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/dma-mapping.h>
|
||||||
|
#include <linux/amba/bus.h>
|
||||||
|
#include <linux/amba/clcd.h>
|
||||||
|
|
||||||
|
#include <asm/arch/netx-regs.h>
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
|
||||||
|
struct clk {};
|
||||||
|
|
||||||
|
static struct clk fb_clk;
|
||||||
|
|
||||||
|
static struct clcd_panel *netx_panel;
|
||||||
|
|
||||||
|
void netx_clcd_enable(struct clcd_fb *fb)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
int netx_clcd_setup(struct clcd_fb *fb)
|
||||||
|
{
|
||||||
|
dma_addr_t dma;
|
||||||
|
|
||||||
|
fb->panel = netx_panel;
|
||||||
|
|
||||||
|
fb->fb.screen_base = dma_alloc_writecombine(&fb->dev->dev, 1024*1024,
|
||||||
|
&dma, GFP_KERNEL);
|
||||||
|
if (!fb->fb.screen_base) {
|
||||||
|
printk(KERN_ERR "CLCD: unable to map framebuffer\n");
|
||||||
|
return -ENOMEM;
|
||||||
|
}
|
||||||
|
|
||||||
|
fb->fb.fix.smem_start = dma;
|
||||||
|
fb->fb.fix.smem_len = 1024*1024;
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int netx_clcd_mmap(struct clcd_fb *fb, struct vm_area_struct *vma)
|
||||||
|
{
|
||||||
|
return dma_mmap_writecombine(&fb->dev->dev, vma,
|
||||||
|
fb->fb.screen_base,
|
||||||
|
fb->fb.fix.smem_start,
|
||||||
|
fb->fb.fix.smem_len);
|
||||||
|
}
|
||||||
|
|
||||||
|
void netx_clcd_remove(struct clcd_fb *fb)
|
||||||
|
{
|
||||||
|
dma_free_writecombine(&fb->dev->dev, fb->fb.fix.smem_len,
|
||||||
|
fb->fb.screen_base, fb->fb.fix.smem_start);
|
||||||
|
}
|
||||||
|
|
||||||
|
void clk_disable(struct clk *clk)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
int clk_set_rate(struct clk *clk, unsigned long rate)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int clk_enable(struct clk *clk)
|
||||||
|
{
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct clk *clk_get(struct device *dev, const char *id)
|
||||||
|
{
|
||||||
|
return &fb_clk;
|
||||||
|
}
|
||||||
|
|
||||||
|
void clk_put(struct clk *clk)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct amba_device fb_device = {
|
||||||
|
.dev = {
|
||||||
|
.bus_id = "fb",
|
||||||
|
.coherent_dma_mask = ~0,
|
||||||
|
},
|
||||||
|
.res = {
|
||||||
|
.start = 0x00104000,
|
||||||
|
.end = 0x00104fff,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
.irq = { NETX_IRQ_LCD, NO_IRQ },
|
||||||
|
.periphid = 0x10112400,
|
||||||
|
};
|
||||||
|
|
||||||
|
int netx_fb_init(struct clcd_board *board, struct clcd_panel *panel)
|
||||||
|
{
|
||||||
|
netx_panel = panel;
|
||||||
|
fb_device.dev.platform_data = board;
|
||||||
|
return amba_device_register(&fb_device, &iomem_resource);
|
||||||
|
}
|
|
@ -0,0 +1,24 @@
|
||||||
|
/*
|
||||||
|
* arch/arm/mach-netx/fb.h
|
||||||
|
*
|
||||||
|
* Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2
|
||||||
|
* as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
void netx_clcd_enable(struct clcd_fb *fb);
|
||||||
|
int netx_clcd_setup(struct clcd_fb *fb);
|
||||||
|
int netx_clcd_mmap(struct clcd_fb *fb, struct vm_area_struct *vma);
|
||||||
|
void netx_clcd_remove(struct clcd_fb *fb);
|
||||||
|
int netx_fb_init(struct clcd_board *board, struct clcd_panel *panel);
|
|
@ -0,0 +1,193 @@
|
||||||
|
/*
|
||||||
|
* arch/arm/mach-netx/generic.c
|
||||||
|
*
|
||||||
|
* Copyright (C) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2
|
||||||
|
* as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <linux/device.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/kernel.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/platform_device.h>
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/mach/map.h>
|
||||||
|
#include <asm/hardware/vic.h>
|
||||||
|
#include <asm/io.h>
|
||||||
|
#include <asm/arch/netx-regs.h>
|
||||||
|
#include <asm/mach/irq.h>
|
||||||
|
|
||||||
|
static struct map_desc netx_io_desc[] __initdata = {
|
||||||
|
{
|
||||||
|
.virtual = NETX_IO_VIRT,
|
||||||
|
.pfn = __phys_to_pfn(NETX_IO_PHYS),
|
||||||
|
.length = NETX_IO_SIZE,
|
||||||
|
.type = MT_DEVICE
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
void __init netx_map_io(void)
|
||||||
|
{
|
||||||
|
iotable_init(netx_io_desc, ARRAY_SIZE(netx_io_desc));
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct resource netx_rtc_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = 0x00101200,
|
||||||
|
.end = 0x00101220,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device netx_rtc_device = {
|
||||||
|
.name = "netx-rtc",
|
||||||
|
.id = 0,
|
||||||
|
.num_resources = ARRAY_SIZE(netx_rtc_resources),
|
||||||
|
.resource = netx_rtc_resources,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device *devices[] __initdata = {
|
||||||
|
&netx_rtc_device,
|
||||||
|
};
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
#define DEBUG_IRQ(fmt...) printk(fmt)
|
||||||
|
#else
|
||||||
|
#define DEBUG_IRQ(fmt...) while (0) {}
|
||||||
|
#endif
|
||||||
|
|
||||||
|
static void
|
||||||
|
netx_hif_demux_handler(unsigned int irq_unused, struct irqdesc *desc,
|
||||||
|
struct pt_regs *regs)
|
||||||
|
{
|
||||||
|
unsigned int irq = NETX_IRQ_HIF_CHAINED(0);
|
||||||
|
unsigned int stat;
|
||||||
|
|
||||||
|
stat = ((readl(NETX_DPMAS_INT_EN) &
|
||||||
|
readl(NETX_DPMAS_INT_STAT)) >> 24) & 0x1f;
|
||||||
|
|
||||||
|
desc = irq_desc + NETX_IRQ_HIF_CHAINED(0);
|
||||||
|
|
||||||
|
while (stat) {
|
||||||
|
if (stat & 1) {
|
||||||
|
DEBUG_IRQ("handling irq %d\n", irq);
|
||||||
|
desc_handle_irq(irq, desc, regs);
|
||||||
|
}
|
||||||
|
irq++;
|
||||||
|
desc++;
|
||||||
|
stat >>= 1;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
static int
|
||||||
|
netx_hif_irq_type(unsigned int _irq, unsigned int type)
|
||||||
|
{
|
||||||
|
unsigned int val, irq;
|
||||||
|
|
||||||
|
val = readl(NETX_DPMAS_IF_CONF1);
|
||||||
|
|
||||||
|
irq = _irq - NETX_IRQ_HIF_CHAINED(0);
|
||||||
|
|
||||||
|
if (type & __IRQT_RISEDGE) {
|
||||||
|
DEBUG_IRQ("rising edges\n");
|
||||||
|
val |= (1 << 26) << irq;
|
||||||
|
}
|
||||||
|
if (type & __IRQT_FALEDGE) {
|
||||||
|
DEBUG_IRQ("falling edges\n");
|
||||||
|
val &= ~((1 << 26) << irq);
|
||||||
|
}
|
||||||
|
if (type & __IRQT_LOWLVL) {
|
||||||
|
DEBUG_IRQ("low level\n");
|
||||||
|
val &= ~((1 << 26) << irq);
|
||||||
|
}
|
||||||
|
if (type & __IRQT_HIGHLVL) {
|
||||||
|
DEBUG_IRQ("high level\n");
|
||||||
|
val |= (1 << 26) << irq;
|
||||||
|
}
|
||||||
|
|
||||||
|
writel(val, NETX_DPMAS_IF_CONF1);
|
||||||
|
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
netx_hif_ack_irq(unsigned int _irq)
|
||||||
|
{
|
||||||
|
unsigned int val, irq;
|
||||||
|
|
||||||
|
irq = _irq - NETX_IRQ_HIF_CHAINED(0);
|
||||||
|
writel((1 << 24) << irq, NETX_DPMAS_INT_STAT);
|
||||||
|
|
||||||
|
val = readl(NETX_DPMAS_INT_EN);
|
||||||
|
val &= ~((1 << 24) << irq);
|
||||||
|
writel(val, NETX_DPMAS_INT_EN);
|
||||||
|
|
||||||
|
DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, _irq);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
netx_hif_mask_irq(unsigned int _irq)
|
||||||
|
{
|
||||||
|
unsigned int val, irq;
|
||||||
|
|
||||||
|
irq = _irq - NETX_IRQ_HIF_CHAINED(0);
|
||||||
|
val = readl(NETX_DPMAS_INT_EN);
|
||||||
|
val &= ~((1 << 24) << irq);
|
||||||
|
writel(val, NETX_DPMAS_INT_EN);
|
||||||
|
DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, _irq);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void
|
||||||
|
netx_hif_unmask_irq(unsigned int _irq)
|
||||||
|
{
|
||||||
|
unsigned int val, irq;
|
||||||
|
|
||||||
|
irq = _irq - NETX_IRQ_HIF_CHAINED(0);
|
||||||
|
val = readl(NETX_DPMAS_INT_EN);
|
||||||
|
val |= (1 << 24) << irq;
|
||||||
|
writel(val, NETX_DPMAS_INT_EN);
|
||||||
|
DEBUG_IRQ("%s: irq %d\n", __FUNCTION__, _irq);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct irqchip netx_hif_chip = {
|
||||||
|
.ack = netx_hif_ack_irq,
|
||||||
|
.mask = netx_hif_mask_irq,
|
||||||
|
.unmask = netx_hif_unmask_irq,
|
||||||
|
.set_type = netx_hif_irq_type,
|
||||||
|
};
|
||||||
|
|
||||||
|
void __init netx_init_irq(void)
|
||||||
|
{
|
||||||
|
int irq;
|
||||||
|
|
||||||
|
vic_init(__io(io_p2v(NETX_PA_VIC)), 0, ~0);
|
||||||
|
|
||||||
|
for (irq = NETX_IRQ_HIF_CHAINED(0); irq <= NETX_IRQ_HIF_LAST; irq++) {
|
||||||
|
set_irq_chip(irq, &netx_hif_chip);
|
||||||
|
set_irq_handler(irq, do_level_IRQ);
|
||||||
|
set_irq_flags(irq, IRQF_VALID);
|
||||||
|
}
|
||||||
|
|
||||||
|
writel(NETX_DPMAS_INT_EN_GLB_EN, NETX_DPMAS_INT_EN);
|
||||||
|
set_irq_chained_handler(NETX_IRQ_HIF, netx_hif_demux_handler);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int __init netx_init(void)
|
||||||
|
{
|
||||||
|
return platform_add_devices(devices, ARRAY_SIZE(devices));
|
||||||
|
}
|
||||||
|
|
||||||
|
subsys_initcall(netx_init);
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
/*
|
||||||
|
* arch/arm/mach-netx/generic.h
|
||||||
|
*
|
||||||
|
* Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2
|
||||||
|
* as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
extern void __init netx_map_io(void);
|
||||||
|
extern void __init netx_init_irq(void);
|
||||||
|
|
||||||
|
struct sys_timer;
|
||||||
|
extern struct sys_timer netx_timer;
|
|
@ -0,0 +1,210 @@
|
||||||
|
/*
|
||||||
|
* arch/arm/mach-netx/nxdb500.c
|
||||||
|
*
|
||||||
|
* Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2
|
||||||
|
* as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <linux/dma-mapping.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/interrupt.h>
|
||||||
|
#include <linux/mtd/plat-ram.h>
|
||||||
|
#include <linux/platform_device.h>
|
||||||
|
#include <linux/amba/bus.h>
|
||||||
|
#include <linux/amba/clcd.h>
|
||||||
|
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/mach-types.h>
|
||||||
|
#include <asm/mach/arch.h>
|
||||||
|
#include <asm/arch/netx-regs.h>
|
||||||
|
#include <asm/arch/eth.h>
|
||||||
|
|
||||||
|
#include "generic.h"
|
||||||
|
#include "fb.h"
|
||||||
|
|
||||||
|
static struct clcd_panel qvga = {
|
||||||
|
.mode = {
|
||||||
|
.name = "QVGA",
|
||||||
|
.refresh = 60,
|
||||||
|
.xres = 240,
|
||||||
|
.yres = 320,
|
||||||
|
.pixclock = 187617,
|
||||||
|
.left_margin = 6,
|
||||||
|
.right_margin = 26,
|
||||||
|
.upper_margin = 0,
|
||||||
|
.lower_margin = 6,
|
||||||
|
.hsync_len = 6,
|
||||||
|
.vsync_len = 1,
|
||||||
|
.sync = 0,
|
||||||
|
.vmode = FB_VMODE_NONINTERLACED,
|
||||||
|
},
|
||||||
|
.width = -1,
|
||||||
|
.height = -1,
|
||||||
|
.tim2 = 16,
|
||||||
|
.cntl = CNTL_LCDTFT | CNTL_BGR,
|
||||||
|
.bpp = 16,
|
||||||
|
.grayscale = 0,
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline int nxdb500_check(struct clcd_fb *fb, struct fb_var_screeninfo *var)
|
||||||
|
{
|
||||||
|
var->green.length = 5;
|
||||||
|
var->green.msb_right = 0;
|
||||||
|
|
||||||
|
return clcdfb_check(fb, var);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int nxdb500_clcd_setup(struct clcd_fb *fb)
|
||||||
|
{
|
||||||
|
unsigned int val;
|
||||||
|
|
||||||
|
fb->fb.var.green.length = 5;
|
||||||
|
fb->fb.var.green.msb_right = 0;
|
||||||
|
|
||||||
|
/* enable asic control */
|
||||||
|
val = readl(NETX_SYSTEM_IOC_ACCESS_KEY);
|
||||||
|
writel(val, NETX_SYSTEM_IOC_ACCESS_KEY);
|
||||||
|
|
||||||
|
writel(3, NETX_SYSTEM_IOC_CR);
|
||||||
|
|
||||||
|
val = readl(NETX_PIO_OUTPIO);
|
||||||
|
writel(val | 1, NETX_PIO_OUTPIO);
|
||||||
|
|
||||||
|
val = readl(NETX_PIO_OEPIO);
|
||||||
|
writel(val | 1, NETX_PIO_OEPIO);
|
||||||
|
return netx_clcd_setup(fb);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct clcd_board clcd_data = {
|
||||||
|
.name = "netX",
|
||||||
|
.check = nxdb500_check,
|
||||||
|
.decode = clcdfb_decode,
|
||||||
|
.enable = netx_clcd_enable,
|
||||||
|
.setup = nxdb500_clcd_setup,
|
||||||
|
.mmap = netx_clcd_mmap,
|
||||||
|
.remove = netx_clcd_remove,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct netxeth_platform_data eth0_platform_data = {
|
||||||
|
.xcno = 0,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device netx_eth0_device = {
|
||||||
|
.name = "netx-eth",
|
||||||
|
.id = 0,
|
||||||
|
.num_resources = 0,
|
||||||
|
.resource = NULL,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = ð0_platform_data,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct netxeth_platform_data eth1_platform_data = {
|
||||||
|
.xcno = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device netx_eth1_device = {
|
||||||
|
.name = "netx-eth",
|
||||||
|
.id = 1,
|
||||||
|
.num_resources = 0,
|
||||||
|
.resource = NULL,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = ð1_platform_data,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct resource netx_uart0_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = 0x00100A00,
|
||||||
|
.end = 0x00100A3F,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = (NETX_IRQ_UART0),
|
||||||
|
.end = (NETX_IRQ_UART0),
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device netx_uart0_device = {
|
||||||
|
.name = "netx-uart",
|
||||||
|
.id = 0,
|
||||||
|
.num_resources = ARRAY_SIZE(netx_uart0_resources),
|
||||||
|
.resource = netx_uart0_resources,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct resource netx_uart1_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = 0x00100A40,
|
||||||
|
.end = 0x00100A7F,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = (NETX_IRQ_UART1),
|
||||||
|
.end = (NETX_IRQ_UART1),
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device netx_uart1_device = {
|
||||||
|
.name = "netx-uart",
|
||||||
|
.id = 1,
|
||||||
|
.num_resources = ARRAY_SIZE(netx_uart1_resources),
|
||||||
|
.resource = netx_uart1_resources,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct resource netx_uart2_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = 0x00100A80,
|
||||||
|
.end = 0x00100ABF,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = (NETX_IRQ_UART2),
|
||||||
|
.end = (NETX_IRQ_UART2),
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device netx_uart2_device = {
|
||||||
|
.name = "netx-uart",
|
||||||
|
.id = 2,
|
||||||
|
.num_resources = ARRAY_SIZE(netx_uart2_resources),
|
||||||
|
.resource = netx_uart2_resources,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device *devices[] __initdata = {
|
||||||
|
&netx_eth0_device,
|
||||||
|
&netx_eth1_device,
|
||||||
|
&netx_uart0_device,
|
||||||
|
&netx_uart1_device,
|
||||||
|
&netx_uart2_device,
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init nxdb500_init(void)
|
||||||
|
{
|
||||||
|
netx_fb_init(&clcd_data, &qvga);
|
||||||
|
platform_add_devices(devices, ARRAY_SIZE(devices));
|
||||||
|
}
|
||||||
|
|
||||||
|
MACHINE_START(NXDB500, "Hilscher nxdb500")
|
||||||
|
.phys_io = 0x00100000,
|
||||||
|
.io_pg_offst = (io_p2v(0x00100000) >> 18) & 0xfffc,
|
||||||
|
.boot_params = 0x80000100,
|
||||||
|
.map_io = netx_map_io,
|
||||||
|
.init_irq = netx_init_irq,
|
||||||
|
.timer = &netx_timer,
|
||||||
|
.init_machine = nxdb500_init,
|
||||||
|
MACHINE_END
|
|
@ -0,0 +1,103 @@
|
||||||
|
/*
|
||||||
|
* arch/arm/mach-netx/nxdkn.c
|
||||||
|
*
|
||||||
|
* Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2
|
||||||
|
* as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <linux/dma-mapping.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/interrupt.h>
|
||||||
|
#include <linux/mtd/plat-ram.h>
|
||||||
|
#include <linux/platform_device.h>
|
||||||
|
#include <linux/amba/bus.h>
|
||||||
|
#include <linux/amba/clcd.h>
|
||||||
|
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/mach-types.h>
|
||||||
|
#include <asm/mach/arch.h>
|
||||||
|
#include <asm/arch/netx-regs.h>
|
||||||
|
#include <asm/arch/eth.h>
|
||||||
|
|
||||||
|
#include "generic.h"
|
||||||
|
|
||||||
|
static struct netxeth_platform_data eth0_platform_data = {
|
||||||
|
.xcno = 0,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device nxdkn_eth0_device = {
|
||||||
|
.name = "netx-eth",
|
||||||
|
.id = 0,
|
||||||
|
.num_resources = 0,
|
||||||
|
.resource = NULL,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = ð0_platform_data,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct netxeth_platform_data eth1_platform_data = {
|
||||||
|
.xcno = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device nxdkn_eth1_device = {
|
||||||
|
.name = "netx-eth",
|
||||||
|
.id = 1,
|
||||||
|
.num_resources = 0,
|
||||||
|
.resource = NULL,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = ð1_platform_data,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct resource netx_uart0_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = 0x00100A00,
|
||||||
|
.end = 0x00100A3F,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = (NETX_IRQ_UART0),
|
||||||
|
.end = (NETX_IRQ_UART0),
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device netx_uart0_device = {
|
||||||
|
.name = "netx-uart",
|
||||||
|
.id = 0,
|
||||||
|
.num_resources = ARRAY_SIZE(netx_uart0_resources),
|
||||||
|
.resource = netx_uart0_resources,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device *devices[] __initdata = {
|
||||||
|
&nxdkn_eth0_device,
|
||||||
|
&nxdkn_eth1_device,
|
||||||
|
&netx_uart0_device,
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init nxdkn_init(void)
|
||||||
|
{
|
||||||
|
platform_add_devices(devices, ARRAY_SIZE(devices));
|
||||||
|
}
|
||||||
|
|
||||||
|
MACHINE_START(NXDKN, "Hilscher nxdkn")
|
||||||
|
.phys_io = 0x00100000,
|
||||||
|
.io_pg_offst = (io_p2v(0x00100000) >> 18) & 0xfffc,
|
||||||
|
.boot_params = 0x80000100,
|
||||||
|
.map_io = netx_map_io,
|
||||||
|
.init_irq = netx_init_irq,
|
||||||
|
.timer = &netx_timer,
|
||||||
|
.init_machine = nxdkn_init,
|
||||||
|
MACHINE_END
|
|
@ -0,0 +1,187 @@
|
||||||
|
/*
|
||||||
|
* arch/arm/mach-netx/nxeb500hmi.c
|
||||||
|
*
|
||||||
|
* Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2
|
||||||
|
* as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <linux/dma-mapping.h>
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/interrupt.h>
|
||||||
|
#include <linux/mtd/plat-ram.h>
|
||||||
|
#include <linux/platform_device.h>
|
||||||
|
#include <linux/amba/bus.h>
|
||||||
|
#include <linux/amba/clcd.h>
|
||||||
|
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/mach-types.h>
|
||||||
|
#include <asm/mach/arch.h>
|
||||||
|
#include <asm/arch/netx-regs.h>
|
||||||
|
#include <asm/arch/eth.h>
|
||||||
|
|
||||||
|
#include "generic.h"
|
||||||
|
#include "fb.h"
|
||||||
|
|
||||||
|
static struct clcd_panel qvga = {
|
||||||
|
.mode = {
|
||||||
|
.name = "QVGA",
|
||||||
|
.refresh = 60,
|
||||||
|
.xres = 240,
|
||||||
|
.yres = 320,
|
||||||
|
.pixclock = 187617,
|
||||||
|
.left_margin = 6,
|
||||||
|
.right_margin = 26,
|
||||||
|
.upper_margin = 0,
|
||||||
|
.lower_margin = 6,
|
||||||
|
.hsync_len = 6,
|
||||||
|
.vsync_len = 1,
|
||||||
|
.sync = 0,
|
||||||
|
.vmode = FB_VMODE_NONINTERLACED,
|
||||||
|
},
|
||||||
|
.width = -1,
|
||||||
|
.height = -1,
|
||||||
|
.tim2 = 16,
|
||||||
|
.cntl = CNTL_LCDTFT | CNTL_BGR,
|
||||||
|
.bpp = 16,
|
||||||
|
.grayscale = 0,
|
||||||
|
};
|
||||||
|
|
||||||
|
static inline int nxeb500hmi_check(struct clcd_fb *fb, struct fb_var_screeninfo *var)
|
||||||
|
{
|
||||||
|
var->green.length = 5;
|
||||||
|
var->green.msb_right = 0;
|
||||||
|
|
||||||
|
return clcdfb_check(fb, var);
|
||||||
|
}
|
||||||
|
|
||||||
|
static int nxeb500hmi_clcd_setup(struct clcd_fb *fb)
|
||||||
|
{
|
||||||
|
unsigned int val;
|
||||||
|
|
||||||
|
fb->fb.var.green.length = 5;
|
||||||
|
fb->fb.var.green.msb_right = 0;
|
||||||
|
|
||||||
|
/* enable asic control */
|
||||||
|
val = readl(NETX_SYSTEM_IOC_ACCESS_KEY);
|
||||||
|
writel(val, NETX_SYSTEM_IOC_ACCESS_KEY);
|
||||||
|
|
||||||
|
writel(3, NETX_SYSTEM_IOC_CR);
|
||||||
|
|
||||||
|
/* GPIO 14 is used for display enable on newer boards */
|
||||||
|
writel(9, NETX_GPIO_CFG(14));
|
||||||
|
|
||||||
|
val = readl(NETX_PIO_OUTPIO);
|
||||||
|
writel(val | 1, NETX_PIO_OUTPIO);
|
||||||
|
|
||||||
|
val = readl(NETX_PIO_OEPIO);
|
||||||
|
writel(val | 1, NETX_PIO_OEPIO);
|
||||||
|
return netx_clcd_setup(fb);
|
||||||
|
}
|
||||||
|
|
||||||
|
static struct clcd_board clcd_data = {
|
||||||
|
.name = "netX",
|
||||||
|
.check = nxeb500hmi_check,
|
||||||
|
.decode = clcdfb_decode,
|
||||||
|
.enable = netx_clcd_enable,
|
||||||
|
.setup = nxeb500hmi_clcd_setup,
|
||||||
|
.mmap = netx_clcd_mmap,
|
||||||
|
.remove = netx_clcd_remove,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct netxeth_platform_data eth0_platform_data = {
|
||||||
|
.xcno = 0,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device netx_eth0_device = {
|
||||||
|
.name = "netx-eth",
|
||||||
|
.id = 0,
|
||||||
|
.num_resources = 0,
|
||||||
|
.resource = NULL,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = ð0_platform_data,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct netxeth_platform_data eth1_platform_data = {
|
||||||
|
.xcno = 1,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device netx_eth1_device = {
|
||||||
|
.name = "netx-eth",
|
||||||
|
.id = 1,
|
||||||
|
.num_resources = 0,
|
||||||
|
.resource = NULL,
|
||||||
|
.dev = {
|
||||||
|
.platform_data = ð1_platform_data,
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct resource netx_cf_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = 0x20000000,
|
||||||
|
.end = 0x25ffffff,
|
||||||
|
.flags = IORESOURCE_MEM | IORESOURCE_MEM_8AND16BIT,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device netx_cf_device = {
|
||||||
|
.name = "netx-cf",
|
||||||
|
.id = 0,
|
||||||
|
.resource = netx_cf_resources,
|
||||||
|
.num_resources = ARRAY_SIZE(netx_cf_resources),
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct resource netx_uart0_resources[] = {
|
||||||
|
[0] = {
|
||||||
|
.start = 0x00100A00,
|
||||||
|
.end = 0x00100A3F,
|
||||||
|
.flags = IORESOURCE_MEM,
|
||||||
|
},
|
||||||
|
[1] = {
|
||||||
|
.start = (NETX_IRQ_UART0),
|
||||||
|
.end = (NETX_IRQ_UART0),
|
||||||
|
.flags = IORESOURCE_IRQ,
|
||||||
|
},
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device netx_uart0_device = {
|
||||||
|
.name = "netx-uart",
|
||||||
|
.id = 0,
|
||||||
|
.num_resources = ARRAY_SIZE(netx_uart0_resources),
|
||||||
|
.resource = netx_uart0_resources,
|
||||||
|
};
|
||||||
|
|
||||||
|
static struct platform_device *devices[] __initdata = {
|
||||||
|
&netx_eth0_device,
|
||||||
|
&netx_eth1_device,
|
||||||
|
&netx_cf_device,
|
||||||
|
&netx_uart0_device,
|
||||||
|
};
|
||||||
|
|
||||||
|
static void __init nxeb500hmi_init(void)
|
||||||
|
{
|
||||||
|
netx_fb_init(&clcd_data, &qvga);
|
||||||
|
platform_add_devices(devices, ARRAY_SIZE(devices));
|
||||||
|
}
|
||||||
|
|
||||||
|
MACHINE_START(NXEB500HMI, "Hilscher nxeb500hmi")
|
||||||
|
.phys_io = 0x00100000,
|
||||||
|
.io_pg_offst = (io_p2v(0x00100000) >> 18) & 0xfffc,
|
||||||
|
.boot_params = 0x80000100,
|
||||||
|
.map_io = netx_map_io,
|
||||||
|
.init_irq = netx_init_irq,
|
||||||
|
.timer = &netx_timer,
|
||||||
|
.init_machine = nxeb500hmi_init,
|
||||||
|
MACHINE_END
|
|
@ -0,0 +1,68 @@
|
||||||
|
/*
|
||||||
|
* arch/arm/mach-netx/pfifo.c
|
||||||
|
*
|
||||||
|
* Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2
|
||||||
|
* as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/module.h>
|
||||||
|
#include <linux/mutex.h>
|
||||||
|
|
||||||
|
#include <asm/io.h>
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/arch/netx-regs.h>
|
||||||
|
#include <asm/arch/pfifo.h>
|
||||||
|
|
||||||
|
static DEFINE_MUTEX(pfifo_lock);
|
||||||
|
|
||||||
|
static unsigned int pfifo_used = 0;
|
||||||
|
|
||||||
|
int pfifo_request(unsigned int pfifo_mask)
|
||||||
|
{
|
||||||
|
int err = 0;
|
||||||
|
unsigned int val;
|
||||||
|
|
||||||
|
mutex_lock(&pfifo_lock);
|
||||||
|
|
||||||
|
if (pfifo_mask & pfifo_used) {
|
||||||
|
err = -EBUSY;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
|
||||||
|
pfifo_used |= pfifo_mask;
|
||||||
|
|
||||||
|
val = readl(NETX_PFIFO_RESET);
|
||||||
|
writel(val | pfifo_mask, NETX_PFIFO_RESET);
|
||||||
|
writel(val, NETX_PFIFO_RESET);
|
||||||
|
|
||||||
|
out:
|
||||||
|
mutex_unlock(&pfifo_lock);
|
||||||
|
return err;
|
||||||
|
}
|
||||||
|
|
||||||
|
void pfifo_free(unsigned int pfifo_mask)
|
||||||
|
{
|
||||||
|
mutex_lock(&pfifo_lock);
|
||||||
|
pfifo_used &= ~pfifo_mask;
|
||||||
|
mutex_unlock(&pfifo_lock);
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT_SYMBOL(pfifo_push);
|
||||||
|
EXPORT_SYMBOL(pfifo_pop);
|
||||||
|
EXPORT_SYMBOL(pfifo_fill_level);
|
||||||
|
EXPORT_SYMBOL(pfifo_empty);
|
||||||
|
EXPORT_SYMBOL(pfifo_request);
|
||||||
|
EXPORT_SYMBOL(pfifo_free);
|
|
@ -0,0 +1,88 @@
|
||||||
|
/*
|
||||||
|
* arch/arm/mach-netx/time.c
|
||||||
|
*
|
||||||
|
* Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2
|
||||||
|
* as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/interrupt.h>
|
||||||
|
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/io.h>
|
||||||
|
#include <asm/mach/time.h>
|
||||||
|
#include <asm/arch/netx-regs.h>
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Returns number of us since last clock interrupt. Note that interrupts
|
||||||
|
* will have been disabled by do_gettimeoffset()
|
||||||
|
*/
|
||||||
|
static unsigned long netx_gettimeoffset(void)
|
||||||
|
{
|
||||||
|
return readl(NETX_GPIO_COUNTER_CURRENT(0)) / 100;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
* IRQ handler for the timer
|
||||||
|
*/
|
||||||
|
static irqreturn_t
|
||||||
|
netx_timer_interrupt(int irq, void *dev_id, struct pt_regs *regs)
|
||||||
|
{
|
||||||
|
write_seqlock(&xtime_lock);
|
||||||
|
|
||||||
|
timer_tick(regs);
|
||||||
|
write_sequnlock(&xtime_lock);
|
||||||
|
|
||||||
|
/* acknowledge interrupt */
|
||||||
|
writel(COUNTER_BIT(0), NETX_GPIO_IRQ);
|
||||||
|
|
||||||
|
return IRQ_HANDLED;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
static struct irqaction netx_timer_irq = {
|
||||||
|
.name = "NetX Timer Tick",
|
||||||
|
.flags = SA_INTERRUPT | SA_TIMER,
|
||||||
|
.handler = netx_timer_interrupt,
|
||||||
|
};
|
||||||
|
|
||||||
|
/*
|
||||||
|
* Set up timer interrupt
|
||||||
|
*/
|
||||||
|
static void __init netx_timer_init(void)
|
||||||
|
{
|
||||||
|
/* disable timer initially */
|
||||||
|
writel(0, NETX_GPIO_COUNTER_CTRL(0));
|
||||||
|
|
||||||
|
/* Reset the timer value to zero */
|
||||||
|
writel(0, NETX_GPIO_COUNTER_CURRENT(0));
|
||||||
|
|
||||||
|
writel(LATCH, NETX_GPIO_COUNTER_MAX(0));
|
||||||
|
|
||||||
|
/* acknowledge interrupt */
|
||||||
|
writel(COUNTER_BIT(0), NETX_GPIO_IRQ);
|
||||||
|
|
||||||
|
/* Enable the interrupt in the specific timer register and start timer */
|
||||||
|
writel(COUNTER_BIT(0), NETX_GPIO_IRQ_ENABLE);
|
||||||
|
writel(NETX_GPIO_COUNTER_CTRL_IRQ_EN | NETX_GPIO_COUNTER_CTRL_RUN,
|
||||||
|
NETX_GPIO_COUNTER_CTRL(0));
|
||||||
|
|
||||||
|
setup_irq(NETX_IRQ_TIMER0, &netx_timer_irq);
|
||||||
|
}
|
||||||
|
|
||||||
|
struct sys_timer netx_timer = {
|
||||||
|
.init = netx_timer_init,
|
||||||
|
.offset = netx_gettimeoffset,
|
||||||
|
};
|
|
@ -0,0 +1,255 @@
|
||||||
|
/*
|
||||||
|
* arch/arm/mach-netx/xc.c
|
||||||
|
*
|
||||||
|
* Copyright (c) 2005 Sascha Hauer <s.hauer@pengutronix.de>, Pengutronix
|
||||||
|
*
|
||||||
|
* This program is free software; you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License version 2
|
||||||
|
* as published by the Free Software Foundation.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
* GNU General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program; if not, write to the Free Software
|
||||||
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
*/
|
||||||
|
|
||||||
|
#include <linux/init.h>
|
||||||
|
#include <linux/device.h>
|
||||||
|
#include <linux/firmware.h>
|
||||||
|
#include <linux/mutex.h>
|
||||||
|
|
||||||
|
#include <asm/io.h>
|
||||||
|
#include <asm/hardware.h>
|
||||||
|
#include <asm/arch/netx-regs.h>
|
||||||
|
|
||||||
|
#include <asm/arch/xc.h>
|
||||||
|
|
||||||
|
static DEFINE_MUTEX(xc_lock);
|
||||||
|
|
||||||
|
static int xc_in_use = 0;
|
||||||
|
|
||||||
|
struct fw_desc {
|
||||||
|
unsigned int ofs;
|
||||||
|
unsigned int size;
|
||||||
|
unsigned int patch_ofs;
|
||||||
|
unsigned int patch_entries;
|
||||||
|
};
|
||||||
|
|
||||||
|
struct fw_header {
|
||||||
|
unsigned int magic;
|
||||||
|
unsigned int type;
|
||||||
|
unsigned int version;
|
||||||
|
unsigned int reserved[5];
|
||||||
|
struct fw_desc fw_desc[3];
|
||||||
|
} __attribute__ ((packed));
|
||||||
|
|
||||||
|
int xc_stop(struct xc *x)
|
||||||
|
{
|
||||||
|
writel(RPU_HOLD_PC, x->xmac_base + NETX_XMAC_RPU_HOLD_PC_OFS);
|
||||||
|
writel(TPU_HOLD_PC, x->xmac_base + NETX_XMAC_TPU_HOLD_PC_OFS);
|
||||||
|
writel(XPU_HOLD_PC, x->xpec_base + NETX_XPEC_XPU_HOLD_PC_OFS);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int xc_start(struct xc *x)
|
||||||
|
{
|
||||||
|
writel(0, x->xmac_base + NETX_XMAC_RPU_HOLD_PC_OFS);
|
||||||
|
writel(0, x->xmac_base + NETX_XMAC_TPU_HOLD_PC_OFS);
|
||||||
|
writel(0, x->xpec_base + NETX_XPEC_XPU_HOLD_PC_OFS);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int xc_running(struct xc *x)
|
||||||
|
{
|
||||||
|
return (readl(x->xmac_base + NETX_XMAC_RPU_HOLD_PC_OFS) & RPU_HOLD_PC)
|
||||||
|
|| (readl(x->xmac_base + NETX_XMAC_TPU_HOLD_PC_OFS) & TPU_HOLD_PC)
|
||||||
|
|| (readl(x->xpec_base + NETX_XPEC_XPU_HOLD_PC_OFS) & XPU_HOLD_PC) ?
|
||||||
|
0 : 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
int xc_reset(struct xc *x)
|
||||||
|
{
|
||||||
|
writel(0, x->xpec_base + NETX_XPEC_PC_OFS);
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int xc_check_ptr(struct xc *x, unsigned long adr, unsigned int size)
|
||||||
|
{
|
||||||
|
if (adr >= NETX_PA_XMAC(x->no) &&
|
||||||
|
adr + size < NETX_PA_XMAC(x->no) + XMAC_MEM_SIZE)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
if (adr >= NETX_PA_XPEC(x->no) &&
|
||||||
|
adr + size < NETX_PA_XPEC(x->no) + XPEC_MEM_SIZE)
|
||||||
|
return 0;
|
||||||
|
|
||||||
|
dev_err(x->dev, "Illegal pointer in firmware found. aborting\n");
|
||||||
|
|
||||||
|
return -1;
|
||||||
|
}
|
||||||
|
|
||||||
|
static int xc_patch(struct xc *x, void *patch, int count)
|
||||||
|
{
|
||||||
|
unsigned int val, adr;
|
||||||
|
unsigned int *data = patch;
|
||||||
|
|
||||||
|
int i;
|
||||||
|
for (i = 0; i < count; i++) {
|
||||||
|
adr = *data++;
|
||||||
|
val = *data++;
|
||||||
|
if (xc_check_ptr(x, adr, 4) < 0)
|
||||||
|
return -EINVAL;
|
||||||
|
|
||||||
|
writel(val, (void __iomem *)io_p2v(adr));
|
||||||
|
}
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
int xc_request_firmware(struct xc *x)
|
||||||
|
{
|
||||||
|
int ret;
|
||||||
|
char name[16];
|
||||||
|
const struct firmware *fw;
|
||||||
|
struct fw_header *head;
|
||||||
|
unsigned int size;
|
||||||
|
int i;
|
||||||
|
void *src;
|
||||||
|
unsigned long dst;
|
||||||
|
|
||||||
|
sprintf(name, "xc%d.bin", x->no);
|
||||||
|
|
||||||
|
ret = request_firmware(&fw, name, x->dev);
|
||||||
|
|
||||||
|
if (ret < 0) {
|
||||||
|
dev_err(x->dev, "request_firmware failed\n");
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
head = (struct fw_header *)fw->data;
|
||||||
|
if (head->magic != 0x4e657458) {
|
||||||
|
if (head->magic == 0x5874654e) {
|
||||||
|
dev_err(x->dev,
|
||||||
|
"firmware magic is 'XteN'. Endianess problems?\n");
|
||||||
|
ret = -ENODEV;
|
||||||
|
goto exit_release_firmware;
|
||||||
|
}
|
||||||
|
dev_err(x->dev, "unrecognized firmware magic 0x%08x\n",
|
||||||
|
head->magic);
|
||||||
|
ret = -ENODEV;
|
||||||
|
goto exit_release_firmware;
|
||||||
|
}
|
||||||
|
|
||||||
|
x->type = head->type;
|
||||||
|
x->version = head->version;
|
||||||
|
|
||||||
|
ret = -EINVAL;
|
||||||
|
|
||||||
|
for (i = 0; i < 3; i++) {
|
||||||
|
src = fw->data + head->fw_desc[i].ofs;
|
||||||
|
dst = *(unsigned int *)src;
|
||||||
|
src += sizeof (unsigned int);
|
||||||
|
size = head->fw_desc[i].size - sizeof (unsigned int);
|
||||||
|
|
||||||
|
if (xc_check_ptr(x, dst, size))
|
||||||
|
goto exit_release_firmware;
|
||||||
|
|
||||||
|
memcpy((void *)io_p2v(dst), src, size);
|
||||||
|
|
||||||
|
src = fw->data + head->fw_desc[i].patch_ofs;
|
||||||
|
size = head->fw_desc[i].patch_entries;
|
||||||
|
ret = xc_patch(x, src, size);
|
||||||
|
if (ret < 0)
|
||||||
|
goto exit_release_firmware;
|
||||||
|
}
|
||||||
|
|
||||||
|
ret = 0;
|
||||||
|
|
||||||
|
exit_release_firmware:
|
||||||
|
release_firmware(fw);
|
||||||
|
|
||||||
|
return ret;
|
||||||
|
}
|
||||||
|
|
||||||
|
struct xc *request_xc(int xcno, struct device *dev)
|
||||||
|
{
|
||||||
|
struct xc *x = NULL;
|
||||||
|
|
||||||
|
mutex_lock(&xc_lock);
|
||||||
|
|
||||||
|
if (xcno > 3)
|
||||||
|
goto exit;
|
||||||
|
if (xc_in_use & (1 << xcno))
|
||||||
|
goto exit;
|
||||||
|
|
||||||
|
x = kmalloc(sizeof (struct xc), GFP_KERNEL);
|
||||||
|
if (!x)
|
||||||
|
goto exit;
|
||||||
|
|
||||||
|
if (!request_mem_region
|
||||||
|
(NETX_PA_XPEC(xcno), XPEC_MEM_SIZE, dev->kobj.name))
|
||||||
|
goto exit_free;
|
||||||
|
|
||||||
|
if (!request_mem_region
|
||||||
|
(NETX_PA_XMAC(xcno), XMAC_MEM_SIZE, dev->kobj.name))
|
||||||
|
goto exit_release_1;
|
||||||
|
|
||||||
|
if (!request_mem_region
|
||||||
|
(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE, dev->kobj.name))
|
||||||
|
goto exit_release_2;
|
||||||
|
|
||||||
|
x->xpec_base = (void * __iomem)io_p2v(NETX_PA_XPEC(xcno));
|
||||||
|
x->xmac_base = (void * __iomem)io_p2v(NETX_PA_XMAC(xcno));
|
||||||
|
x->sram_base = ioremap(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE);
|
||||||
|
if (!x->sram_base)
|
||||||
|
goto exit_release_3;
|
||||||
|
|
||||||
|
x->irq = NETX_IRQ_XPEC(xcno);
|
||||||
|
|
||||||
|
x->no = xcno;
|
||||||
|
x->dev = dev;
|
||||||
|
|
||||||
|
xc_in_use |= (1 << xcno);
|
||||||
|
|
||||||
|
goto exit;
|
||||||
|
|
||||||
|
exit_release_3:
|
||||||
|
release_mem_region(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE);
|
||||||
|
exit_release_2:
|
||||||
|
release_mem_region(NETX_PA_XMAC(xcno), XMAC_MEM_SIZE);
|
||||||
|
exit_release_1:
|
||||||
|
release_mem_region(NETX_PA_XPEC(xcno), XPEC_MEM_SIZE);
|
||||||
|
exit_free:
|
||||||
|
kfree(x);
|
||||||
|
x = NULL;
|
||||||
|
exit:
|
||||||
|
mutex_unlock(&xc_lock);
|
||||||
|
return x;
|
||||||
|
}
|
||||||
|
|
||||||
|
void free_xc(struct xc *x)
|
||||||
|
{
|
||||||
|
int xcno = x->no;
|
||||||
|
|
||||||
|
mutex_lock(&xc_lock);
|
||||||
|
|
||||||
|
iounmap(x->sram_base);
|
||||||
|
release_mem_region(SRAM_INTERNAL_PHYS(xcno), SRAM_MEM_SIZE);
|
||||||
|
release_mem_region(NETX_PA_XMAC(xcno), XMAC_MEM_SIZE);
|
||||||
|
release_mem_region(NETX_PA_XPEC(xcno), XPEC_MEM_SIZE);
|
||||||
|
xc_in_use &= ~(1 << x->no);
|
||||||
|
kfree(x);
|
||||||
|
|
||||||
|
mutex_unlock(&xc_lock);
|
||||||
|
}
|
||||||
|
|
||||||
|
EXPORT_SYMBOL(free_xc);
|
||||||
|
EXPORT_SYMBOL(request_xc);
|
||||||
|
EXPORT_SYMBOL(xc_request_firmware);
|
||||||
|
EXPORT_SYMBOL(xc_reset);
|
||||||
|
EXPORT_SYMBOL(xc_running);
|
||||||
|
EXPORT_SYMBOL(xc_start);
|
||||||
|
EXPORT_SYMBOL(xc_stop);
|
|
@ -0,0 +1,12 @@
|
||||||
|
#
|
||||||
|
# Makefile for the linux kernel.
|
||||||
|
#
|
||||||
|
|
||||||
|
obj-y := core.o irq.o time.o clock.o gpio.o serial.o dma.o
|
||||||
|
obj-m :=
|
||||||
|
obj-n :=
|
||||||
|
obj- :=
|
||||||
|
|
||||||
|
# Power Management
|
||||||
|
obj-$(CONFIG_PM) += pm.o sleep.o
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue