13 #include <linux/kernel.h>
24 #define ARMADA_XP_TARGET_DEV_BUS 1
25 #define ARMADA_XP_ATTR_DEV_BOOTROM 0x1D
26 #define ARMADA_XP_TARGET_ETH1 3
27 #define ARMADA_XP_TARGET_PCIE_0_2 4
28 #define ARMADA_XP_TARGET_ETH0 7
29 #define ARMADA_XP_TARGET_PCIE_1_3 8
31 #define ARMADA_370_TARGET_DEV_BUS 1
32 #define ARMADA_370_ATTR_DEV_BOOTROM 0x1D
33 #define ARMADA_370_TARGET_PCIE_0 4
34 #define ARMADA_370_TARGET_PCIE_1 8
36 #define ARMADA_WINDOW_8_PLUS_OFFSET 0x90
37 #define ARMADA_SDRAM_ADDR_DECODING_OFFSET 0x180
40 armada_xp_addr_map_info[] = {
47 { -1, 0, 0, 0, 0, 0 },
51 armada_370_addr_map_info[] = {
53 { -1, 0, 0, 0, 0, 0 },
56 static struct of_device_id of_addr_decoding_controller_table[] = {
57 { .compatible =
"marvell,armada-addr-decoding-controller" },
89 .win_cfg_base = armada_cfg_base,
92 static int __init armada_setup_cpu_mbus(
void)
95 void __iomem *mbus_unit_addr_decoding_base;
96 void __iomem *sdram_addr_decoding_base;
102 mbus_unit_addr_decoding_base =
of_iomap(np, 0);
103 BUG_ON(!mbus_unit_addr_decoding_base);
105 sdram_addr_decoding_base =
106 mbus_unit_addr_decoding_base +
109 addr_map_cfg.bridge_virt_base = mbus_unit_addr_decoding_base;
119 pr_err(
"Unsupported SoC\n");
127 sdram_addr_decoding_base);