Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci-2.6.23
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-2.6.23
Commits
54373ede
Commit
54373ede
authored
Aug 11, 2005
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Plain Diff
Merge with ../linux-omap-dev
parents
ca6c3b1c
387a9783
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
51 additions
and
6 deletions
+51
-6
arch/arm/mach-omap1/board-generic.c
arch/arm/mach-omap1/board-generic.c
+22
-0
arch/arm/plat-omap/clock.c
arch/arm/plat-omap/clock.c
+16
-3
arch/arm/plat-omap/dma.c
arch/arm/plat-omap/dma.c
+3
-3
drivers/mmc/mmc_block.c
drivers/mmc/mmc_block.c
+10
-0
No files found.
arch/arm/mach-omap1/board-generic.c
View file @
54373ede
...
...
@@ -48,15 +48,37 @@ static struct omap_usb_config generic1510_usb_config __initdata = {
#if defined(CONFIG_ARCH_OMAP16XX)
static
struct
omap_usb_config
generic1610_usb_config
__initdata
=
{
#ifdef CONFIG_USB_OTG
.
otg
=
1
,
#endif
.
register_host
=
1
,
.
register_dev
=
1
,
.
hmc_mode
=
16
,
.
pins
[
0
]
=
6
,
};
static
struct
omap_mmc_config
generic_mmc_config
__initdata
=
{
.
mmc
[
0
]
=
{
.
enabled
=
0
,
.
wire4
=
0
,
.
wp_pin
=
-
1
,
.
power_pin
=
-
1
,
.
switch_pin
=
-
1
,
},
.
mmc
[
1
]
=
{
.
enabled
=
0
,
.
wire4
=
0
,
.
wp_pin
=
-
1
,
.
power_pin
=
-
1
,
.
switch_pin
=
-
1
,
},
};
#endif
static
struct
omap_board_config_kernel
generic_config
[]
=
{
{
OMAP_TAG_USB
,
NULL
},
{
OMAP_TAG_MMC
,
&
generic_mmc_config
},
};
static
void
__init
omap_generic_init
(
void
)
...
...
arch/arm/plat-omap/clock.c
View file @
54373ede
...
...
@@ -142,7 +142,7 @@ static struct clk arm_ck = {
static
struct
clk
armper_ck
=
{
.
name
=
"armper_ck"
,
.
parent
=
&
ck_dpll1
,
.
flags
=
CLOCK_IN_OMAP
730
|
CLOCK_IN_OMAP
1510
|
CLOCK_IN_OMAP16XX
|
.
flags
=
CLOCK_IN_OMAP1510
|
CLOCK_IN_OMAP16XX
|
RATE_CKCTL
,
.
enable_reg
=
ARM_IDLECT2
,
.
enable_bit
=
EN_PERCK
,
...
...
@@ -386,7 +386,8 @@ static struct clk uart2_ck = {
.
name
=
"uart2_ck"
,
/* Direct from ULPD, no parent */
.
rate
=
12000000
,
.
flags
=
CLOCK_IN_OMAP1510
|
CLOCK_IN_OMAP16XX
|
ENABLE_REG_32BIT
,
.
flags
=
CLOCK_IN_OMAP1510
|
CLOCK_IN_OMAP16XX
|
ENABLE_REG_32BIT
|
ALWAYS_ENABLED
,
.
enable_reg
=
MOD_CONF_CTRL_0
,
.
enable_bit
=
30
,
/* Chooses between 12MHz and 48MHz */
.
set_rate
=
&
set_uart_rate
,
...
...
@@ -444,6 +445,15 @@ static struct clk usb_hhc_ck16xx = {
.
enable_bit
=
8
/* UHOST_EN */
,
};
static
struct
clk
usb_dc_ck
=
{
.
name
=
"usb_dc_ck"
,
/* Direct from ULPD, no parent */
.
rate
=
48000000
,
.
flags
=
CLOCK_IN_OMAP16XX
|
RATE_FIXED
,
.
enable_reg
=
SOFT_REQ_REG
,
.
enable_bit
=
4
,
};
static
struct
clk
mclk_1510
=
{
.
name
=
"mclk"
,
/* Direct from ULPD, no parent. May be enabled by ext hardware. */
...
...
@@ -553,6 +563,7 @@ static struct clk * onchip_clks[] = {
&
uart3_16xx
,
&
usb_clko
,
&
usb_hhc_ck1510
,
&
usb_hhc_ck16xx
,
&
usb_dc_ck
,
&
mclk_1510
,
&
mclk_16xx
,
&
bclk_1510
,
&
bclk_16xx
,
&
mmc1_ck
,
...
...
@@ -1273,7 +1284,9 @@ static int __init omap_late_clk_reset(void)
struct
clk
*
p
;
__u32
regval32
;
omap_writew
(
0
,
SOFT_REQ_REG
);
/* USB_REQ_EN will be disabled later if necessary (usb_dc_ck) */
regval32
=
omap_readw
(
SOFT_REQ_REG
)
&
(
1
<<
4
);
omap_writew
(
regval32
,
SOFT_REQ_REG
);
omap_writew
(
0
,
SOFT_REQ_REG2
);
list_for_each_entry
(
p
,
&
clocks
,
node
)
{
...
...
arch/arm/plat-omap/dma.c
View file @
54373ede
...
...
@@ -425,7 +425,7 @@ static int dma_handle_ch(int ch)
dma_chan
[
ch
+
6
].
saved_csr
=
csr
>>
7
;
csr
&=
0x7f
;
}
if
(
!
csr
)
if
(
(
csr
&
0x3f
)
==
0
)
return
0
;
if
(
unlikely
(
dma_chan
[
ch
].
dev_id
==
-
1
))
{
printk
(
KERN_WARNING
"Spurious interrupt from DMA channel %d (CSR %04x)
\n
"
,
...
...
@@ -890,11 +890,11 @@ void omap_enable_lcd_dma(void)
w
|=
1
<<
8
;
omap_writew
(
w
,
OMAP1610_DMA_LCD_CTRL
);
lcd_dma
.
active
=
1
;
w
=
omap_readw
(
OMAP1610_DMA_LCD_CCR
);
w
|=
1
<<
7
;
omap_writew
(
w
,
OMAP1610_DMA_LCD_CCR
);
lcd_dma
.
active
=
1
;
}
void
omap_setup_lcd_dma
(
void
)
...
...
drivers/mmc/mmc_block.c
View file @
54373ede
...
...
@@ -31,6 +31,7 @@
#include <linux/mmc/card.h>
#include <linux/mmc/protocol.h>
#include <linux/mmc/host.h>
#include <asm/system.h>
#include <asm/uaccess.h>
...
...
@@ -269,6 +270,10 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
goto
cmd_fail
;
}
/* No need to check card status after a read */
if
(
rq_data_dir
(
req
)
==
READ
)
goto
card_ready
;
do
{
int
err
;
...
...
@@ -298,6 +303,8 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
goto cmd_err;
#endif
card_ready:
/*
* A block was successfully transferred.
*/
...
...
@@ -359,6 +366,9 @@ static int mmc_blk_issue_rq(struct mmc_queue *mq, struct request *req)
end_that_request_last
(
req
);
spin_unlock_irq
(
&
md
->
lock
);
/* If a command fails, the card might be removed. */
mmc_detect_change
(
card
->
host
);
return
0
;
}
...
...
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