Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
793b3cb6
Commit
793b3cb6
authored
Sep 01, 2013
by
Mark Brown
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'spi/topic/pxa' into spi-next
parents
720ed2d1
1de70612
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
drivers/spi/spi-pxa2xx.c
drivers/spi/spi-pxa2xx.c
+8
-1
No files found.
drivers/spi/spi-pxa2xx.c
View file @
793b3cb6
...
...
@@ -69,6 +69,8 @@ MODULE_ALIAS("platform:pxa2xx-spi");
#define LPSS_TX_HITHRESH_DFLT 224
/* Offset from drv_data->lpss_base */
#define GENERAL_REG 0x08
#define GENERAL_REG_RXTO_HOLDOFF_DISABLE BIT(24)
#define SSP_REG 0x0c
#define SPI_CS_CONTROL 0x18
#define SPI_CS_CONTROL_SW_MODE BIT(0)
...
...
@@ -142,8 +144,13 @@ static void lpss_ssp_setup(struct driver_data *drv_data)
__lpss_ssp_write_priv
(
drv_data
,
SPI_CS_CONTROL
,
value
);
/* Enable multiblock DMA transfers */
if
(
drv_data
->
master_info
->
enable_dma
)
if
(
drv_data
->
master_info
->
enable_dma
)
{
__lpss_ssp_write_priv
(
drv_data
,
SSP_REG
,
1
);
value
=
__lpss_ssp_read_priv
(
drv_data
,
GENERAL_REG
);
value
|=
GENERAL_REG_RXTO_HOLDOFF_DISABLE
;
__lpss_ssp_write_priv
(
drv_data
,
GENERAL_REG
,
value
);
}
}
static
void
lpss_ssp_cs_control
(
struct
driver_data
*
drv_data
,
bool
enable
)
...
...
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