From add38e0c5720ddb67cce885deca5b6842f251752 Mon Sep 17 00:00:00 2001 From: Jaehyoung Choi Date: Thu, 3 May 2018 19:18:53 +0900 Subject: [PATCH] [COMMON] dt-binding: samsung: Add exynos9610 binding header Change-Id: I4e929e5f320bd5280cc0d202046ac28373b77864 Signed-off-by: Jaehyoung Choi --- .../dt-bindings/soc/samsung/exynos-ss-table.h | 61 +++++++++++++++++++ include/dt-bindings/soc/samsung/exynos8895.h | 28 +++++++++ include/dt-bindings/soc/samsung/exynos9610.h | 29 +++++++++ include/dt-bindings/soc/samsung/exynos9810.h | 32 ++++++++++ 4 files changed, 150 insertions(+) create mode 100644 include/dt-bindings/soc/samsung/exynos-ss-table.h create mode 100644 include/dt-bindings/soc/samsung/exynos8895.h create mode 100644 include/dt-bindings/soc/samsung/exynos9610.h create mode 100644 include/dt-bindings/soc/samsung/exynos9810.h diff --git a/include/dt-bindings/soc/samsung/exynos-ss-table.h b/include/dt-bindings/soc/samsung/exynos-ss-table.h new file mode 100644 index 000000000000..caf39d16fc37 --- /dev/null +++ b/include/dt-bindings/soc/samsung/exynos-ss-table.h @@ -0,0 +1,61 @@ +/* + * Exynos-SnapShot for Samsung's SoC's. + * + * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * http://www.samsung.com + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; either version 2 of the License, or + * (at your option) any later version. + */ + +#ifndef EXYNOS_SNAPSHOT_TABLE_H +#define EXYNOS_SNAPSHOT_TABLE_H + +/************************************************************************ + * This definition is default settings. + * We must use bootloader settings first. +*************************************************************************/ + +#define SZ_64K 0x00010000 +#define SZ_1M 0x00100000 + +#define ESS_START_ADDR 0xF9000000 +#define ESS_HEADER_SIZE SZ_64K +#define ESS_LOG_KERNEL_SIZE (2 * SZ_1M) +#define ESS_LOG_PLATFORM_SIZE (4 * SZ_1M) +#define ESS_LOG_SFR_SIZE (2 * SZ_1M) +#define ESS_LOG_S2D_SIZE (0) +#define ESS_LOG_CACHEDUMP_SIZE (0) +#define ESS_LOG_ETM_SIZE (0) +#define ESS_LOG_PSTORE_SIZE (2 * SZ_1M) +#define ESS_LOG_KEVENTS_SIZE (8 * SZ_1M) + +#define ESS_HEADER_OFFSET 0 +#define ESS_LOG_KERNEL_OFFSET (ESS_HEADER_OFFSET + ESS_HEADER_SIZE) +#define ESS_LOG_PLATFORM_OFFSET (ESS_LOG_KERNEL_OFFSET + ESS_LOG_KERNEL_SIZE) +#define ESS_LOG_SFR_OFFSET (ESS_LOG_PLATFORM_OFFSET + ESS_LOG_PLATFORM_SIZE) +#define ESS_LOG_S2D_OFFSET (ESS_LOG_SFR_OFFSET + ESS_LOG_SFR_SIZE) +#define ESS_LOG_CACHEDUMP_OFFSET (ESS_LOG_S2D_OFFSET + ESS_LOG_S2D_SIZE) +#define ESS_LOG_ETM_OFFSET (ESS_LOG_CACHEDUMP_OFFSET + ESS_LOG_CACHEDUMP_SIZE) +#define ESS_LOG_PSTORE_OFFSET (ESS_LOG_ETM_OFFSET + ESS_LOG_ETM_SIZE) +#define ESS_LOG_KEVENTS_OFFSET (ESS_LOG_PSTORE_OFFSET + ESS_LOG_PSTORE_SIZE) + +#define ESS_HEADER_ADDR (ESS_START_ADDR + ESS_HEADER_OFFSET) +#define ESS_LOG_KERNEL_ADDR (ESS_START_ADDR + ESS_LOG_KERNEL_OFFSET) +#define ESS_LOG_PLATFORM_ADDR (ESS_START_ADDR + ESS_LOG_PLATFORM_OFFSET) +#define ESS_LOG_SFR_ADDR (ESS_START_ADDR + ESS_LOG_SFR_OFFSET) +#define ESS_LOG_S2D_ADDR (ESS_START_ADDR + ESS_LOG_S2D_OFFSET) +#define ESS_LOG_CACHEDUMP_ADDR (ESS_START_ADDR + ESS_LOG_CACHEDUMP_OFFSET) +#define ESS_LOG_ETM_ADDR (ESS_START_ADDR + ESS_LOG_ETM_OFFSET) +#define ESS_LOG_PSTORE_ADDR (ESS_START_ADDR + ESS_LOG_PSTORE_OFFSET) +#define ESS_LOG_KEVENTS_ADDR (ESS_START_ADDR + ESS_LOG_KEVENTS_OFFSET) + +/* Header size change 1MB for MB align. */ +#define ESS_TOTAL_SIZE (ESS_LOG_KERNEL_SIZE + ESS_LOG_PLATFORM_SIZE \ + + ESS_LOG_SFR_SIZE + ESS_LOG_S2D_SIZE \ + + ESS_LOG_CACHEDUMP_SIZE + ESS_LOG_ETM_SIZE \ + + ESS_LOG_PSTORE_SIZE + ESS_LOG_KEVENTS_SIZE \ + + SZ_1M) +#endif diff --git a/include/dt-bindings/soc/samsung/exynos8895.h b/include/dt-bindings/soc/samsung/exynos8895.h new file mode 100644 index 000000000000..8765e5319d9d --- /dev/null +++ b/include/dt-bindings/soc/samsung/exynos8895.h @@ -0,0 +1,28 @@ +/* + * Copyright (c) 2016 Samsung Electronics Co., Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Device Tree binding constants for Exynos8895 +*/ + +#ifndef _DT_BINDINGS_EXYNOS_8895_H +#define _DT_BINDINGS_EXYNOS_8895_H + +/* NUMBER FOR DVFS MANAGER */ +#define DM_CPU_CL0 0 +#define DM_CPU_CL1 1 +#define DM_MIF 2 +#define DM_INT 3 +#define DM_INTCAM 4 +#define DM_DISP 5 +#define DM_CAM 6 +#define DM_GPU 7 + +/* CONSTRAINT TYPE */ +#define CONSTRAINT_MIN 0 +#define CONSTRAINT_MAX 1 + +#endif /* _DT_BINDINGS_EXYNOS_8895_H */ diff --git a/include/dt-bindings/soc/samsung/exynos9610.h b/include/dt-bindings/soc/samsung/exynos9610.h new file mode 100644 index 000000000000..944019ee4cfe --- /dev/null +++ b/include/dt-bindings/soc/samsung/exynos9610.h @@ -0,0 +1,29 @@ +/* + * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Device Tree binding constants for Exynos9810 +*/ + +#ifndef _DT_BINDINGS_EXYNOS_9610_H +#define _DT_BINDINGS_EXYNOS_9610_H + +/* NUMBER FOR DVFS MANAGER */ +#define DM_CPU_CL0 0 +#define DM_CPU_CL1 1 +#define DM_MIF 2 +#define DM_INT 3 +#define DM_INTCAM 4 +#define DM_CAM 6 +#define DM_DISP 7 +#define DM_AUD 8 +#define DM_GPU 11 + +/* CONSTRAINT TYPE */ +#define CONSTRAINT_MIN 0 +#define CONSTRAINT_MAX 1 + +#endif /* _DT_BINDINGS_EXYNOS_9610_H */ diff --git a/include/dt-bindings/soc/samsung/exynos9810.h b/include/dt-bindings/soc/samsung/exynos9810.h new file mode 100644 index 000000000000..04d9c8c1cd00 --- /dev/null +++ b/include/dt-bindings/soc/samsung/exynos9810.h @@ -0,0 +1,32 @@ +/* + * Copyright (c) 2017 Samsung Electronics Co., Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + * + * Device Tree binding constants for Exynos9810 +*/ + +#ifndef _DT_BINDINGS_EXYNOS_9810_H +#define _DT_BINDINGS_EXYNOS_9810_H + +/* NUMBER FOR DVFS MANAGER */ +#define DM_CPU_CL0 0 +#define DM_CPU_CL1 1 +#define DM_MIF 2 +#define DM_INT 3 +#define DM_INTCAM 4 +#define DM_FSYS0 5 +#define DM_CAM 6 +#define DM_DISP 7 +#define DM_AUD 8 +#define DM_IVA 9 +#define DM_SCORE 10 +#define DM_GPU 11 + +/* CONSTRAINT TYPE */ +#define CONSTRAINT_MIN 0 +#define CONSTRAINT_MAX 1 + +#endif /* _DT_BINDINGS_EXYNOS_9810_H */ -- 2.20.1