summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKonstantin Porotchkin <kostap@marvell.com>2017-12-04 17:19:52 +0200
committerKostya Porotchkin <kostap@marvell.com>2017-12-07 18:15:11 +0200
commit16a0b7a022766b33b75809ac5708e8578a250a5d (patch)
treeece7b48ca235208b255b99d41b66caaa1de23cc8 /include
parent53521ea2e26e988e2987e99cd61964fa1def5aba (diff)
mvebu: move hw-specific defines to platform definition files
Move definition specific to AP HW to a8k_plat_def.h and a8k-_plat_def.h files. This separation allows usage of the same generic IOW/CCU drivers with A8K and A8K-Plus platforms. Change-Id: Ib6201280f897d2ab225346bc396918a3852ecf9f Signed-off-by: Konstantin Porotchkin <kostap@marvell.com> Reviewed-on: http://vgitil04.il.marvell.com:8080/47227 Tested-by: iSoC Platform CI <ykjenk@marvell.com> Reviewed-by: Hanna Hawa <hannah@marvell.com>
Diffstat (limited to 'include')
-rw-r--r--include/drivers/marvell/ccu.h12
-rw-r--r--include/drivers/marvell/io_win.h13
-rw-r--r--include/drivers/marvell/mochi/apn806_setup.h23
3 files changed, 0 insertions, 48 deletions
diff --git a/include/drivers/marvell/ccu.h b/include/drivers/marvell/ccu.h
index 16da9ea4..99e52368 100644
--- a/include/drivers/marvell/ccu.h
+++ b/include/drivers/marvell/ccu.h
@@ -37,18 +37,6 @@
#include <addr_map.h>
-enum ccu_target_ids {
- IO_0_TID = 0x00,
- DRAM_0_TID = 0x03,
- IO_1_TID = 0x0F,
- CFG_REG_TID = 0x10,
- RAR_TID = 0x20,
- SRAM_TID = 0x40,
- DRAM_1_TID = 0xC0,
- CCU_MAX_TID,
- INVALID_TID = 0xFF
-};
-
int init_ccu(int);
void ccu_win_check(struct addr_map_win *win, uint32_t win_num);
void ccu_enable_win(int ap_index, struct addr_map_win *win, uint32_t win_id);
diff --git a/include/drivers/marvell/io_win.h b/include/drivers/marvell/io_win.h
index b4d1b4b3..ba831473 100644
--- a/include/drivers/marvell/io_win.h
+++ b/include/drivers/marvell/io_win.h
@@ -37,19 +37,6 @@
#include <addr_map.h>
-enum io_win_target_ids {
- MCI_0_TID = 0x0,
- MCI_1_TID = 0x1,
- MCI_2_TID = 0x2,
- PIDI_TID = 0x3,
- SPI_TID = 0x4,
- STM_TID = 0x5,
- BOOTROM_TID = 0x6,
- IO_WIN_MAX_TID
-};
-
-#define IO_WIN_MAX_NUM 7
-
int init_io_win(int);
#endif /* _IO_WIN_H_ */
diff --git a/include/drivers/marvell/mochi/apn806_setup.h b/include/drivers/marvell/mochi/apn806_setup.h
index 2ca9bffc..ee8080d1 100644
--- a/include/drivers/marvell/mochi/apn806_setup.h
+++ b/include/drivers/marvell/mochi/apn806_setup.h
@@ -36,29 +36,6 @@
#include <mmio.h>
-#define APN806_REV_ID_A0 0
-#define APN806_REV_ID_A1 1
-
-/* APN806 revision ID */
-#define MVEBU_CSS_GWD_CTRL_IIDR2_REG (MVEBU_REGS_BASE + 0x610FCC)
-#define GWD_IIDR2_REV_ID_OFFSET 12
-#define GWD_IIDR2_REV_ID_MASK 0xF
-
-#define AP806_SAR0_REG_BASE (MVEBU_REGS_BASE + 0x6F82D4)
-#define AP806_SAR0_BOOT_SOURCE_OFFSET 8
-#define AP806_SAR0_BOOT_SOURCE_MASK 0x7
-
-enum ap806_sar_target_dev {
- SAR_PIDI_MCIX2 = 0x0,
- SAR_MCIX4 = 0x1,
- SAR_SPI = 0x2,
- SAR_SD = 0x3,
- SAR_PIDI_MCIX2_BD = 0x4, /* BootRom disabled */
- SAR_MCIX4_DB = 0x5, /* BootRom disabled */
- SAR_SPI_DB = 0x6, /* BootRom disabled */
- SAR_EMMC = 0x7,
-};
-
void apn806_init(void);
uint32_t apn806_sar_get_bootsrc(void);