diff options
author | Terry Zhou <bjzhou@marvell.com> | 2018-03-19 17:12:03 +0200 |
---|---|---|
committer | Kostya Porotchkin <kostap@marvell.com> | 2018-03-19 18:54:40 +0200 |
commit | e28d83b5561b395e92e1f79e101f963cfdf654ae (patch) | |
tree | 44f272afaa0535ab6ef8ecb2e50609b42ccd42ae /include/drivers/marvell | |
parent | a69da86a2c72c79987e443debdbbd7b4d38457ba (diff) |
plat: a8k: update all AP related function to be more generic
This patch is the preparation for the coming A3900 which using
APN807 instead of APN806, we put it under A8K family since
most of the designs are the same.
Replace all the function/headfile names with apn806_XX to ap_XX
Add ble init function before doing dram initialization since
we use a new DDR PHY in APN807
Change-Id: Ia3f79f5236280df6ed22f7dee623c7f6a8a6aa46
Signed-off-by: Terry Zhou <bjzhou@marvell.com>
Reviewed-on: http://vgitil04.il.marvell.com:8080/52169
Reviewed-by: Hanna Hawa <hannah@marvell.com>
Tested-by: iSoC Platform CI <ykjenk@marvell.com>
Reviewed-by: Kostya Porotchkin <kostap@marvell.com>
Diffstat (limited to 'include/drivers/marvell')
-rw-r--r-- | include/drivers/marvell/mochi/ap_setup.h (renamed from include/drivers/marvell/mochi/apn806_setup.h) | 24 |
1 files changed, 6 insertions, 18 deletions
diff --git a/include/drivers/marvell/mochi/apn806_setup.h b/include/drivers/marvell/mochi/ap_setup.h index ed0b267a..256edd9d 100644 --- a/include/drivers/marvell/mochi/apn806_setup.h +++ b/include/drivers/marvell/mochi/ap_setup.h @@ -31,22 +31,10 @@ * *************************************************************************** */ -#ifndef __APN806_SETUP_H__ -#define __APN806_SETUP_H__ +#ifndef __AP_SETUP_H__ +#define __AP_SETUP_H__ -#include <mmio.h> - -void apn806_init(void); - -static inline int apn806_rev_id_get(void) -{ - /* Returns: - * - 0 (APN806_REV_ID_A0) for A0 - * - 1 (APN806_REV_ID_A1) for A1 - */ - return (mmio_read_32(MVEBU_CSS_GWD_CTRL_IIDR2_REG) >> - GWD_IIDR2_REV_ID_OFFSET) & - GWD_IIDR2_REV_ID_MASK; -} - -#endif /* __APN806_SETUP_H__ */ +void ap_init(void); +void ap_ble_init(void); +int ap_rev_id_get(void); +#endif /* __AP_SETUP_H__ */ |