| .. | .. |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0-only */ |
|---|
| 1 | 2 | /* Copyright (c) 2012, 2017-2018, The Linux Foundation. All rights reserved. |
|---|
| 2 | | - * |
|---|
| 3 | | - * This program is free software; you can redistribute it and/or modify |
|---|
| 4 | | - * it under the terms of the GNU General Public License version 2 and |
|---|
| 5 | | - * only version 2 as published by the Free Software Foundation. |
|---|
| 6 | | - * |
|---|
| 7 | | - * This program is distributed in the hope that it will be useful, |
|---|
| 8 | | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 9 | | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 10 | | - * GNU General Public License for more details. |
|---|
| 11 | 3 | */ |
|---|
| 12 | 4 | |
|---|
| 13 | 5 | #ifndef __DPU_IO_UTIL_H__ |
|---|
| 14 | 6 | #define __DPU_IO_UTIL_H__ |
|---|
| 15 | 7 | |
|---|
| 16 | | -#include <linux/gpio.h> |
|---|
| 17 | 8 | #include <linux/platform_device.h> |
|---|
| 18 | 9 | #include <linux/types.h> |
|---|
| 19 | 10 | |
|---|
| .. | .. |
|---|
| 21 | 12 | #define DEV_INFO(fmt, args...) pr_info(fmt, ##args) |
|---|
| 22 | 13 | #define DEV_WARN(fmt, args...) pr_warn(fmt, ##args) |
|---|
| 23 | 14 | #define DEV_ERR(fmt, args...) pr_err(fmt, ##args) |
|---|
| 24 | | - |
|---|
| 25 | | -struct dss_gpio { |
|---|
| 26 | | - unsigned int gpio; |
|---|
| 27 | | - unsigned int value; |
|---|
| 28 | | - char gpio_name[32]; |
|---|
| 29 | | -}; |
|---|
| 30 | 15 | |
|---|
| 31 | 16 | enum dss_clk_type { |
|---|
| 32 | 17 | DSS_CLK_AHB, /* no set rate. rate controlled through rpm */ |
|---|
| .. | .. |
|---|
| 42 | 27 | }; |
|---|
| 43 | 28 | |
|---|
| 44 | 29 | struct dss_module_power { |
|---|
| 45 | | - unsigned int num_gpio; |
|---|
| 46 | | - struct dss_gpio *gpio_config; |
|---|
| 47 | 30 | unsigned int num_clk; |
|---|
| 48 | 31 | struct dss_clk *clk_config; |
|---|
| 49 | 32 | }; |
|---|