setup-fb-24bpp.c 879 B

123456789101112131415161718192021222324252627282930
  1. /* linux/arch/arm/mach-s5p64x0/setup-fb-24bpp.c
  2. *
  3. * Copyright (c) 2011 Samsung Electronics Co., Ltd.
  4. * http://www.samsung.com/
  5. *
  6. * Base S5P64X0 GPIO setup information for LCD framebuffer
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License version 2 as
  10. * published by the Free Software Foundation.
  11. */
  12. #include <linux/fb.h>
  13. #include <linux/gpio.h>
  14. #include <plat/cpu.h>
  15. #include <plat/fb.h>
  16. #include <plat/gpio-cfg.h>
  17. void s5p64x0_fb_gpio_setup_24bpp(void)
  18. {
  19. if (soc_is_s5p6440()) {
  20. s3c_gpio_cfgrange_nopull(S5P6440_GPI(0), 16, S3C_GPIO_SFN(2));
  21. s3c_gpio_cfgrange_nopull(S5P6440_GPJ(0), 12, S3C_GPIO_SFN(2));
  22. } else if (soc_is_s5p6450()) {
  23. s3c_gpio_cfgrange_nopull(S5P6450_GPI(0), 16, S3C_GPIO_SFN(2));
  24. s3c_gpio_cfgrange_nopull(S5P6450_GPJ(0), 12, S3C_GPIO_SFN(2));
  25. }
  26. }