diff options
author | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-07-26 09:17:53 -0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2013-08-06 10:10:57 -0400 |
commit | 59cb2fc6f9a4a64ee0df99795967827ecc2c8630 (patch) | |
tree | 621fc38cdb4320cfd6f1434430f52a8f3941743c /drivers | |
parent | 6275afef74d8b737527f517c30e20931a7aed805 (diff) |
bus: mvebu-mbus: Factorize Armada 370/XP data structures
These structures were only different in the mapping tables.
Now that those tables have been removed, it doesn't make any sense
to keep different structures.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Tested-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/bus/mvebu-mbus.c | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index 26af145be6d1..19ab6ff53d59 100644 --- a/drivers/bus/mvebu-mbus.c +++ b/drivers/bus/mvebu-mbus.c | |||
@@ -536,15 +536,7 @@ mvebu_mbus_dove_setup_cpu_target(struct mvebu_mbus_state *mbus) | |||
536 | mvebu_mbus_dram_info.num_cs = cs; | 536 | mvebu_mbus_dram_info.num_cs = cs; |
537 | } | 537 | } |
538 | 538 | ||
539 | static const struct mvebu_mbus_soc_data armada_370_mbus_data = { | 539 | static const struct mvebu_mbus_soc_data armada_370_xp_mbus_data = { |
540 | .num_wins = 20, | ||
541 | .num_remappable_wins = 8, | ||
542 | .win_cfg_offset = armada_370_xp_mbus_win_offset, | ||
543 | .setup_cpu_target = mvebu_mbus_default_setup_cpu_target, | ||
544 | .show_cpu_target = mvebu_sdram_debug_show_orion, | ||
545 | }; | ||
546 | |||
547 | static const struct mvebu_mbus_soc_data armada_xp_mbus_data = { | ||
548 | .num_wins = 20, | 540 | .num_wins = 20, |
549 | .num_remappable_wins = 8, | 541 | .num_remappable_wins = 8, |
550 | .win_cfg_offset = armada_370_xp_mbus_win_offset, | 542 | .win_cfg_offset = armada_370_xp_mbus_win_offset, |
@@ -604,9 +596,9 @@ static const struct mvebu_mbus_soc_data mv78xx0_mbus_data = { | |||
604 | */ | 596 | */ |
605 | static const struct of_device_id of_mvebu_mbus_ids[] = { | 597 | static const struct of_device_id of_mvebu_mbus_ids[] = { |
606 | { .compatible = "marvell,armada370-mbus", | 598 | { .compatible = "marvell,armada370-mbus", |
607 | .data = &armada_370_mbus_data, }, | 599 | .data = &armada_370_xp_mbus_data, }, |
608 | { .compatible = "marvell,armadaxp-mbus", | 600 | { .compatible = "marvell,armadaxp-mbus", |
609 | .data = &armada_xp_mbus_data, }, | 601 | .data = &armada_370_xp_mbus_data, }, |
610 | { .compatible = "marvell,kirkwood-mbus", | 602 | { .compatible = "marvell,kirkwood-mbus", |
611 | .data = &kirkwood_mbus_data, }, | 603 | .data = &kirkwood_mbus_data, }, |
612 | { .compatible = "marvell,dove-mbus", | 604 | { .compatible = "marvell,dove-mbus", |