Merge "drivers: soc: qcom: Check if readq_relaxed macro is defined"

This commit is contained in:
qctecmdr 2020-12-03 06:20:06 -08:00 • committed by Gerrit - the friendly Code Review server
commit bdd0d3a7cc
2 changed files with 4 additions and 0 deletions

View file

@ -26,6 +26,7 @@
(container_of(attr, struct ddr_stats_kobj_attr, ka)->pd)
#ifdef CONFIG_ARM
#ifndef readq_relaxed
#define readq_relaxed(a) ({ \
u64 val = readl_relaxed((a) + 4); \
val <<= 32; \
@ -33,6 +34,7 @@
val; \
})
#endif
#endif
struct ddr_stats_platform_data {
phys_addr_t phys_addr_base;

View file

@ -17,6 +17,7 @@
#include <clocksource/arm_arch_timer.h>
#ifdef CONFIG_ARM
#ifndef readq_relaxed
#define readq_relaxed(a) ({ \
u64 val = readl_relaxed((a) + 4); \
val <<= 32; \
@ -24,6 +25,7 @@
val; \
})
#endif
#endif
struct stats_config {
u32 offset_addr;