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
0d49fee9
Commit
0d49fee9
authored
Oct 29, 2015
by
Vinod Koul
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/dw' into for-linus
parents
28ca3e85
49dfebeb
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
27 deletions
+14
-27
arch/avr32/mach-at32ap/at32ap700x.c
arch/avr32/mach-at32ap/at32ap700x.c
+1
-8
drivers/dma/dw/core.c
drivers/dma/dw/core.c
+6
-6
drivers/dma/dw/pci.c
drivers/dma/dw/pci.c
+7
-13
No files found.
arch/avr32/mach-at32ap/at32ap700x.c
View file @
0d49fee9
...
...
@@ -603,18 +603,11 @@ static void __init genclk_init_parent(struct clk *clk)
clk
->
parent
=
parent
;
}
static
struct
dw_dma_platform_data
dw_dmac0_data
=
{
.
nr_channels
=
3
,
.
block_size
=
4095U
,
.
nr_masters
=
2
,
.
data_width
=
{
2
,
2
},
};
static
struct
resource
dw_dmac0_resource
[]
=
{
PBMEM
(
0xff200000
),
IRQ
(
2
),
};
DEFINE_DEV
_DATA
(
dw_dmac
,
0
);
DEFINE_DEV
(
dw_dmac
,
0
);
DEV_CLK
(
hclk
,
dw_dmac0
,
hsb
,
10
);
/* --------------------------------------------------------------------
...
...
drivers/dma/dw/core.c
View file @
0d49fee9
...
...
@@ -163,7 +163,7 @@ static void dwc_initialize(struct dw_dma_chan *dwc)
/*----------------------------------------------------------------------*/
static
inline
unsigned
int
dwc_fast_f
l
s
(
unsigned
long
long
v
)
static
inline
unsigned
int
dwc_fast_f
f
s
(
unsigned
long
long
v
)
{
/*
* We can be a lot more clever here, but this should take care
...
...
@@ -712,7 +712,7 @@ dwc_prep_dma_memcpy(struct dma_chan *chan, dma_addr_t dest, dma_addr_t src,
dw
->
data_width
[
dwc
->
dst_master
]);
src_width
=
dst_width
=
min_t
(
unsigned
int
,
data_width
,
dwc_fast_f
l
s
(
src
|
dest
|
len
));
dwc_fast_f
f
s
(
src
|
dest
|
len
));
ctllo
=
DWC_DEFAULT_CTLLO
(
chan
)
|
DWC_CTLL_DST_WIDTH
(
dst_width
)
...
...
@@ -791,7 +791,7 @@ dwc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
switch
(
direction
)
{
case
DMA_MEM_TO_DEV
:
reg_width
=
__f
l
s
(
sconfig
->
dst_addr_width
);
reg_width
=
__f
f
s
(
sconfig
->
dst_addr_width
);
reg
=
sconfig
->
dst_addr
;
ctllo
=
(
DWC_DEFAULT_CTLLO
(
chan
)
|
DWC_CTLL_DST_WIDTH
(
reg_width
)
...
...
@@ -811,7 +811,7 @@ dwc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
len
=
sg_dma_len
(
sg
);
mem_width
=
min_t
(
unsigned
int
,
data_width
,
dwc_fast_f
l
s
(
mem
|
len
));
data_width
,
dwc_fast_f
f
s
(
mem
|
len
));
slave_sg_todev_fill_desc:
desc
=
dwc_desc_get
(
dwc
);
...
...
@@ -848,7 +848,7 @@ dwc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
}
break
;
case
DMA_DEV_TO_MEM
:
reg_width
=
__f
l
s
(
sconfig
->
src_addr_width
);
reg_width
=
__f
f
s
(
sconfig
->
src_addr_width
);
reg
=
sconfig
->
src_addr
;
ctllo
=
(
DWC_DEFAULT_CTLLO
(
chan
)
|
DWC_CTLL_SRC_WIDTH
(
reg_width
)
...
...
@@ -868,7 +868,7 @@ dwc_prep_slave_sg(struct dma_chan *chan, struct scatterlist *sgl,
len
=
sg_dma_len
(
sg
);
mem_width
=
min_t
(
unsigned
int
,
data_width
,
dwc_fast_f
l
s
(
mem
|
len
));
data_width
,
dwc_fast_f
f
s
(
mem
|
len
));
slave_sg_fromdev_fill_desc:
desc
=
dwc_desc_get
(
dwc
);
...
...
drivers/dma/dw/pci.c
View file @
0d49fee9
...
...
@@ -15,12 +15,6 @@
#include "internal.h"
static
struct
dw_dma_platform_data
dw_pci_pdata
=
{
.
is_private
=
1
,
.
chan_allocation_order
=
CHAN_ALLOCATION_ASCENDING
,
.
chan_priority
=
CHAN_PRIORITY_ASCENDING
,
};
static
int
dw_pci_probe
(
struct
pci_dev
*
pdev
,
const
struct
pci_device_id
*
pid
)
{
struct
dw_dma_chip
*
chip
;
...
...
@@ -101,19 +95,19 @@ static const struct dev_pm_ops dw_pci_dev_pm_ops = {
static
const
struct
pci_device_id
dw_pci_id_table
[]
=
{
/* Medfield */
{
PCI_VDEVICE
(
INTEL
,
0x0827
)
,
(
kernel_ulong_t
)
&
dw_pci_pdata
},
{
PCI_VDEVICE
(
INTEL
,
0x0830
)
,
(
kernel_ulong_t
)
&
dw_pci_pdata
},
{
PCI_VDEVICE
(
INTEL
,
0x0827
)
},
{
PCI_VDEVICE
(
INTEL
,
0x0830
)
},
/* BayTrail */
{
PCI_VDEVICE
(
INTEL
,
0x0f06
)
,
(
kernel_ulong_t
)
&
dw_pci_pdata
},
{
PCI_VDEVICE
(
INTEL
,
0x0f40
)
,
(
kernel_ulong_t
)
&
dw_pci_pdata
},
{
PCI_VDEVICE
(
INTEL
,
0x0f06
)
},
{
PCI_VDEVICE
(
INTEL
,
0x0f40
)
},
/* Braswell */
{
PCI_VDEVICE
(
INTEL
,
0x2286
)
,
(
kernel_ulong_t
)
&
dw_pci_pdata
},
{
PCI_VDEVICE
(
INTEL
,
0x22c0
)
,
(
kernel_ulong_t
)
&
dw_pci_pdata
},
{
PCI_VDEVICE
(
INTEL
,
0x2286
)
},
{
PCI_VDEVICE
(
INTEL
,
0x22c0
)
},
/* Haswell */
{
PCI_VDEVICE
(
INTEL
,
0x9c60
)
,
(
kernel_ulong_t
)
&
dw_pci_pdata
},
{
PCI_VDEVICE
(
INTEL
,
0x9c60
)
},
{
}
};
MODULE_DEVICE_TABLE
(
pci
,
dw_pci_id_table
);
...
...
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