xref: /linux/arch/arm/mach-s3c/setup-fb-24bpp-s3c64xx.c (revision cbecf716ca618fd44feda6bd9a64a8179d031fc5)
171b9114dSArnd Bergmann // SPDX-License-Identifier: GPL-2.0
271b9114dSArnd Bergmann //
371b9114dSArnd Bergmann // Copyright 2008 Openmoko, Inc.
471b9114dSArnd Bergmann // Copyright 2008 Simtec Electronics
571b9114dSArnd Bergmann //	Ben Dooks <ben@simtec.co.uk>
671b9114dSArnd Bergmann //	http://armlinux.simtec.co.uk/
771b9114dSArnd Bergmann //
871b9114dSArnd Bergmann // Base S3C64XX setup information for 24bpp LCD framebuffer
971b9114dSArnd Bergmann 
1071b9114dSArnd Bergmann #include <linux/kernel.h>
1171b9114dSArnd Bergmann #include <linux/types.h>
1271b9114dSArnd Bergmann #include <linux/fb.h>
1371b9114dSArnd Bergmann #include <linux/gpio.h>
1471b9114dSArnd Bergmann 
15*c6ff132dSArnd Bergmann #include "fb.h"
16*c6ff132dSArnd Bergmann #include "gpio-cfg.h"
17*c6ff132dSArnd Bergmann #include "gpio-samsung.h"
1871b9114dSArnd Bergmann 
s3c64xx_fb_gpio_setup_24bpp(void)1971b9114dSArnd Bergmann void s3c64xx_fb_gpio_setup_24bpp(void)
2071b9114dSArnd Bergmann {
2171b9114dSArnd Bergmann 	s3c_gpio_cfgrange_nopull(S3C64XX_GPI(0), 16, S3C_GPIO_SFN(2));
2271b9114dSArnd Bergmann 	s3c_gpio_cfgrange_nopull(S3C64XX_GPJ(0), 12, S3C_GPIO_SFN(2));
2371b9114dSArnd Bergmann }
24