mirror of
https://github.com/AetherDroid/android_kernel_samsung_on5xelte.git
synced 2025-09-08 17:18:05 -04:00
Fixed MTP to work with TWRP
This commit is contained in:
commit
f6dfaef42e
50820 changed files with 20846062 additions and 0 deletions
93
include/dt-bindings/mfd/arizona.h
Normal file
93
include/dt-bindings/mfd/arizona.h
Normal file
|
@ -0,0 +1,93 @@
|
|||
/*
|
||||
* Device Tree defines for Arizona devices
|
||||
*
|
||||
* Copyright 2015 Cirrus Logic Inc.
|
||||
*
|
||||
* Author: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef _DT_BINDINGS_MFD_ARIZONA_H
|
||||
#define _DT_BINDINGS_MFD_ARIZONA_H
|
||||
|
||||
/* GPIO Function Definitions */
|
||||
#define ARIZONA_GP_FN_TXLRCLK 0x00
|
||||
#define ARIZONA_GP_FN_GPIO 0x01
|
||||
#define ARIZONA_GP_FN_IRQ1 0x02
|
||||
#define ARIZONA_GP_FN_IRQ2 0x03
|
||||
#define ARIZONA_GP_FN_OPCLK 0x04
|
||||
#define ARIZONA_GP_FN_FLL1_OUT 0x05
|
||||
#define ARIZONA_GP_FN_FLL2_OUT 0x06
|
||||
#define ARIZONA_GP_FN_PWM1 0x08
|
||||
#define ARIZONA_GP_FN_PWM2 0x09
|
||||
#define ARIZONA_GP_FN_SYSCLK_UNDERCLOCKED 0x0A
|
||||
#define ARIZONA_GP_FN_ASYNCCLK_UNDERCLOCKED 0x0B
|
||||
#define ARIZONA_GP_FN_FLL1_LOCK 0x0C
|
||||
#define ARIZONA_GP_FN_FLL2_LOCK 0x0D
|
||||
#define ARIZONA_GP_FN_FLL1_CLOCK_OK 0x0F
|
||||
#define ARIZONA_GP_FN_FLL2_CLOCK_OK 0x10
|
||||
#define ARIZONA_GP_FN_HEADPHONE_DET 0x12
|
||||
#define ARIZONA_GP_FN_MIC_DET 0x13
|
||||
#define ARIZONA_GP_FN_WSEQ_STATUS 0x15
|
||||
#define ARIZONA_GP_FN_CIF_ADDRESS_ERROR 0x16
|
||||
#define ARIZONA_GP_FN_ASRC1_LOCK 0x1A
|
||||
#define ARIZONA_GP_FN_ASRC2_LOCK 0x1B
|
||||
#define ARIZONA_GP_FN_ASRC_CONFIG_ERROR 0x1C
|
||||
#define ARIZONA_GP_FN_DRC1_SIGNAL_DETECT 0x1D
|
||||
#define ARIZONA_GP_FN_DRC1_ANTICLIP 0x1E
|
||||
#define ARIZONA_GP_FN_DRC1_DECAY 0x1F
|
||||
#define ARIZONA_GP_FN_DRC1_NOISE 0x20
|
||||
#define ARIZONA_GP_FN_DRC1_QUICK_RELEASE 0x21
|
||||
#define ARIZONA_GP_FN_DRC2_SIGNAL_DETECT 0x22
|
||||
#define ARIZONA_GP_FN_DRC2_ANTICLIP 0x23
|
||||
#define ARIZONA_GP_FN_DRC2_DECAY 0x24
|
||||
#define ARIZONA_GP_FN_DRC2_NOISE 0x25
|
||||
#define ARIZONA_GP_FN_DRC2_QUICK_RELEASE 0x26
|
||||
#define ARIZONA_GP_FN_MIXER_DROPPED_SAMPLE 0x27
|
||||
#define ARIZONA_GP_FN_AIF1_CONFIG_ERROR 0x28
|
||||
#define ARIZONA_GP_FN_AIF2_CONFIG_ERROR 0x29
|
||||
#define ARIZONA_GP_FN_AIF3_CONFIG_ERROR 0x2A
|
||||
#define ARIZONA_GP_FN_SPK_TEMP_SHUTDOWN 0x2B
|
||||
#define ARIZONA_GP_FN_SPK_TEMP_WARNING 0x2C
|
||||
#define ARIZONA_GP_FN_UNDERCLOCKED 0x2D
|
||||
#define ARIZONA_GP_FN_OVERCLOCKED 0x2E
|
||||
#define ARIZONA_GP_FN_DSP_IRQ1 0x35
|
||||
#define ARIZONA_GP_FN_DSP_IRQ2 0x36
|
||||
#define ARIZONA_GP_FN_ASYNC_OPCLK 0x3D
|
||||
#define ARIZONA_GP_FN_BOOT_DONE 0x44
|
||||
#define ARIZONA_GP_FN_DSP1_RAM_READY 0x45
|
||||
#define ARIZONA_GP_FN_SYSCLK_ENA_STATUS 0x4B
|
||||
#define ARIZONA_GP_FN_ASYNCCLK_ENA_STATUS 0x4C
|
||||
|
||||
/* GPIO Configuration Bits */
|
||||
#define ARIZONA_GPN_DIR 0x8000
|
||||
#define ARIZONA_GPN_PU 0x4000
|
||||
#define ARIZONA_GPN_PD 0x2000
|
||||
#define ARIZONA_GPN_LVL 0x0800
|
||||
#define ARIZONA_GPN_POL 0x0400
|
||||
#define ARIZONA_GPN_OP_CFG 0x0200
|
||||
#define ARIZONA_GPN_DB 0x0100
|
||||
|
||||
/* Provide some defines for the most common configs */
|
||||
#define ARIZONA_GP_DEFAULT 0xffffffff
|
||||
#define ARIZONA_GP_OUTPUT (ARIZONA_GP_FN_GPIO)
|
||||
#define ARIZONA_GP_INPUT (ARIZONA_GP_FN_GPIO | \
|
||||
ARIZONA_GPN_DIR)
|
||||
|
||||
#define ARIZONA_32KZ_MCLK1 1
|
||||
#define ARIZONA_32KZ_MCLK2 2
|
||||
#define ARIZONA_32KZ_NONE 3
|
||||
|
||||
#define ARIZONA_DMIC_MICVDD 0
|
||||
#define ARIZONA_DMIC_MICBIAS1 1
|
||||
#define ARIZONA_DMIC_MICBIAS2 2
|
||||
#define ARIZONA_DMIC_MICBIAS3 3
|
||||
|
||||
#define ARIZONA_INMODE_DIFF 0
|
||||
#define ARIZONA_INMODE_SE 1
|
||||
#define ARIZONA_INMODE_DMIC 2
|
||||
|
||||
#endif
|
52
include/dt-bindings/mfd/as3722.h
Normal file
52
include/dt-bindings/mfd/as3722.h
Normal file
|
@ -0,0 +1,52 @@
|
|||
/*
|
||||
* This header provides macros for ams AS3722 device bindings.
|
||||
*
|
||||
* Copyright (c) 2013, NVIDIA Corporation.
|
||||
*
|
||||
* Author: Laxman Dewangan <ldewangan@nvidia.com>
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __DT_BINDINGS_AS3722_H__
|
||||
#define __DT_BINDINGS_AS3722_H__
|
||||
|
||||
/* External control pins */
|
||||
#define AS3722_EXT_CONTROL_PIN_ENABLE1 1
|
||||
#define AS3722_EXT_CONTROL_PIN_ENABLE2 2
|
||||
#define AS3722_EXT_CONTROL_PIN_ENABLE3 3
|
||||
|
||||
/* Interrupt numbers for AS3722 */
|
||||
#define AS3722_IRQ_LID 0
|
||||
#define AS3722_IRQ_ACOK 1
|
||||
#define AS3722_IRQ_ENABLE1 2
|
||||
#define AS3722_IRQ_OCCUR_ALARM_SD0 3
|
||||
#define AS3722_IRQ_ONKEY_LONG_PRESS 4
|
||||
#define AS3722_IRQ_ONKEY 5
|
||||
#define AS3722_IRQ_OVTMP 6
|
||||
#define AS3722_IRQ_LOWBAT 7
|
||||
#define AS3722_IRQ_SD0_LV 8
|
||||
#define AS3722_IRQ_SD1_LV 9
|
||||
#define AS3722_IRQ_SD2_LV 10
|
||||
#define AS3722_IRQ_PWM1_OV_PROT 11
|
||||
#define AS3722_IRQ_PWM2_OV_PROT 12
|
||||
#define AS3722_IRQ_ENABLE2 13
|
||||
#define AS3722_IRQ_SD6_LV 14
|
||||
#define AS3722_IRQ_RTC_REP 15
|
||||
#define AS3722_IRQ_RTC_ALARM 16
|
||||
#define AS3722_IRQ_GPIO1 17
|
||||
#define AS3722_IRQ_GPIO2 18
|
||||
#define AS3722_IRQ_GPIO3 19
|
||||
#define AS3722_IRQ_GPIO4 20
|
||||
#define AS3722_IRQ_GPIO5 21
|
||||
#define AS3722_IRQ_WATCHDOG 22
|
||||
#define AS3722_IRQ_ENABLE3 23
|
||||
#define AS3722_IRQ_TEMP_SD0_SHUTDOWN 24
|
||||
#define AS3722_IRQ_TEMP_SD1_SHUTDOWN 25
|
||||
#define AS3722_IRQ_TEMP_SD2_SHUTDOWN 26
|
||||
#define AS3722_IRQ_TEMP_SD0_ALARM 27
|
||||
#define AS3722_IRQ_TEMP_SD1_ALARM 28
|
||||
#define AS3722_IRQ_TEMP_SD6_ALARM 29
|
||||
#define AS3722_IRQ_OCCUR_ALARM_SD6 30
|
||||
#define AS3722_IRQ_ADC 31
|
||||
|
||||
#endif /* __DT_BINDINGS_AS3722_H__ */
|
83
include/dt-bindings/mfd/dbx500-prcmu.h
Normal file
83
include/dt-bindings/mfd/dbx500-prcmu.h
Normal file
|
@ -0,0 +1,83 @@
|
|||
/*
|
||||
* This header provides constants for the PRCMU bindings.
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef _DT_BINDINGS_MFD_PRCMU_H
|
||||
#define _DT_BINDINGS_MFD_PRCMU_H
|
||||
|
||||
/*
|
||||
* Clock identifiers.
|
||||
*/
|
||||
#define ARMCLK 0
|
||||
#define PRCMU_ACLK 1
|
||||
#define PRCMU_SVAMMCSPCLK 2
|
||||
#define PRCMU_SDMMCHCLK 2 /* DBx540 only. */
|
||||
#define PRCMU_SIACLK 3
|
||||
#define PRCMU_SIAMMDSPCLK 3 /* DBx540 only. */
|
||||
#define PRCMU_SGACLK 4
|
||||
#define PRCMU_UARTCLK 5
|
||||
#define PRCMU_MSP02CLK 6
|
||||
#define PRCMU_MSP1CLK 7
|
||||
#define PRCMU_I2CCLK 8
|
||||
#define PRCMU_SDMMCCLK 9
|
||||
#define PRCMU_SLIMCLK 10
|
||||
#define PRCMU_CAMCLK 10 /* DBx540 only. */
|
||||
#define PRCMU_PER1CLK 11
|
||||
#define PRCMU_PER2CLK 12
|
||||
#define PRCMU_PER3CLK 13
|
||||
#define PRCMU_PER5CLK 14
|
||||
#define PRCMU_PER6CLK 15
|
||||
#define PRCMU_PER7CLK 16
|
||||
#define PRCMU_LCDCLK 17
|
||||
#define PRCMU_BMLCLK 18
|
||||
#define PRCMU_HSITXCLK 19
|
||||
#define PRCMU_HSIRXCLK 20
|
||||
#define PRCMU_HDMICLK 21
|
||||
#define PRCMU_APEATCLK 22
|
||||
#define PRCMU_APETRACECLK 23
|
||||
#define PRCMU_MCDECLK 24
|
||||
#define PRCMU_IPI2CCLK 25
|
||||
#define PRCMU_DSIALTCLK 26
|
||||
#define PRCMU_DMACLK 27
|
||||
#define PRCMU_B2R2CLK 28
|
||||
#define PRCMU_TVCLK 29
|
||||
#define SPARE_UNIPROCLK 30
|
||||
#define PRCMU_SSPCLK 31
|
||||
#define PRCMU_RNGCLK 32
|
||||
#define PRCMU_UICCCLK 33
|
||||
#define PRCMU_G1CLK 34 /* DBx540 only. */
|
||||
#define PRCMU_HVACLK 35 /* DBx540 only. */
|
||||
#define PRCMU_SPARE1CLK 36
|
||||
#define PRCMU_SPARE2CLK 37
|
||||
|
||||
#define PRCMU_NUM_REG_CLOCKS 38
|
||||
|
||||
#define PRCMU_RTCCLK PRCMU_NUM_REG_CLOCKS
|
||||
#define PRCMU_SYSCLK 39
|
||||
#define PRCMU_CDCLK 40
|
||||
#define PRCMU_TIMCLK 41
|
||||
#define PRCMU_PLLSOC0 42
|
||||
#define PRCMU_PLLSOC1 43
|
||||
#define PRCMU_ARMSS 44
|
||||
#define PRCMU_PLLDDR 45
|
||||
|
||||
/* DSI Clocks */
|
||||
#define PRCMU_PLLDSI 46
|
||||
#define PRCMU_DSI0CLK 47
|
||||
#define PRCMU_DSI1CLK 48
|
||||
#define PRCMU_DSI0ESCCLK 49
|
||||
#define PRCMU_DSI1ESCCLK 50
|
||||
#define PRCMU_DSI2ESCCLK 51
|
||||
|
||||
/* LCD DSI PLL - Ux540 only */
|
||||
#define PRCMU_PLLDSI_LCD 52
|
||||
#define PRCMU_DSI0CLK_LCD 53
|
||||
#define PRCMU_DSI1CLK_LCD 54
|
||||
#define PRCMU_DSI0ESCCLK_LCD 55
|
||||
#define PRCMU_DSI1ESCCLK_LCD 56
|
||||
#define PRCMU_DSI2ESCCLK_LCD 57
|
||||
|
||||
#define PRCMU_NUM_CLKS 58
|
||||
|
||||
#endif
|
18
include/dt-bindings/mfd/palmas.h
Normal file
18
include/dt-bindings/mfd/palmas.h
Normal file
|
@ -0,0 +1,18 @@
|
|||
/*
|
||||
* This header provides macros for Palmas device bindings.
|
||||
*
|
||||
* Copyright (c) 2013, NVIDIA Corporation.
|
||||
*
|
||||
* Author: Laxman Dewangan <ldewangan@nvidia.com>
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef __DT_BINDINGS_PALMAS_H__
|
||||
#define __DT_BINDINGS_PALMAS_H
|
||||
|
||||
/* External control pins */
|
||||
#define PALMAS_EXT_CONTROL_PIN_ENABLE1 1
|
||||
#define PALMAS_EXT_CONTROL_PIN_ENABLE2 2
|
||||
#define PALMAS_EXT_CONTROL_PIN_NSLEEP 3
|
||||
|
||||
#endif /* __DT_BINDINGS_PALMAS_H */
|
Loading…
Add table
Add a link
Reference in a new issue