Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99e23c9d authored by Yan He's avatar Yan He
Browse files

msm: sps: extend sps macros for 64-bit



SPS driver has some existing macros to process HW descriptor format
for LPAE. Extend the macros for 64-bit address as well.

Change-Id: I872e49d4b65b70b4efc1ae4447c34cc8f24e18c2
Signed-off-by: default avatarYan He <yanhe@codeaurora.org>
parent 6beb18e8
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -27,7 +27,7 @@

#include "sps_map.h"

#ifdef CONFIG_ARM_LPAE
#if defined(CONFIG_PHYS_ADDR_T_64BIT) || defined(CONFIG_ARM_LPAE)
#define SPS_LPAE (true)
#else
#define SPS_LPAE (false)
+1 −1
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@

#include <linux/types.h>	/* u32 */

#ifdef CONFIG_ARM_LPAE
#if defined(CONFIG_PHYS_ADDR_T_64BIT) || defined(CONFIG_ARM_LPAE)

/* Returns upper 4bits of 36bits physical address */
#define SPS_GET_UPPER_ADDR(addr) ((addr & 0xF00000000ULL) >> 32)