exynos_fb.h 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * Copyright (C) 2012 Samsung Electronics
  3. *
  4. * Author: InKi Dae <inki.dae@samsung.com>
  5. * Author: Donghwa Lee <dh09.lee@samsung.com>
  6. *
  7. * This program is free software; you can redistribute it and/or
  8. * modify it under the terms of the GNU General Public License as
  9. * published by the Free Software Foundation; either version 2 of
  10. * the License, or (at your option) any later version.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU General Public License
  18. * along with this program; if not, write to the Free Software
  19. * Foundation, Inc., 59 Temple Place, Suite 330, Boston,
  20. * MA 02111-1307 USA
  21. */
  22. #ifndef _EXYNOS_FB_H_
  23. #define _EXYNOS_FB_H_
  24. #include <asm/arch/fb.h>
  25. #define MAX_CLOCK (86 * 1000000)
  26. enum exynos_fb_rgb_mode_t {
  27. MODE_RGB_P = 0,
  28. MODE_BGR_P = 1,
  29. MODE_RGB_S = 2,
  30. MODE_BGR_S = 3,
  31. };
  32. enum exynos_cpu_auto_cmd_rate {
  33. DISABLE_AUTO_FRM,
  34. PER_TWO_FRM,
  35. PER_FOUR_FRM,
  36. PER_SIX_FRM,
  37. PER_EIGHT_FRM,
  38. PER_TEN_FRM,
  39. PER_TWELVE_FRM,
  40. PER_FOURTEEN_FRM,
  41. PER_SIXTEEN_FRM,
  42. PER_EIGHTEEN_FRM,
  43. PER_TWENTY_FRM,
  44. PER_TWENTY_TWO_FRM,
  45. PER_TWENTY_FOUR_FRM,
  46. PER_TWENTY_SIX_FRM,
  47. PER_TWENTY_EIGHT_FRM,
  48. PER_THIRTY_FRM,
  49. };
  50. void exynos_fimd_lcd_init_mem(unsigned long screen_base, unsigned long fb_size,
  51. unsigned long palette_size);
  52. void exynos_fimd_lcd_init(vidinfo_t *vid);
  53. unsigned long exynos_fimd_calc_fbsize(void);
  54. #endif