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
d60c98c2
Commit
d60c98c2
authored
Jul 06, 2011
by
Kukjin Kim
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'for-spi' into s5p-fixes-for-linus
parents
8fa9dd04
30757414
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
14 additions
and
3 deletions
+14
-3
arch/arm/mach-s3c64xx/dev-spi.c
arch/arm/mach-s3c64xx/dev-spi.c
+2
-0
arch/arm/mach-s5p64x0/dev-spi.c
arch/arm/mach-s5p64x0/dev-spi.c
+4
-0
arch/arm/mach-s5pc100/dev-spi.c
arch/arm/mach-s5pc100/dev-spi.c
+3
-0
arch/arm/mach-s5pv210/dev-spi.c
arch/arm/mach-s5pv210/dev-spi.c
+2
-0
arch/arm/plat-samsung/include/plat/s3c64xx-spi.h
arch/arm/plat-samsung/include/plat/s3c64xx-spi.h
+2
-0
drivers/spi/spi_s3c64xx.c
drivers/spi/spi_s3c64xx.c
+1
-3
No files found.
arch/arm/mach-s3c64xx/dev-spi.c
View file @
d60c98c2
...
...
@@ -88,6 +88,7 @@ static struct s3c64xx_spi_info s3c64xx_spi0_pdata = {
.
cfg_gpio
=
s3c64xx_spi_cfg_gpio
,
.
fifo_lvl_mask
=
0x7f
,
.
rx_lvl_offset
=
13
,
.
tx_st_done
=
21
,
};
static
u64
spi_dmamask
=
DMA_BIT_MASK
(
32
);
...
...
@@ -132,6 +133,7 @@ static struct s3c64xx_spi_info s3c64xx_spi1_pdata = {
.
cfg_gpio
=
s3c64xx_spi_cfg_gpio
,
.
fifo_lvl_mask
=
0x7f
,
.
rx_lvl_offset
=
13
,
.
tx_st_done
=
21
,
};
struct
platform_device
s3c64xx_device_spi1
=
{
...
...
arch/arm/mach-s5p64x0/dev-spi.c
View file @
d60c98c2
...
...
@@ -112,12 +112,14 @@ static struct s3c64xx_spi_info s5p6440_spi0_pdata = {
.
cfg_gpio
=
s5p6440_spi_cfg_gpio
,
.
fifo_lvl_mask
=
0x1ff
,
.
rx_lvl_offset
=
15
,
.
tx_st_done
=
25
,
};
static
struct
s3c64xx_spi_info
s5p6450_spi0_pdata
=
{
.
cfg_gpio
=
s5p6450_spi_cfg_gpio
,
.
fifo_lvl_mask
=
0x1ff
,
.
rx_lvl_offset
=
15
,
.
tx_st_done
=
25
,
};
static
u64
spi_dmamask
=
DMA_BIT_MASK
(
32
);
...
...
@@ -160,12 +162,14 @@ static struct s3c64xx_spi_info s5p6440_spi1_pdata = {
.
cfg_gpio
=
s5p6440_spi_cfg_gpio
,
.
fifo_lvl_mask
=
0x7f
,
.
rx_lvl_offset
=
15
,
.
tx_st_done
=
25
,
};
static
struct
s3c64xx_spi_info
s5p6450_spi1_pdata
=
{
.
cfg_gpio
=
s5p6450_spi_cfg_gpio
,
.
fifo_lvl_mask
=
0x7f
,
.
rx_lvl_offset
=
15
,
.
tx_st_done
=
25
,
};
struct
platform_device
s5p64x0_device_spi1
=
{
...
...
arch/arm/mach-s5pc100/dev-spi.c
View file @
d60c98c2
...
...
@@ -91,6 +91,7 @@ static struct s3c64xx_spi_info s5pc100_spi0_pdata = {
.
fifo_lvl_mask
=
0x7f
,
.
rx_lvl_offset
=
13
,
.
high_speed
=
1
,
.
tx_st_done
=
21
,
};
static
u64
spi_dmamask
=
DMA_BIT_MASK
(
32
);
...
...
@@ -135,6 +136,7 @@ static struct s3c64xx_spi_info s5pc100_spi1_pdata = {
.
fifo_lvl_mask
=
0x7f
,
.
rx_lvl_offset
=
13
,
.
high_speed
=
1
,
.
tx_st_done
=
21
,
};
struct
platform_device
s5pc100_device_spi1
=
{
...
...
@@ -177,6 +179,7 @@ static struct s3c64xx_spi_info s5pc100_spi2_pdata = {
.
fifo_lvl_mask
=
0x7f
,
.
rx_lvl_offset
=
13
,
.
high_speed
=
1
,
.
tx_st_done
=
21
,
};
struct
platform_device
s5pc100_device_spi2
=
{
...
...
arch/arm/mach-s5pv210/dev-spi.c
View file @
d60c98c2
...
...
@@ -85,6 +85,7 @@ static struct s3c64xx_spi_info s5pv210_spi0_pdata = {
.
fifo_lvl_mask
=
0x1ff
,
.
rx_lvl_offset
=
15
,
.
high_speed
=
1
,
.
tx_st_done
=
25
,
};
static
u64
spi_dmamask
=
DMA_BIT_MASK
(
32
);
...
...
@@ -129,6 +130,7 @@ static struct s3c64xx_spi_info s5pv210_spi1_pdata = {
.
fifo_lvl_mask
=
0x7f
,
.
rx_lvl_offset
=
15
,
.
high_speed
=
1
,
.
tx_st_done
=
25
,
};
struct
platform_device
s5pv210_device_spi1
=
{
...
...
arch/arm/plat-samsung/include/plat/s3c64xx-spi.h
View file @
d60c98c2
...
...
@@ -39,6 +39,7 @@ struct s3c64xx_spi_csinfo {
* @fifo_lvl_mask: All tx fifo_lvl fields start at offset-6
* @rx_lvl_offset: Depends on tx fifo_lvl field and bus number
* @high_speed: If the controller supports HIGH_SPEED_EN bit
* @tx_st_done: Depends on tx fifo_lvl field
*/
struct
s3c64xx_spi_info
{
int
src_clk_nr
;
...
...
@@ -53,6 +54,7 @@ struct s3c64xx_spi_info {
int
fifo_lvl_mask
;
int
rx_lvl_offset
;
int
high_speed
;
int
tx_st_done
;
};
/**
...
...
drivers/spi/spi_s3c64xx.c
View file @
d60c98c2
...
...
@@ -116,9 +116,7 @@
(((i)->fifo_lvl_mask + 1))) \
? 1 : 0)
#define S3C64XX_SPI_ST_TX_DONE(v, i) ((((v) >> (i)->rx_lvl_offset) & \
(((i)->fifo_lvl_mask + 1) << 1)) \
? 1 : 0)
#define S3C64XX_SPI_ST_TX_DONE(v, i) (((v) & (1 << (i)->tx_st_done)) ? 1 : 0)
#define TX_FIFO_LVL(v, i) (((v) >> 6) & (i)->fifo_lvl_mask)
#define RX_FIFO_LVL(v, i) (((v) >> (i)->rx_lvl_offset) & (i)->fifo_lvl_mask)
...
...
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