if (outer_cache.set_debug)
l2c_set_debug(l2x0_base, val);
}
-
-static void pl310_set_debug(unsigned long val)
-{
- writel_relaxed(val, l2x0_base + L2X0_DEBUG_CTRL);
-}
#else
/* Optimised out for non-errata case */
static inline void debug_writel(unsigned long val)
{
}
-
-#define pl310_set_debug NULL
#endif
#ifdef CONFIG_PL310_ERRATA_588369
* Affects: store buffer
* store buffer is not automatically drained.
*/
+static void l2c310_set_debug(unsigned long val)
+{
+ writel_relaxed(val, l2x0_base + L2X0_DEBUG_CTRL);
+}
+
static void __init l2c310_save(void __iomem *base)
{
unsigned revision;
unsigned n = 0;
if (revision <= L310_CACHE_ID_RTL_R3P0)
- fns->set_debug = pl310_set_debug;
+ fns->set_debug = l2c310_set_debug;
if (IS_ENABLED(CONFIG_PL310_ERRATA_753970) &&
revision == L310_CACHE_ID_RTL_R3P0) {