Commit f45964ed authored by Saeed Bishara's avatar Saeed Bishara Committed by Nicolas Pitre

[ARM] orion5x: pass dram mbus data to xor driver

This data should be passed to the xor driver in order to initialize
the address decoding windows of the xor unit. without this patch, the
self tests of the xor will fail unless the address decoding windows were
initialized by the boot loader.
Signed-off-by: default avatarSaeed Bishara <saeed@marvell.com>
Signed-off-by: default avatarNicolas Pitre <nico@marvell.com>
parent bdf602bd
...@@ -431,6 +431,10 @@ void __init orion5x_uart1_init(void) ...@@ -431,6 +431,10 @@ void __init orion5x_uart1_init(void)
/***************************************************************************** /*****************************************************************************
* XOR engine * XOR engine
****************************************************************************/ ****************************************************************************/
struct mv_xor_platform_shared_data orion5x_xor_shared_data = {
.dram = &orion5x_mbus_dram_info,
};
static struct resource orion5x_xor_shared_resources[] = { static struct resource orion5x_xor_shared_resources[] = {
{ {
.name = "xor low", .name = "xor low",
...@@ -448,6 +452,9 @@ static struct resource orion5x_xor_shared_resources[] = { ...@@ -448,6 +452,9 @@ static struct resource orion5x_xor_shared_resources[] = {
static struct platform_device orion5x_xor_shared = { static struct platform_device orion5x_xor_shared = {
.name = MV_XOR_SHARED_NAME, .name = MV_XOR_SHARED_NAME,
.id = 0, .id = 0,
.dev = {
.platform_data = &orion5x_xor_shared_data,
},
.num_resources = ARRAY_SIZE(orion5x_xor_shared_resources), .num_resources = ARRAY_SIZE(orion5x_xor_shared_resources),
.resource = orion5x_xor_shared_resources, .resource = orion5x_xor_shared_resources,
}; };
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment