summaryrefslogtreecommitdiff
path: root/drivers
diff options
context:
space:
mode:
authorHanna Hawa <hannah@marvell.com>2017-08-25 12:14:07 +0300
committerKostya Porotchkin <kostap@marvell.com>2017-08-27 13:56:57 +0300
commit923374b14f9b4fe5b4fff3b53dcc0cd1a2e1f804 (patch)
tree8c6967e5c86c85a44c750228d37d3b5c467eef61 /drivers
parent98ac98ef98b0e637a9d79aff3655d5e682e2c334 (diff)
mvebu: io-win: add parameter for ccu function to set AP number
Part of AP810 preparation and driver changes, change IO_WIN driver to get the number of AP it should initialize, to get the AP base address and window map. No functional changes introduced by this patch. Change-Id: I20522ebcdd9bcea4691a4d65cb839bcb5d46f4e6 Signed-off-by: Hanna Hawa <hannah@marvell.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/43397 Reviewed-by: Kostya Porotchkin <kostap@marvell.com> Tested-by: iSoC Platform CI <ykjenk@marvell.com>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/marvell/io_win.c6
-rw-r--r--drivers/marvell/mochi/apn806_setup.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/drivers/marvell/io_win.c b/drivers/marvell/io_win.c
index 767e885c..c01bc129 100644
--- a/drivers/marvell/io_win.c
+++ b/drivers/marvell/io_win.c
@@ -147,7 +147,7 @@ static void dump_io_win(void)
}
#endif
-int init_io_win(void)
+int init_io_win(int ap_index)
{
struct io_win *win;
uint32_t win_id, win_reg;
@@ -156,10 +156,10 @@ int init_io_win(void)
INFO("Initializing IO WIN Address decoding\n");
/* Get the base address of the address decoding MBUS */
- io_win_base = marvell_get_io_win_reg_offs();
+ io_win_base = marvell_get_io_win_reg_offs(ap_index);
/* Get the array of the windows and its size */
- marvell_get_io_win_memory_map(&win, &win_count);
+ marvell_get_io_win_memory_map(ap_index, &win, &win_count);
if (win_count <= 0)
INFO("no windows configurations found\n");
diff --git a/drivers/marvell/mochi/apn806_setup.c b/drivers/marvell/mochi/apn806_setup.c
index b85d5144..f1da7de4 100644
--- a/drivers/marvell/mochi/apn806_setup.c
+++ b/drivers/marvell/mochi/apn806_setup.c
@@ -214,7 +214,7 @@ void apn806_init(void)
mci_remap_indirect_access_base();
/* configure IO_WIN windows */
- init_io_win();
+ init_io_win(0);
/* configure CCU windows */
init_ccu(0);