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
05f68940
Commit
05f68940
authored
Mar 14, 2011
by
Tony Lindgren
Browse files
Options
Browse Files
Download
Plain Diff
Merge branches 'devel-mux' and 'devel-misc' into omap-for-linus
parents
17fe12c5
02b7b94e
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
35 additions
and
25 deletions
+35
-25
arch/arm/mach-omap2/board-h4.c
arch/arm/mach-omap2/board-h4.c
+1
-1
arch/arm/mach-omap2/board-zoom.c
arch/arm/mach-omap2/board-zoom.c
+1
-1
arch/arm/mach-omap2/id.c
arch/arm/mach-omap2/id.c
+13
-0
arch/arm/plat-omap/include/plat/iovmm.h
arch/arm/plat-omap/include/plat/iovmm.h
+0
-2
arch/arm/plat-omap/iommu.c
arch/arm/plat-omap/iommu.c
+8
-6
arch/arm/plat-omap/iovmm.c
arch/arm/plat-omap/iovmm.c
+12
-15
No files found.
arch/arm/mach-omap2/board-h4.c
View file @
05f68940
...
...
@@ -299,7 +299,6 @@ static void __init omap_h4_init_early(void)
static
void
__init
omap_h4_init_irq
(
void
)
{
omap_init_irq
();
h4_init_flash
();
}
static
struct
at24_platform_data
m24c01
=
{
...
...
@@ -372,6 +371,7 @@ static void __init omap_h4_init(void)
platform_add_devices
(
h4_devices
,
ARRAY_SIZE
(
h4_devices
));
omap2_usbfs_init
(
&
h4_usb_config
);
omap_serial_init
();
h4_init_flash
();
}
static
void
__init
omap_h4_map_io
(
void
)
...
...
arch/arm/mach-omap2/board-zoom.c
View file @
05f68940
...
...
@@ -48,7 +48,7 @@ static void __init omap_zoom_init_early(void)
#ifdef CONFIG_OMAP_MUX
static
struct
omap_board_mux
board_mux
[]
__initdata
=
{
/* WLAN IRQ - GPIO 162 */
OMAP3_MUX
(
MCBSP1_CLKX
,
OMAP_MUX_MODE4
|
OMAP_PIN_INPUT
_PULLUP
),
OMAP3_MUX
(
MCBSP1_CLKX
,
OMAP_MUX_MODE4
|
OMAP_PIN_INPUT
),
/* WLAN POWER ENABLE - GPIO 101 */
OMAP3_MUX
(
CAM_D2
,
OMAP_MUX_MODE4
|
OMAP_PIN_OUTPUT
),
/* WLAN SDIO: MMC3 CMD */
...
...
arch/arm/mach-omap2/id.c
View file @
05f68940
...
...
@@ -84,6 +84,11 @@ EXPORT_SYMBOL(omap_type);
#define OMAP_TAP_DIE_ID_2 0x0220
#define OMAP_TAP_DIE_ID_3 0x0224
#define OMAP_TAP_DIE_ID_44XX_0 0x0200
#define OMAP_TAP_DIE_ID_44XX_1 0x0208
#define OMAP_TAP_DIE_ID_44XX_2 0x020c
#define OMAP_TAP_DIE_ID_44XX_3 0x0210
#define read_tap_reg(reg) __raw_readl(tap_base + (reg))
struct
omap_id
{
...
...
@@ -107,6 +112,14 @@ static u16 tap_prod_id;
void
omap_get_die_id
(
struct
omap_die_id
*
odi
)
{
if
(
cpu_is_omap44xx
())
{
odi
->
id_0
=
read_tap_reg
(
OMAP_TAP_DIE_ID_44XX_0
);
odi
->
id_1
=
read_tap_reg
(
OMAP_TAP_DIE_ID_44XX_1
);
odi
->
id_2
=
read_tap_reg
(
OMAP_TAP_DIE_ID_44XX_2
);
odi
->
id_3
=
read_tap_reg
(
OMAP_TAP_DIE_ID_44XX_3
);
return
;
}
odi
->
id_0
=
read_tap_reg
(
OMAP_TAP_DIE_ID_0
);
odi
->
id_1
=
read_tap_reg
(
OMAP_TAP_DIE_ID_1
);
odi
->
id_2
=
read_tap_reg
(
OMAP_TAP_DIE_ID_2
);
...
...
arch/arm/plat-omap/include/plat/iovmm.h
View file @
05f68940
...
...
@@ -71,8 +71,6 @@ struct iovm_struct {
#define IOVMF_LINEAR_MASK (3 << (2 + IOVMF_SW_SHIFT))
#define IOVMF_DA_FIXED (1 << (4 + IOVMF_SW_SHIFT))
#define IOVMF_DA_ANON (2 << (4 + IOVMF_SW_SHIFT))
#define IOVMF_DA_MASK (3 << (4 + IOVMF_SW_SHIFT))
extern
struct
iovm_struct
*
find_iovm_area
(
struct
iommu
*
obj
,
u32
da
);
...
...
arch/arm/plat-omap/iommu.c
View file @
05f68940
...
...
@@ -982,11 +982,6 @@ static int __devinit omap_iommu_probe(struct platform_device *pdev)
err
=
-
ENODEV
;
goto
err_mem
;
}
obj
->
regbase
=
ioremap
(
res
->
start
,
resource_size
(
res
));
if
(
!
obj
->
regbase
)
{
err
=
-
ENOMEM
;
goto
err_mem
;
}
res
=
request_mem_region
(
res
->
start
,
resource_size
(
res
),
dev_name
(
&
pdev
->
dev
));
...
...
@@ -995,6 +990,12 @@ static int __devinit omap_iommu_probe(struct platform_device *pdev)
goto
err_mem
;
}
obj
->
regbase
=
ioremap
(
res
->
start
,
resource_size
(
res
));
if
(
!
obj
->
regbase
)
{
err
=
-
ENOMEM
;
goto
err_ioremap
;
}
irq
=
platform_get_irq
(
pdev
,
0
);
if
(
irq
<
0
)
{
err
=
-
ENODEV
;
...
...
@@ -1023,8 +1024,9 @@ static int __devinit omap_iommu_probe(struct platform_device *pdev)
err_pgd:
free_irq
(
irq
,
obj
);
err_irq:
release_mem_region
(
res
->
start
,
resource_size
(
res
));
iounmap
(
obj
->
regbase
);
err_ioremap:
release_mem_region
(
res
->
start
,
resource_size
(
res
));
err_mem:
clk_put
(
obj
->
clk
);
err_clk:
...
...
arch/arm/plat-omap/iovmm.c
View file @
05f68940
...
...
@@ -271,20 +271,21 @@ static struct iovm_struct *alloc_iovm_area(struct iommu *obj, u32 da,
size_t
bytes
,
u32
flags
)
{
struct
iovm_struct
*
new
,
*
tmp
;
u32
start
,
prev_end
,
align
e
ment
;
u32
start
,
prev_end
,
alignment
;
if
(
!
obj
||
!
bytes
)
return
ERR_PTR
(
-
EINVAL
);
start
=
da
;
align
e
ment
=
PAGE_SIZE
;
alignment
=
PAGE_SIZE
;
if
(
flags
&
IOVMF_DA_ANON
)
{
start
=
obj
->
da_start
;
if
(
~
flags
&
IOVMF_DA_FIXED
)
{
/* Don't map address 0 */
start
=
obj
->
da_start
?
obj
->
da_start
:
alignment
;
if
(
flags
&
IOVMF_LINEAR
)
align
e
ment
=
iopgsz_max
(
bytes
);
start
=
roundup
(
start
,
align
e
ment
);
alignment
=
iopgsz_max
(
bytes
);
start
=
roundup
(
start
,
alignment
);
}
else
if
(
start
<
obj
->
da_start
||
start
>
obj
->
da_end
||
obj
->
da_end
-
start
<
bytes
)
{
return
ERR_PTR
(
-
EINVAL
);
...
...
@@ -303,8 +304,8 @@ static struct iovm_struct *alloc_iovm_area(struct iommu *obj, u32 da,
if
(
tmp
->
da_start
>
start
&&
(
tmp
->
da_start
-
start
)
>=
bytes
)
goto
found
;
if
(
tmp
->
da_end
>=
start
&&
flags
&
IOVMF_DA_ANON
)
start
=
roundup
(
tmp
->
da_end
+
1
,
align
e
ment
);
if
(
tmp
->
da_end
>=
start
&&
~
flags
&
IOVMF_DA_FIXED
)
start
=
roundup
(
tmp
->
da_end
+
1
,
alignment
);
prev_end
=
tmp
->
da_end
;
}
...
...
@@ -650,7 +651,6 @@ u32 iommu_vmap(struct iommu *obj, u32 da, const struct sg_table *sgt,
flags
&=
IOVMF_HW_MASK
;
flags
|=
IOVMF_DISCONT
;
flags
|=
IOVMF_MMIO
;
flags
|=
(
da
?
IOVMF_DA_FIXED
:
IOVMF_DA_ANON
);
da
=
__iommu_vmap
(
obj
,
da
,
sgt
,
va
,
bytes
,
flags
);
if
(
IS_ERR_VALUE
(
da
))
...
...
@@ -690,7 +690,7 @@ EXPORT_SYMBOL_GPL(iommu_vunmap);
* @flags: iovma and page property
*
* Allocate @bytes linearly and creates 1-n-1 mapping and returns
* @da again, which might be adjusted if 'IOVMF_DA_
ANON' is
set.
* @da again, which might be adjusted if 'IOVMF_DA_
FIXED' is not
set.
*/
u32
iommu_vmalloc
(
struct
iommu
*
obj
,
u32
da
,
size_t
bytes
,
u32
flags
)
{
...
...
@@ -709,7 +709,6 @@ u32 iommu_vmalloc(struct iommu *obj, u32 da, size_t bytes, u32 flags)
flags
&=
IOVMF_HW_MASK
;
flags
|=
IOVMF_DISCONT
;
flags
|=
IOVMF_ALLOC
;
flags
|=
(
da
?
IOVMF_DA_FIXED
:
IOVMF_DA_ANON
);
sgt
=
sgtable_alloc
(
bytes
,
flags
,
da
,
0
);
if
(
IS_ERR
(
sgt
))
{
...
...
@@ -780,7 +779,7 @@ static u32 __iommu_kmap(struct iommu *obj, u32 da, u32 pa, void *va,
* @flags: iovma and page property
*
* Creates 1-1-1 mapping and returns @da again, which can be
* adjusted if 'IOVMF_DA_
ANON' is
set.
* adjusted if 'IOVMF_DA_
FIXED' is not
set.
*/
u32
iommu_kmap
(
struct
iommu
*
obj
,
u32
da
,
u32
pa
,
size_t
bytes
,
u32
flags
)
...
...
@@ -799,7 +798,6 @@ u32 iommu_kmap(struct iommu *obj, u32 da, u32 pa, size_t bytes,
flags
&=
IOVMF_HW_MASK
;
flags
|=
IOVMF_LINEAR
;
flags
|=
IOVMF_MMIO
;
flags
|=
(
da
?
IOVMF_DA_FIXED
:
IOVMF_DA_ANON
);
da
=
__iommu_kmap
(
obj
,
da
,
pa
,
va
,
bytes
,
flags
);
if
(
IS_ERR_VALUE
(
da
))
...
...
@@ -838,7 +836,7 @@ EXPORT_SYMBOL_GPL(iommu_kunmap);
* @flags: iovma and page property
*
* Allocate @bytes linearly and creates 1-1-1 mapping and returns
* @da again, which might be adjusted if 'IOVMF_DA_
ANON' is
set.
* @da again, which might be adjusted if 'IOVMF_DA_
FIXED' is not
set.
*/
u32
iommu_kmalloc
(
struct
iommu
*
obj
,
u32
da
,
size_t
bytes
,
u32
flags
)
{
...
...
@@ -858,7 +856,6 @@ u32 iommu_kmalloc(struct iommu *obj, u32 da, size_t bytes, u32 flags)
flags
&=
IOVMF_HW_MASK
;
flags
|=
IOVMF_LINEAR
;
flags
|=
IOVMF_ALLOC
;
flags
|=
(
da
?
IOVMF_DA_FIXED
:
IOVMF_DA_ANON
);
da
=
__iommu_kmap
(
obj
,
da
,
pa
,
va
,
bytes
,
flags
);
if
(
IS_ERR_VALUE
(
da
))
...
...
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