1 /* 2 * drivers/amlogic/media/common/arch/clk/clk_priv.h 3 * 4 * Copyright (C) 2016 Amlogic, Inc. All rights reserved. 5 * 6 * This program is free software; you can redistribute it and/or modify 7 * it under the terms of the GNU General Public License as published by 8 * the Free Software Foundation; either version 2 of the License, or 9 * (at your option) any later version. 10 * 11 * This program is distributed in the hope that it will be useful, but WITHOUT 12 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 13 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for 14 * more details. 15 * 16 */ 17 18 #ifndef AMPORTS_CLK_PRIV_HEADER 19 #define AMPORTS_CLK_PRIV_HEADER 20 21 struct clk_set { 22 u32 wh_X_fps; /* [x*y*fps */ 23 u32 clk_Mhz; /*min MHZ */ 24 }; 25 #define MAX_CLK_SET 6 26 struct clk_set_setting { 27 struct clk_set set[MAX_CLK_SET]; 28 }; 29 30 struct chip_vdec_clk_s { 31 int (*clock_get)(enum vdec_type_e core); 32 int (*clock_init)(void); 33 int (*clock_set)(int clk); 34 void (*clock_on)(void); 35 void (*clock_off)(void); 36 void (*clock_prepare_switch)(void); 37 }; 38 #endif 39