1 /**************************************************************************** 2 **************************************************************************** 3 *** 4 *** This header was automatically generated from a Linux kernel header 5 *** of the same name, to make information necessary for userspace to 6 *** call into the kernel available to libc. It contains only constants, 7 *** structures, and macros generated from the original header, and thus, 8 *** contains no copyrightable information. 9 *** 10 *** To edit the content of this header, modify the corresponding 11 *** source file (e.g. under external/kernel-headers/original/) then 12 *** run bionic/libc/kernel/tools/update_all.py 13 *** 14 *** Any manual change here will be lost the next time this script will 15 *** be run. You've been warned! 16 *** 17 **************************************************************************** 18 ****************************************************************************/ 19 #ifndef __WCD9310_SLIMSLAVE_H_ 20 #define __WCD9310_SLIMSLAVE_H_ 21 #include <linux/slimbus/slimbus.h> 22 #include <linux/mfd/wcd9xxx/core.h> 23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 24 enum { 25 SLIM_TX_1 = 128, 26 SLIM_TX_2 = 129, 27 SLIM_TX_3 = 130, 28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 29 SLIM_TX_4 = 131, 30 SLIM_TX_5 = 132, 31 SLIM_TX_6 = 133, 32 SLIM_TX_7 = 134, 33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 34 SLIM_TX_8 = 135, 35 SLIM_TX_9 = 136, 36 SLIM_TX_10 = 137, 37 SLIM_RX_1 = 138, 38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 39 SLIM_RX_2 = 139, 40 SLIM_RX_3 = 140, 41 SLIM_RX_4 = 141, 42 SLIM_RX_5 = 142, 43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 44 SLIM_RX_6 = 143, 45 SLIM_RX_7 = 144, 46 SLIM_MAX = 145 47 }; 48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 49 #define TABLA_SB_PGD_MAX_NUMBER_OF_TX_SLAVE_DEV_PORTS 10 50 #define TAIKO_SB_PGD_MAX_NUMBER_OF_TX_SLAVE_DEV_PORTS 16 51 #define SLIM_MAX_TX_PORTS TAIKO_SB_PGD_MAX_NUMBER_OF_TX_SLAVE_DEV_PORTS 52 #define TABLA_SB_PGD_OFFSET_OF_RX_SLAVE_DEV_PORTS TABLA_SB_PGD_MAX_NUMBER_OF_TX_SLAVE_DEV_PORTS 53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 54 #define TAIKO_SB_PGD_OFFSET_OF_RX_SLAVE_DEV_PORTS TAIKO_SB_PGD_MAX_NUMBER_OF_TX_SLAVE_DEV_PORTS 55 #define TABLA_SB_PGD_MAX_NUMBER_OF_RX_SLAVE_DEV_PORTS 7 56 #define TAIKO_SB_PGD_MAX_NUMBER_OF_RX_SLAVE_DEV_PORTS 13 57 #define SLIM_MAX_RX_PORTS TAIKO_SB_PGD_MAX_NUMBER_OF_RX_SLAVE_DEV_PORTS 58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 59 #define TABLA_SB_PGD_RX_PORT_MULTI_CHANNEL_0_START_PORT_ID TABLA_SB_PGD_OFFSET_OF_RX_SLAVE_DEV_PORTS 60 #define TAIKO_SB_PGD_RX_PORT_MULTI_CHANNEL_0_START_PORT_ID TAIKO_SB_PGD_OFFSET_OF_RX_SLAVE_DEV_PORTS 61 #define TABLA_SB_PGD_RX_PORT_MULTI_CHANNEL_0_END_PORT_ID 16 62 #define TAIKO_SB_PGD_RX_PORT_MULTI_CHANNEL_0_END_PORT_ID 31 63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 64 #define TABLA_SB_PGD_TX_PORT_MULTI_CHANNEL_1_END_PORT_ID 9 65 #define TAIKO_SB_PGD_TX_PORT_MULTI_CHANNEL_1_END_PORT_ID 15 66 #define SB_PGD_PORT_BASE 0x000 67 #define SB_PGD_PORT_CFG_BYTE_ADDR(offset, port_num) (SB_PGD_PORT_BASE + offset + (1 * port_num)) 68 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 69 #define SB_PGD_TX_PORT_MULTI_CHANNEL_0(port_num) (SB_PGD_PORT_BASE + 0x100 + 4*port_num) 70 #define SB_PGD_TX_PORT_MULTI_CHANNEL_0_START_PORT_ID 0 71 #define SB_PGD_TX_PORT_MULTI_CHANNEL_0_END_PORT_ID 7 72 #define SB_PGD_TX_PORT_MULTI_CHANNEL_1(port_num) (SB_PGD_PORT_BASE + 0x101 + 4*port_num) 73 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 74 #define SB_PGD_TX_PORT_MULTI_CHANNEL_1_START_PORT_ID 8 75 #define SB_PGD_RX_PORT_MULTI_CHANNEL_0(offset, port_num) (SB_PGD_PORT_BASE + offset + (4 * port_num)) 76 #define SLAVE_PORT_WATER_MARK_VALUE 2 77 #define SLAVE_PORT_WATER_MARK_SHIFT 1 78 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 79 #define SLAVE_PORT_ENABLE 1 80 #define SLAVE_PORT_DISABLE 0 81 #define BASE_CH_NUM 128 82 #endif 83 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */ 84 85