From 6a1f375e9fb1366ef70c8ea7d24ff56a26bd70fb Mon Sep 17 00:00:00 2001 From: Phani Kumar Uppalapati Date: Thu, 21 Apr 2016 22:34:01 -0700 Subject: [PATCH] dt-bindings: clock: Add audio external clock of_idx entries Add clock of_idx entries for audio external clock registered to the msm clock framework. CRs-fixed: 1006637 Change-Id: Ia300cafb7246c08ba35fb24c2dc79489edb280a3 Signed-off-by: Phani Kumar Uppalapati --- include/dt-bindings/clock/audio-ext-clk.h | 21 +++++++++++++++++++ include/dt-bindings/clock/msm-clocks-8996.h | 8 +++---- include/dt-bindings/clock/msm-clocks-cobalt.h | 2 ++ 3 files changed, 26 insertions(+), 5 deletions(-) create mode 100644 include/dt-bindings/clock/audio-ext-clk.h diff --git a/include/dt-bindings/clock/audio-ext-clk.h b/include/dt-bindings/clock/audio-ext-clk.h new file mode 100644 index 000000000000..4945d6956293 --- /dev/null +++ b/include/dt-bindings/clock/audio-ext-clk.h @@ -0,0 +1,21 @@ +/* Copyright (c) 2016, The Linux Foundation. All rights reserved. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 and + * only version 2 as published by the Free Software Foundation. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + */ + +#ifndef __AUDIO_EXT_CLK_H +#define __AUDIO_EXT_CLK_H + +/* Audio External Clocks */ +#define clk_audio_ap_clk 0x9b5727cb +#define clk_audio_pmi_clk 0xcbfe416d +#define clk_audio_ap_clk2 0x454d1e91 +#define clk_audio_lpass_mclk 0xf0f2a284 +#endif diff --git a/include/dt-bindings/clock/msm-clocks-8996.h b/include/dt-bindings/clock/msm-clocks-8996.h index 82ca331c7057..2f9cfd0e008c 100644 --- a/include/dt-bindings/clock/msm-clocks-8996.h +++ b/include/dt-bindings/clock/msm-clocks-8996.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2014-2015, The Linux Foundation. All rights reserved. +/* Copyright (c) 2014-2016, The Linux Foundation. All rights reserved. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License version 2 and @@ -13,6 +13,8 @@ #ifndef __MSM_CLOCKS_8996_H #define __MSM_CLOCKS_8996_H +#include "audio-ext-clk.h" + /* clock_gcc controlled clocks */ #define clk_cxo_clk_src 0x79e95308 #define clk_pnoc_clk 0x4325d220 @@ -538,8 +540,4 @@ #define clk_sys_apcsaux_clk 0x0b0dd513 #define clk_cpu_debug_mux 0xc7acaa31 -/* Audio External Clocks */ -#define clk_audio_ap_clk 0x312ac429 -#define clk_audio_pmi_clk 0xb7ba2274 -#define clk_audio_ap_clk2 0xf0fbaf5b #endif diff --git a/include/dt-bindings/clock/msm-clocks-cobalt.h b/include/dt-bindings/clock/msm-clocks-cobalt.h index 574ec9c96b82..a63822e56429 100644 --- a/include/dt-bindings/clock/msm-clocks-cobalt.h +++ b/include/dt-bindings/clock/msm-clocks-cobalt.h @@ -13,6 +13,8 @@ #ifndef __MSM_CLOCKS_COBALT_H #define __MSM_CLOCKS_COBALT_H +#include "audio-ext-clk.h" + /* clock_rpm controlled clocks */ #define clk_ce1_clk 0x42229c55 #define clk_ce1_a_clk 0x44a833fe