mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-24 21:57:25 +07:00
d2912cb15b
Based on 2 normalized pattern(s): this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation this program is free software you can redistribute it and or modify it under the terms of the gnu general public license version 2 as published by the free software foundation # extracted by the scancode license scanner the SPDX license identifier GPL-2.0-only has been chosen to replace the boilerplate/reference in 4122 file(s). Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Enrico Weigelt <info@metux.net> Reviewed-by: Kate Stewart <kstewart@linuxfoundation.org> Reviewed-by: Allison Randal <allison@lohutok.net> Cc: linux-spdx@vger.kernel.org Link: https://lkml.kernel.org/r/20190604081206.933168790@linutronix.de Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
65 lines
1.8 KiB
C
65 lines
1.8 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* GPIOs and interrupts for Palm Tungsten|E2 Handheld Computer
|
|
*
|
|
* Author:
|
|
* Carlos Eduardo Medaglia Dyonisio <cadu@nerdfeliz.com>
|
|
*/
|
|
|
|
#ifndef _INCLUDE_PALMTE2_H_
|
|
#define _INCLUDE_PALMTE2_H_
|
|
|
|
/** HERE ARE GPIOs **/
|
|
|
|
/* GPIOs */
|
|
#define GPIO_NR_PALMTE2_POWER_DETECT 9
|
|
#define GPIO_NR_PALMTE2_HOTSYNC_BUTTON_N 4
|
|
#define GPIO_NR_PALMTE2_EARPHONE_DETECT 15
|
|
|
|
/* SD/MMC */
|
|
#define GPIO_NR_PALMTE2_SD_DETECT_N 10
|
|
#define GPIO_NR_PALMTE2_SD_POWER 55
|
|
#define GPIO_NR_PALMTE2_SD_READONLY 51
|
|
|
|
/* IRDA - disable GPIO connected to SD pin of tranceiver (TFBS4710?) ? */
|
|
#define GPIO_NR_PALMTE2_IR_DISABLE 48
|
|
|
|
/* USB */
|
|
#define GPIO_NR_PALMTE2_USB_DETECT_N 35
|
|
#define GPIO_NR_PALMTE2_USB_PULLUP 53
|
|
|
|
/* LCD/BACKLIGHT */
|
|
#define GPIO_NR_PALMTE2_BL_POWER 56
|
|
#define GPIO_NR_PALMTE2_LCD_POWER 37
|
|
|
|
/* KEYS */
|
|
#define GPIO_NR_PALMTE2_KEY_NOTES 5
|
|
#define GPIO_NR_PALMTE2_KEY_TASKS 7
|
|
#define GPIO_NR_PALMTE2_KEY_CALENDAR 11
|
|
#define GPIO_NR_PALMTE2_KEY_CONTACTS 13
|
|
#define GPIO_NR_PALMTE2_KEY_CENTER 14
|
|
#define GPIO_NR_PALMTE2_KEY_LEFT 19
|
|
#define GPIO_NR_PALMTE2_KEY_RIGHT 20
|
|
#define GPIO_NR_PALMTE2_KEY_DOWN 21
|
|
#define GPIO_NR_PALMTE2_KEY_UP 22
|
|
|
|
/** HERE ARE INIT VALUES **/
|
|
|
|
/* BACKLIGHT */
|
|
#define PALMTE2_MAX_INTENSITY 0xFE
|
|
#define PALMTE2_DEFAULT_INTENSITY 0x7E
|
|
#define PALMTE2_LIMIT_MASK 0x7F
|
|
#define PALMTE2_PRESCALER 0x3F
|
|
#define PALMTE2_PERIOD_NS 3500
|
|
|
|
/* BATTERY */
|
|
#define PALMTE2_BAT_MAX_VOLTAGE 4000 /* 4.00v current voltage */
|
|
#define PALMTE2_BAT_MIN_VOLTAGE 3550 /* 3.55v critical voltage */
|
|
#define PALMTE2_BAT_MAX_CURRENT 0 /* unknown */
|
|
#define PALMTE2_BAT_MIN_CURRENT 0 /* unknown */
|
|
#define PALMTE2_BAT_MAX_CHARGE 1 /* unknown */
|
|
#define PALMTE2_BAT_MIN_CHARGE 1 /* unknown */
|
|
#define PALMTE2_MAX_LIFE_MINS 360 /* on-life in minutes */
|
|
|
|
#endif
|