/* SPDX-License-Identifier: GPL-2.0-only */ /* * The register defines are based on earlier cpcap.h in Motorola Linux kernel * tree. * * Copyright (C) 2007-2009 Motorola, Inc. * * Rewritten for the real register offsets instead of enumeration * to make the defines usable with Linux kernel regmap support * * Copyright (C) 2016 Tony Lindgren <tony@atomide.com>
*/
#define CPCAP_REG_USBC1 0x0e00 /* USB Control 1 */ #define CPCAP_REG_USBC2 0x0e04 /* USB Control 2 */ #define CPCAP_REG_USBC3 0x0e08 /* USB Control 3 */ #define CPCAP_REG_UVIDL 0x0e0c /* ULPI Vendor ID Low */ #define CPCAP_REG_UVIDH 0x0e10 /* ULPI Vendor ID High */ #define CPCAP_REG_UPIDL 0x0e14 /* ULPI Product ID Low */ #define CPCAP_REG_UPIDH 0x0e18 /* ULPI Product ID High */ #define CPCAP_REG_UFC1 0x0e1c /* ULPI Function Control 1 */ #define CPCAP_REG_UFC2 0x0e20 /* ULPI Function Control 2 */ #define CPCAP_REG_UFC3 0x0e24 /* ULPI Function Control 3 */ #define CPCAP_REG_UIC1 0x0e28 /* ULPI Interface Control 1 */ #define CPCAP_REG_UIC2 0x0e2c /* ULPI Interface Control 2 */ #define CPCAP_REG_UIC3 0x0e30 /* ULPI Interface Control 3 */ #define CPCAP_REG_USBOTG1 0x0e34 /* USB OTG Control 1 */ #define CPCAP_REG_USBOTG2 0x0e38 /* USB OTG Control 2 */ #define CPCAP_REG_USBOTG3 0x0e3c /* USB OTG Control 3 */ #define CPCAP_REG_UIER1 0x0e40 /* USB Interrupt Enable Rising 1 */ #define CPCAP_REG_UIER2 0x0e44 /* USB Interrupt Enable Rising 2 */ #define CPCAP_REG_UIER3 0x0e48 /* USB Interrupt Enable Rising 3 */ #define CPCAP_REG_UIEF1 0x0e4c /* USB Interrupt Enable Falling 1 */ #define CPCAP_REG_UIEF2 0x0e50 /* USB Interrupt Enable Falling 1 */ #define CPCAP_REG_UIEF3 0x0e54 /* USB Interrupt Enable Falling 1 */ #define CPCAP_REG_UIS 0x0e58 /* USB Interrupt Status */ #define CPCAP_REG_UIL 0x0e5c /* USB Interrupt Latch */ #define CPCAP_REG_USBD 0x0e60 /* USB Debug */ #define CPCAP_REG_SCR1 0x0e64 /* Scratch 1 */ #define CPCAP_REG_SCR2 0x0e68 /* Scratch 2 */ #define CPCAP_REG_SCR3 0x0e6c /* Scratch 3 */
#define CPCAP_REG_VMC 0x0eac /* Video Mux Control */ #define CPCAP_REG_OWDC 0x0eb0 /* One Wire Device Control */ #define CPCAP_REG_GPIO0 0x0eb4 /* GPIO 0 Control */
#define CPCAP_REG_GPIO1 0x0ebc /* GPIO 1 Control */
#define CPCAP_REG_GPIO2 0x0ec4 /* GPIO 2 Control */
#define CPCAP_REG_GPIO3 0x0ecc /* GPIO 3 Control */
#define CPCAP_REG_GPIO4 0x0ed4 /* GPIO 4 Control */
#define CPCAP_REG_GPIO5 0x0edc /* GPIO 5 Control */
#define CPCAP_REG_GPIO6 0x0ee4 /* GPIO 6 Control */
#define CPCAP_REG_MDLC 0x1000 /* Main Display Lighting Control */ #define CPCAP_REG_KLC 0x1004 /* Keypad Lighting Control */ #define CPCAP_REG_ADLC 0x1008 /* Aux Display Lighting Control */ #define CPCAP_REG_REDC 0x100c /* Red Triode Control */ #define CPCAP_REG_GREENC 0x1010 /* Green Triode Control */ #define CPCAP_REG_BLUEC 0x1014 /* Blue Triode Control */ #define CPCAP_REG_CFC 0x1018 /* Camera Flash Control */ #define CPCAP_REG_ABC 0x101c /* Adaptive Boost Control */ #define CPCAP_REG_BLEDC 0x1020 /* Bluetooth LED Control */ #define CPCAP_REG_CLEDC 0x1024 /* Camera Privacy LED Control */
#define CPCAP_REG_OW1C 0x1200 /* One Wire 1 Command */ #define CPCAP_REG_OW1D 0x1204 /* One Wire 1 Data */ #define CPCAP_REG_OW1I 0x1208 /* One Wire 1 Interrupt */ #define CPCAP_REG_OW1IE 0x120c /* One Wire 1 Interrupt Enable */
#define CPCAP_REG_OW1 0x1214 /* One Wire 1 Control */
#define CPCAP_REG_OW2C 0x1220 /* One Wire 2 Command */ #define CPCAP_REG_OW2D 0x1224 /* One Wire 2 Data */ #define CPCAP_REG_OW2I 0x1228 /* One Wire 2 Interrupt */ #define CPCAP_REG_OW2IE 0x122c /* One Wire 2 Interrupt Enable */
#define CPCAP_REG_OW2 0x1234 /* One Wire 2 Control */
#define CPCAP_REG_OW3C 0x1240 /* One Wire 3 Command */ #define CPCAP_REG_OW3D 0x1244 /* One Wire 3 Data */ #define CPCAP_REG_OW3I 0x1248 /* One Wire 3 Interrupt */ #define CPCAP_REG_OW3IE 0x124c /* One Wire 3 Interrupt Enable */
/* * Helpers for child devices to check the revision and vendor. * * REVISIT: No documentation for the bits below, please update * to use proper names for defines when available.
*/
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.