Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
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
Commits
ae5c8c83
Commit
ae5c8c83
authored
Jun 03, 2009
by
Nicolas Pitre
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ARM] Kirkwood: platform device registration for the crypto engine
Signed-off-by:
Nicolas Pitre
<
nico@marvell.com
>
parent
c1191b0e
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
40 additions
and
0 deletions
+40
-0
arch/arm/mach-kirkwood/common.c
arch/arm/mach-kirkwood/common.c
+38
-0
arch/arm/mach-kirkwood/include/mach/kirkwood.h
arch/arm/mach-kirkwood/include/mach/kirkwood.h
+2
-0
No files found.
arch/arm/mach-kirkwood/common.c
View file @
ae5c8c83
...
...
@@ -560,6 +560,43 @@ void __init kirkwood_uart1_init(void)
}
/*****************************************************************************
* Cryptographic Engines and Security Accelerator (CESA)
****************************************************************************/
static
struct
resource
kirkwood_crypto_res
[]
=
{
{
.
name
=
"regs"
,
.
start
=
CRYPTO_PHYS_BASE
,
.
end
=
CRYPTO_PHYS_BASE
+
0xffff
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
name
=
"sram"
,
.
start
=
KIRKWOOD_SRAM_PHYS_BASE
,
.
end
=
KIRKWOOD_SRAM_PHYS_BASE
+
KIRKWOOD_SRAM_SIZE
-
1
,
.
flags
=
IORESOURCE_MEM
,
},
{
.
name
=
"crypto interrupt"
,
.
start
=
IRQ_KIRKWOOD_CRYPTO
,
.
end
=
IRQ_KIRKWOOD_CRYPTO
,
.
flags
=
IORESOURCE_IRQ
,
},
};
static
struct
platform_device
kirkwood_crypto_device
=
{
.
name
=
"mv_crypto"
,
.
id
=
-
1
,
.
num_resources
=
ARRAY_SIZE
(
kirkwood_crypto_res
),
.
resource
=
kirkwood_crypto_res
,
};
void
__init
kirkwood_crypto_init
(
void
)
{
kirkwood_clk_ctrl
|=
CGC_CRYPTO
;
platform_device_register
(
&
kirkwood_crypto_device
);
}
/*****************************************************************************
* XOR
****************************************************************************/
...
...
@@ -886,6 +923,7 @@ void __init kirkwood_init(void)
kirkwood_wdt_init
();
kirkwood_xor0_init
();
kirkwood_xor1_init
();
kirkwood_crypto_init
();
}
static
int
__init
kirkwood_clock_gate
(
void
)
...
...
arch/arm/mach-kirkwood/include/mach/kirkwood.h
View file @
ae5c8c83
...
...
@@ -66,6 +66,8 @@
#define BRIDGE_VIRT_BASE (KIRKWOOD_REGS_VIRT_BASE | 0x20000)
#define CRYPTO_PHYS_BASE (KIRKWOOD_REGS_PHYS_BASE | 0x30000)
#define PCIE_VIRT_BASE (KIRKWOOD_REGS_VIRT_BASE | 0x40000)
#define PCIE_LINK_CTRL (PCIE_VIRT_BASE | 0x70)
#define PCIE_STATUS (PCIE_VIRT_BASE | 0x1a04)
...
...
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