1 /* 2 * Copyright (C) 2017-2024 Alibaba Group Holding Limited 3 * 4 * SPDX-License-Identifier: Apache-2.0 5 * 6 * Licensed under the Apache License, Version 2.0 (the "License"); 7 * you may not use this file except in compliance with the License. 8 * You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software 13 * distributed under the License is distributed on an "AS IS" BASIS, 14 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 15 * See the License for the specific language governing permissions and 16 * limitations under the License. 17 */ 18 19 /****************************************************************************** 20 * @file drv/clk.h 21 * @brief Header File for CLK Driver. 22 * @version V1.0 23 * @date 18. Mar 2020 24 ******************************************************************************/ 25 26 #ifndef _DRV_CLK_H_ 27 #define _DRV_CLK_H_ 28 29 #include <stdint.h> 30 #include <drv/common.h> 31 32 #ifdef __cplusplus 33 extern "C" { 34 #endif 35 36 typedef struct { 37 uint32_t module; 38 uint16_t dev_tag; 39 uint8_t idx; 40 } csi_clkmap_t; 41 42 void csi_clk_enable(csi_dev_t *dev); 43 void csi_clk_disable(csi_dev_t *dev); 44 45 #ifdef __cplusplus 46 } 47 #endif 48 49 #endif /* _DRV_CLK_H_ */ 50 51