Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
adee4c09
Commit
adee4c09
authored
Mar 22, 2006
by
Juha Yrjola
Browse files
Options
Browse Files
Download
Plain Diff
Merge source.mvista.com:linux-omap
parents
259e2689
51c0cddf
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
27 additions
and
64 deletions
+27
-64
Documentation/arm/OMAP/README
Documentation/arm/OMAP/README
+21
-42
drivers/char/omap-rtc.c
drivers/char/omap-rtc.c
+1
-1
drivers/i2c/chips/menelaus.c
drivers/i2c/chips/menelaus.c
+1
-1
drivers/i2c/chips/tlv320aic23.c
drivers/i2c/chips/tlv320aic23.c
+2
-2
drivers/input/keyboard/innovator_ps2.c
drivers/input/keyboard/innovator_ps2.c
+2
-18
No files found.
Documentation/arm/OMAP/README
View file @
adee4c09
...
@@ -44,7 +44,7 @@ time.
...
@@ -44,7 +44,7 @@ time.
The first step is to get a bootloader for your board, u-boot is the
The first step is to get a bootloader for your board, u-boot is the
recommended one:
recommended one:
http://
sourceforge.net/projects/uboot/
http://
www.denx.de/en/Software/GIT
Then you need to compile it with the same cross compiler as you would use
Then you need to compile it with the same cross compiler as you would use
for the Linux kernel. Then you need to flash it to the board either via the
for the Linux kernel. Then you need to flash it to the board either via the
...
@@ -52,40 +52,16 @@ serial port, or by using a JTAG.
...
@@ -52,40 +52,16 @@ serial port, or by using a JTAG.
Once you have the bootloader running, you can compile the kernel.
Once you have the bootloader running, you can compile the kernel.
You can get the OMAP sources either from the
BitKeeper
tree, or by
You can get the OMAP sources either from the
OMAP GIT
tree, or by
applying patches. The
BitKeeper
tree has the most up to date sources
applying patches. The
OMAP GIT
tree has the most up to date sources
and is the recommended one.
and is the recommended one.
- Using BitKeeper:
- Using GIT and cloning OMAP GIT tree please follow the README at:
You need to download the bk tool from:
http://www.bitmover.com/
Download the dynamic one (x86-glibc22-linux) instead of the static
(x86-static-linux). Some users reported problems with the static version.
After bk tool is installed, to learn more about bitkeeper you can follow the
tutorial at:
http://www.bitkeeper.com/UG/
Then you can clone OMAP Linux by:
bk clone http://linux-omap.bkbits.net/main
http://www.muru.com/linux/omap/README_OMAP_GIT
Now, you have a copy (clone) of the reprository. To work with it and to
compile the kernel you have to check out the files from your local
repository by:
bk -r get (or: bk -r edit)
For kernel related BitKeeper information see also kernel documentation in:
Documentation/BK-usage/bk-kernel-howto.txt
Hint: If you are sitting behind a firewall and have to use a proxy for
Hint: If you are sitting behind a firewall and have to use a proxy for
internet access, you can access
BitKeeper by http by setting the
internet access, you can access
GIT by http by setting the
http_proxy envirionment variable:
http_proxy envirionment variable:
http_proxy=http://proxy_username:proxy_password@proxy_name:proxy_port/
http_proxy=http://proxy_username:proxy_password@proxy_name:proxy_port/
...
@@ -104,7 +80,7 @@ abc.host.com: The name of your proxy you use for internet access
...
@@ -104,7 +80,7 @@ abc.host.com: The name of your proxy you use for internet access
- Using Patches:
- Using Patches:
If you don't want to use
BitKeeper
, then you can do the same thing with patch.
If you don't want to use
GIT
, then you can do the same thing with patch.
Download the latest OMAP Linux patch from:
Download the latest OMAP Linux patch from:
...
@@ -125,8 +101,8 @@ $ cat ../Linux-2.6.4-omap1 | patch -p1
...
@@ -125,8 +101,8 @@ $ cat ../Linux-2.6.4-omap1 | patch -p1
Note: If OMAP patch from muru.com is against a kernel release candidate,
Note: If OMAP patch from muru.com is against a kernel release candidate,
marked by -rcX, then kernel can be found on kernel.org under v2.6/testing/
marked by -rcX, then kernel can be found on kernel.org under v2.6/testing/
Now, if you have a local kernel tree, either by
BitKeeper or by patch, you
Now, if you have a local kernel tree, either by
GIT or by patch, you
should look into arch/arm/config/ to see which of the various omap_xxx
should look into arch/arm/config
s
/ to see which of the various omap_xxx
configurations there you want to use. For example, if you have a OMAP1510
configurations there you want to use. For example, if you have a OMAP1510
based Innovator board, you select omap_innovator_1510_defconfig by
based Innovator board, you select omap_innovator_1510_defconfig by
...
@@ -206,10 +182,13 @@ time of writing this document in March 2004 four boards are supported:
...
@@ -206,10 +182,13 @@ time of writing this document in March 2004 four boards are supported:
Innovator1510 (OMAP1510 processor), Innovator1610 (OMAP1610 processor),
Innovator1510 (OMAP1510 processor), Innovator1610 (OMAP1610 processor),
Perseus2 (OMAP730 processor) and H2 (OMAP1610 processor).
Perseus2 (OMAP730 processor) and H2 (OMAP1610 processor).
Please refer http://www.muru.com/linux/omap/ to get latest information on the
list of boards supported.
/* Discussion needed: How to handle the tons of compatible processors?
/* Discussion needed: How to handle the tons of compatible processors?
E.g. what to do if OMAP16xx is mainly identical with OMAP16yy? */
E.g. what to do if OMAP16xx is mainly identical with OMAP16yy? */
2. Start with arch/arm/mach-omap
/Kconfig and add a new processor or board
2. Start with arch/arm/mach-omap
[1/2]/Kconfig and add a new processor or board
option.
option.
To add a new processor add a new config option to the "OMAP Core Type" choice.
To add a new processor add a new config option to the "OMAP Core Type" choice.
...
@@ -241,7 +220,7 @@ arch/arm/mm/Kconfig. E.g. ARCH_OMAP730 in CPU_ARM926T configuration.
...
@@ -241,7 +220,7 @@ arch/arm/mm/Kconfig. E.g. ARCH_OMAP730 in CPU_ARM926T configuration.
3b. Only for new boards: Register the board within ARM Linux machine
3b. Only for new boards: Register the board within ARM Linux machine
registration system from RMK. For the CONFIG_ section use the same name like
registration system from RMK. For the CONFIG_ section use the same name like
in arch/arm/mach-omap
/Kconfig. E.g. MACH_OMAP_yyyy. For MACH_TYPE_ section use
in arch/arm/mach-omap
[1/2]/Kconfig. E.g. MACH_OMAP_yyyy. For MACH_TYPE_ section use
OMAP_yyyy where yyyy is the board name like above.
OMAP_yyyy where yyyy is the board name like above.
Note: The elements of RMKs machine registration are used in
Note: The elements of RMKs machine registration are used in
...
@@ -262,14 +241,14 @@ Use board-yyyy.h with yyyy board name or omapxxxx.h with xxxx processor number.
...
@@ -262,14 +241,14 @@ Use board-yyyy.h with yyyy board name or omapxxxx.h with xxxx processor number.
5. Add a processor or board specific section into include/asm-arm/arch-omap/
5. Add a processor or board specific section into include/asm-arm/arch-omap/
hardware.h. Use examples for syntax and use CONFIG_ names as defined in
hardware.h. Use examples for syntax and use CONFIG_ names as defined in
arch/arm/mach-omap/Kconfig.
arch/arm/mach-omap
[1/2]
/Kconfig.
6. Add processor or board specific macros to board-yyyy.h or omapxxxx.h. The
6. Add processor or board specific macros to board-yyyy.h or omapxxxx.h. The
macros to these specific files have to be named OMAPxxxx_ with xxxx processor
macros to these specific files have to be named OMAPxxxx_ with xxxx processor
number to make them unique.
number to make them unique.
7a. Only for new boards: Add a file board-yyyy.c with yyyy board name to
7a. Only for new boards: Add a file board-yyyy.c with yyyy board name to
arch/arm/mach-omap
/. Put board specific initialization code and resource
arch/arm/mach-omap
[1/2]/. Put board specific initialization code and resource
description into this file. The first element of MACHINE_START must be equal to
description into this file. The first element of MACHINE_START must be equal to
MACH_TYPE_ section of machine registration (see arch/arm/tools/mach-types after
MACH_TYPE_ section of machine registration (see arch/arm/tools/mach-types after
machine registration at RMKs registration system).
machine registration at RMKs registration system).
...
@@ -278,13 +257,13 @@ Put only code into this file that is board specific and not common. See other
...
@@ -278,13 +257,13 @@ Put only code into this file that is board specific and not common. See other
board files for examples.
board files for examples.
7b. Only for new processors: Add processor specific IO description and
7b. Only for new processors: Add processor specific IO description and
iotable_init() to arch/arm/mach-omap
/common
.c. See examples for the syntax.
iotable_init() to arch/arm/mach-omap
[1/2]/io
.c. See examples for the syntax.
If you have introduced new clock definition in 2., add support for this new
If you have introduced new clock definition in 2., add support for this new
clock in include/asm-arm/arch-omap/clocks.h and arch/arm/mach-omap/clocks.c.
clock in include/asm-arm/arch-omap/clocks.h and arch/arm/mach-omap
[1/2]
/clocks.c.
8. Only for new boards: Add "obj-$(CONFIG_MACH_OMAP_yyyy) += board-yyyy.o" with
8. Only for new boards: Add "obj-$(CONFIG_MACH_OMAP_yyyy) += board-yyyy.o" with
yyyy board name to arch/arm/mach-omap/Makefile. This is used to compile your new
yyyy board name to arch/arm/mach-omap
[1/2]
/Makefile. This is used to compile your new
board specific initialization code from 7a.
board specific initialization code from 7a.
9. Check if other of the existing files have to be adjusted for the new
9. Check if other of the existing files have to be adjusted for the new
...
@@ -292,7 +271,7 @@ processor or board. Things to check:
...
@@ -292,7 +271,7 @@ processor or board. Things to check:
- Pin multiplexing
- Pin multiplexing
- GPIO configuration
- GPIO configuration
- Power
m
anagement
- Power
M
anagement
- Clocking
- Clocking
- Interrupt controller and interrupt configuration
- Interrupt controller and interrupt configuration
- Additional board specific things (e.g. FPGAs)
- Additional board specific things (e.g. FPGAs)
...
@@ -431,6 +410,6 @@ add a linux-c-mode to emacs.
...
@@ -431,6 +410,6 @@ add a linux-c-mode to emacs.
------------------------------------------------------------------
------------------------------------------------------------------
Last modified 1
3. June 2004
Last modified 1
5. March 2006
The OMAP Linux Kernel Team
The OMAP Linux Kernel Team
Dirk Behme <dirk.behme@de.bosch.com>
Dirk Behme <dirk.behme@de.bosch.com>
drivers/char/omap-rtc.c
View file @
adee4c09
...
@@ -121,7 +121,7 @@ static const unsigned char days_in_mo[] =
...
@@ -121,7 +121,7 @@ static const unsigned char days_in_mo[] =
* A very tiny interrupt handler. It runs with SA_INTERRUPT set.
* A very tiny interrupt handler. It runs with SA_INTERRUPT set.
*/
*/
static
irqreturn_t
rtc_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
irqreturn_t
rtc_interrupt
(
int
irq
,
void
*
dev_id
,
struct
pt_regs
*
regs
)
{
{
/*
/*
* Either an alarm interrupt or update complete interrupt.
* Either an alarm interrupt or update complete interrupt.
...
...
drivers/i2c/chips/menelaus.c
View file @
adee4c09
...
@@ -450,7 +450,7 @@ static int menelaus_scan_bus(struct i2c_adapter *bus)
...
@@ -450,7 +450,7 @@ static int menelaus_scan_bus(struct i2c_adapter *bus)
}
}
static
struct
i2c_driver
menelaus_i2c_driver
=
{
static
struct
i2c_driver
menelaus_i2c_driver
=
{
.
driver
{
.
driver
=
{
.
name
=
DRIVER_NAME
,
.
name
=
DRIVER_NAME
,
},
},
.
id
=
I2C_DRIVERID_MISC
,
/*FIXME:accroding to i2c-ids.h */
.
id
=
I2C_DRIVERID_MISC
,
/*FIXME:accroding to i2c-ids.h */
...
...
drivers/i2c/chips/tlv320aic23.c
View file @
adee4c09
...
@@ -154,7 +154,7 @@ static int tlv320aic23_attach_adapter(struct i2c_adapter *adapter)
...
@@ -154,7 +154,7 @@ static int tlv320aic23_attach_adapter(struct i2c_adapter *adapter)
}
}
static
struct
i2c_driver
tlv320aic23_driver
=
{
static
struct
i2c_driver
tlv320aic23_driver
=
{
.
driver
{
.
driver
=
{
.
name
=
"OMAP+TLV320AIC23 codec"
,
.
name
=
"OMAP+TLV320AIC23 codec"
,
/*.flags = I2C_DF_NOTIFY,*/
/*.flags = I2C_DF_NOTIFY,*/
},
},
...
@@ -594,7 +594,7 @@ static int audio_i2c_resume(struct platform_device *dev)
...
@@ -594,7 +594,7 @@ static int audio_i2c_resume(struct platform_device *dev)
}
}
static
struct
platform_driver
audio_i2c_driver
=
{
static
struct
platform_driver
audio_i2c_driver
=
{
.
driver
{
.
driver
=
{
.
owner
=
THIS_MODULE
,
.
owner
=
THIS_MODULE
,
.
name
=
"audio-i2c"
,
.
name
=
"audio-i2c"
,
},
},
...
...
drivers/input/keyboard/innovator_ps2.c
View file @
adee4c09
...
@@ -330,13 +330,10 @@ typedef struct _kdb_report_t {
...
@@ -330,13 +330,10 @@ typedef struct _kdb_report_t {
static
u8
buffer
[
JUNO_BUFFER_SIZE
];
static
u8
buffer
[
JUNO_BUFFER_SIZE
];
static
u8
block
[
JUNO_BLOCK_SIZE
];
static
void
do_hid_tasklet
(
unsigned
long
);
static
void
do_hid_tasklet
(
unsigned
long
);
DECLARE_TASKLET
(
hid_tasklet
,
do_hid_tasklet
,
0
);
DECLARE_TASKLET
(
hid_tasklet
,
do_hid_tasklet
,
0
);
static
struct
innovator_hid_dev
*
hid
;
static
struct
innovator_hid_dev
*
hid
;
static
spinlock_t
innovator_fpga_hid_lock
=
SPIN_LOCK_UNLOCKED
;
static
atomic_t
innovator_fpga_hid_busy
=
ATOMIC_INIT
(
0
);
struct
innovator_hid_dev
{
struct
innovator_hid_dev
{
struct
input_dev
mouse
,
keyboard
;
struct
input_dev
mouse
,
keyboard
;
...
@@ -378,12 +375,6 @@ innovator_fpga_hid_set_bits(u8 x)
...
@@ -378,12 +375,6 @@ innovator_fpga_hid_set_bits(u8 x)
innovator_fpga_hid_frob
(
x
,
x
);
innovator_fpga_hid_frob
(
x
,
x
);
}
}
static
void
innovator_fpga_hid_clear_bits
(
u8
x
)
{
innovator_fpga_hid_frob
(
x
,
0
);
}
static
void
static
void
SS
(
int
value
)
SS
(
int
value
)
{
{
...
@@ -697,13 +688,6 @@ report_async(void * p, int n)
...
@@ -697,13 +688,6 @@ report_async(void * p, int n)
return
ret
;
return
ret
;
}
}
static
int
verify_init
(
u8
*
p
)
{
return
(((
simple_t
*
)
p
)
->
cmd_code
==
0x01
)
?
0
:
-
1
;
}
/*
/*
* Host command helper functions:
* Host command helper functions:
*/
*/
...
@@ -1150,7 +1134,7 @@ static void innovator_ps2_device_release(struct device *dev)
...
@@ -1150,7 +1134,7 @@ static void innovator_ps2_device_release(struct device *dev)
static
int
innovator_ps2_suspend
(
struct
device
*
dev
,
pm_message_t
state
)
static
int
innovator_ps2_suspend
(
struct
device
*
dev
,
pm_message_t
state
)
{
{
u8
pmcomm
;
u8
pmcomm
=
0
;
/*
/*
* Set SUS_STATE in REG_PM_COMM (Page 0 R0). This will cause
* Set SUS_STATE in REG_PM_COMM (Page 0 R0). This will cause
...
@@ -1173,7 +1157,7 @@ static int innovator_ps2_suspend(struct device *dev, pm_message_t state)
...
@@ -1173,7 +1157,7 @@ static int innovator_ps2_suspend(struct device *dev, pm_message_t state)
static
int
innovator_ps2_resume
(
struct
device
*
dev
)
static
int
innovator_ps2_resume
(
struct
device
*
dev
)
{
{
u8
pmcomm
;
u8
pmcomm
=
0
;
/*
/*
* Clear SUS_STATE from REG_PM_COMM (Page 0 R0).
* Clear SUS_STATE from REG_PM_COMM (Page 0 R0).
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment