Skip to content

Commit

Permalink
plat/arm: mhu: make mhu driver generic
Browse files Browse the repository at this point in the history
MHU doorbell driver requires arm platform specific
macro "PLAT_CSS_MHU_BASE".
Rename it to "PLAT_MHUV2_BASE", so that platforms other than arm
can use generic MHU doorbell driver.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
  • Loading branch information
Masahisa Kojima committed Mar 7, 2019
1 parent 43770cd commit 287aab0
Show file tree
Hide file tree
Showing 8 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/drivers/arm/css/css_mhu_doorbell.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <lib/mmio.h>

/* MHUv2 Base Address */
#define MHUV2_BASE_ADDR PLAT_CSS_MHU_BASE
#define MHUV2_BASE_ADDR PLAT_MHUV2_BASE

/* MHUv2 Control Registers Offsets */
#define MHU_V2_MSG_NO_CAP_OFFSET 0xF80
Expand Down
1 change: 1 addition & 0 deletions plat/arm/board/juno/include/platform_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@

/* MHU related constants */
#define PLAT_CSS_MHU_BASE UL(0x2b1f0000)
#define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE

/*
* Base address of the first memory region used for communication between AP
Expand Down
1 change: 1 addition & 0 deletions plat/arm/board/n1sdp/include/platform_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@

#define PLAT_ARM_NSTIMER_FRAME_ID 0
#define PLAT_CSS_MHU_BASE 0x45000000
#define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE
#define PLAT_MAX_PWR_LVL 1

#define PLAT_ARM_G1S_IRQS ARM_G1S_IRQS, \
Expand Down
1 change: 1 addition & 0 deletions plat/arm/board/rde1edge/include/platform_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define CSS_SGI_MAX_PE_PER_CPU 2

#define PLAT_CSS_MHU_BASE UL(0x45400000)
#define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE

/* Base address of DMC-620 instances */
#define RDE1EDGE_DMC620_BASE0 UL(0x4e000000)
Expand Down
1 change: 1 addition & 0 deletions plat/arm/board/rdn1edge/include/platform_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define CSS_SGI_MAX_PE_PER_CPU 1

#define PLAT_CSS_MHU_BASE UL(0x45400000)
#define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE

/* Base address of DMC-620 instances */
#define RDN1EDGE_DMC620_BASE0 UL(0x4e000000)
Expand Down
1 change: 1 addition & 0 deletions plat/arm/board/sgi575/include/platform_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
#define CSS_SGI_MAX_PE_PER_CPU 1

#define PLAT_CSS_MHU_BASE UL(0x45000000)
#define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE

/* Base address of DMC-620 instances */
#define SGI575_DMC620_BASE0 UL(0x4e000000)
Expand Down
1 change: 1 addition & 0 deletions plat/arm/css/sgm/include/sgm_base_platform_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@

/* MHU related constants */
#define PLAT_CSS_MHU_BASE 0x2b1f0000
#define PLAT_MHUV2_BASE PLAT_CSS_MHU_BASE

#define PLAT_ARM_TRUSTED_ROM_BASE 0x00000000
#define PLAT_ARM_TRUSTED_ROM_SIZE 0x00080000
Expand Down
2 changes: 1 addition & 1 deletion plat/socionext/synquacer/include/platform_def.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@
#define DRAMINFO_BASE 0x2E00FFC0

#define PLAT_SQ_MHU_BASE 0x45000000
#define PLAT_CSS_MHU_BASE PLAT_SQ_MHU_BASE
#define PLAT_MHUV2_BASE 0xFFFFFFFF /* MHUV2 is not supported */

#define PLAT_SQ_SCP_COM_SHARED_MEM_BASE 0x45400000
#define SCPI_CMD_GET_DRAMINFO 0x1
Expand Down

0 comments on commit 287aab0

Please sign in to comment.