mirror of
https://github.com/torvalds/linux.git
synced 2024-12-18 17:12:55 +00:00
c6ff132d42
A lot of header files are only used internally now, so they can be moved to mach-s3c, out of the visibility of drivers. Signed-off-by: Arnd Bergmann <arnd@arndb.de> Link: https://lore.kernel.org/r/20200806182059.2431-40-krzk@kernel.org [krzk: Rebase and fixup leds-s3c24xx driver] Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
21 lines
610 B
C
21 lines
610 B
C
// SPDX-License-Identifier: GPL-2.0
|
|
//
|
|
// Copyright (c) 2010 Samsung Electronics Co., Ltd.
|
|
// http://www.samsung.com/
|
|
//
|
|
// GPIO configuration for S3C64XX KeyPad device
|
|
|
|
#include <linux/gpio.h>
|
|
#include "gpio-cfg.h"
|
|
#include "keypad.h"
|
|
#include "gpio-samsung.h"
|
|
|
|
void samsung_keypad_cfg_gpio(unsigned int rows, unsigned int cols)
|
|
{
|
|
/* Set all the necessary GPK pins to special-function 3: KP_ROW[x] */
|
|
s3c_gpio_cfgrange_nopull(S3C64XX_GPK(8), rows, S3C_GPIO_SFN(3));
|
|
|
|
/* Set all the necessary GPL pins to special-function 3: KP_COL[x] */
|
|
s3c_gpio_cfgrange_nopull(S3C64XX_GPL(0), cols, S3C_GPIO_SFN(3));
|
|
}
|