huang lin | 82ba4d0 | 2014-08-16 10:49:32 +0800 | [diff] [blame] | 1 | /* |
| 2 | * This file is part of the coreboot project. |
| 3 | * |
| 4 | * Copyright 2014 Rockchip Inc. |
| 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; version 2 of the License. |
| 9 | * |
| 10 | * This program is distributed in the hope that it will be useful, |
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 13 | * GNU General Public License for more details. |
| 14 | * |
| 15 | * You should have received a copy of the GNU General Public License |
| 16 | * along with this program; if not, write to the Free Software |
Patrick Georgi | b890a12 | 2015-03-26 15:17:45 +0100 | [diff] [blame] | 17 | * Foundation, Inc. |
huang lin | 82ba4d0 | 2014-08-16 10:49:32 +0800 | [diff] [blame] | 18 | */ |
| 19 | |
| 20 | #ifndef __SOC_ROCKCHIP_RK3288_CHIP_H__ |
| 21 | #define __SOC_ROCKCHIP_RK3288_CHIP_H__ |
| 22 | |
huang lin | 40f558e | 2014-09-19 14:51:52 +0800 | [diff] [blame] | 23 | #include <soc/gpio.h> |
David Hendricks | af42f06 | 2015-06-17 13:47:28 -0700 | [diff] [blame^] | 24 | #include <soc/vop.h> /* for vop_modes enum used in devicetree.cb */ |
huang lin | 40f558e | 2014-09-19 14:51:52 +0800 | [diff] [blame] | 25 | |
huang lin | 82ba4d0 | 2014-08-16 10:49:32 +0800 | [diff] [blame] | 26 | struct soc_rockchip_rk3288_config { |
huang lin | 40f558e | 2014-09-19 14:51:52 +0800 | [diff] [blame] | 27 | u32 vop_id; |
| 28 | gpio_t lcd_bl_pwm_gpio; |
| 29 | gpio_t lcd_bl_en_gpio; |
huang lin | 40f558e | 2014-09-19 14:51:52 +0800 | [diff] [blame] | 30 | u32 bl_power_on_udelay; |
| 31 | u32 bl_pwm_to_enable_udelay; |
| 32 | u32 framebuffer_bits_per_pixel; |
Yakir Yang | 68f42be | 2015-04-29 10:08:12 -0500 | [diff] [blame] | 33 | u32 vop_mode; |
huang lin | 82ba4d0 | 2014-08-16 10:49:32 +0800 | [diff] [blame] | 34 | }; |
| 35 | |
| 36 | #endif /* __SOC_ROCKCHIP_RK3288_CHIP_H__ */ |