From 832912ccae122b067eda75318c70d461fa129b33 Mon Sep 17 00:00:00 2001 From: Jaejoon Yoo Date: Wed, 4 Jul 2018 13:20:47 +0900 Subject: [PATCH] [COMMON] lib: dss: add bcm information Change-Id: Ia3bdb8d606f15873bdcd29f36a642fdbbdff7962 Signed-off-by: Jaejoon Yoo --- drivers/soc/samsung/debug/exynos-helper.c | 5 +++++ include/dt-bindings/soc/samsung/debug-snapshot-table.h | 5 ++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/drivers/soc/samsung/debug/exynos-helper.c b/drivers/soc/samsung/debug/exynos-helper.c index e8a645fa2495..86d37422a7e6 100644 --- a/drivers/soc/samsung/debug/exynos-helper.c +++ b/drivers/soc/samsung/debug/exynos-helper.c @@ -29,6 +29,10 @@ #include #include +#ifdef CONFIG_EXYNOS_BCM_DBG +#include +#endif + #if defined(CONFIG_SEC_SIPC_MODEM_IF) #include #endif @@ -41,6 +45,7 @@ extern void (*arm_pm_restart)(char str, const char *cmd); static void exynos_early_panic(void *val) { + exynos_bcm_dbg_stop(PANIC_HANDLE); } static void exynos_prepare_panic_entry(void *val) diff --git a/include/dt-bindings/soc/samsung/debug-snapshot-table.h b/include/dt-bindings/soc/samsung/debug-snapshot-table.h index 26e65b48bd98..552a0cdb4330 100644 --- a/include/dt-bindings/soc/samsung/debug-snapshot-table.h +++ b/include/dt-bindings/soc/samsung/debug-snapshot-table.h @@ -29,6 +29,7 @@ #define DSS_LOG_S2D_SIZE (0) #define DSS_LOG_CACHEDUMP_SIZE (0) #define DSS_LOG_ETM_SIZE (0) +#define DSS_LOG_BCM_SIZE (4 * SZ_1M) #define DSS_LOG_PSTORE_SIZE (2 * SZ_1M) #define DSS_LOG_KEVENTS_SIZE (8 * SZ_1M) @@ -39,7 +40,8 @@ #define DSS_LOG_S2D_OFFSET (DSS_LOG_SFR_OFFSET + DSS_LOG_SFR_SIZE) #define DSS_LOG_CACHEDUMP_OFFSET (DSS_LOG_S2D_OFFSET + DSS_LOG_S2D_SIZE) #define DSS_LOG_ETM_OFFSET (DSS_LOG_CACHEDUMP_OFFSET + DSS_LOG_CACHEDUMP_SIZE) -#define DSS_LOG_PSTORE_OFFSET (DSS_LOG_ETM_OFFSET + DSS_LOG_ETM_SIZE) +#define DSS_LOG_BCM_OFFSET (DSS_LOG_ETM_OFFSET + DSS_LOG_ETM_SIZE) +#define DSS_LOG_PSTORE_OFFSET (DSS_LOG_BCM_OFFSET + DSS_LOG_BCM_SIZE) #define DSS_LOG_KEVENTS_OFFSET (DSS_LOG_PSTORE_OFFSET + DSS_LOG_PSTORE_SIZE) #define DSS_HEADER_ADDR (DSS_START_ADDR + DSS_HEADER_OFFSET) @@ -49,6 +51,7 @@ #define DSS_LOG_S2D_ADDR (DSS_START_ADDR + DSS_LOG_S2D_OFFSET) #define DSS_LOG_CACHEDUMP_ADDR (DSS_START_ADDR + DSS_LOG_CACHEDUMP_OFFSET) #define DSS_LOG_ETM_ADDR (DSS_START_ADDR + DSS_LOG_ETM_OFFSET) +#define DSS_LOG_BCM_ADDR (DSS_START_ADDR + DSS_LOG_BCM_OFFSET) #define DSS_LOG_PSTORE_ADDR (DSS_START_ADDR + DSS_LOG_PSTORE_OFFSET) #define DSS_LOG_KEVENTS_ADDR (DSS_START_ADDR + DSS_LOG_KEVENTS_OFFSET) -- 2.20.1