dc68054305
- Restore 29 recipe symlinks (libdrm, qtbase, dbus, sddm, pipewire, etc.) - Restore 33 patches (KDE, libdrm, mesa, pipewire, sddm, wireplumber) - Restore 20+ local/scripts (audit, lint, test, build helpers) - Restore src/cook/scheduler.rs, status.rs, gnu-config/ - Restore scripts/patch-inclusion-gate.sh, run_mini1.sh, validate-collision-log.sh - Recover TLC source from HEAD (was overwritten by 0.2.3 checkout) - Recover 11 local/docs plans from HEAD (were overwritten) - Recover qt6-wayland-smoke symlink from HEAD - Fix MOTD: remove garbled ASCII art, use clean text - Update version: 0.2.0 -> 0.2.4 in os-release, motd, config - Reduce filesystem_size: 1536 -> 512 MiB - Add ABSOLUTE RULE to AGENTS.md: never delete/ignore packages - Reduce pcid scheme log verbosity: info -> debug
60 lines
1.5 KiB
C
60 lines
1.5 KiB
C
/* SPDX-License-Identifier: GPL-2.0-only */
|
|
/*
|
|
* Platform data for Cirrus Logic Madera codecs
|
|
*
|
|
* Copyright (C) 2015-2018 Cirrus Logic
|
|
*/
|
|
|
|
#ifndef MADERA_PDATA_H
|
|
#define MADERA_PDATA_H
|
|
|
|
#include <linux/regulator/arizona-ldo1.h>
|
|
#include <linux/regulator/arizona-micsupp.h>
|
|
#include <linux/regulator/machine.h>
|
|
#include <linux/types.h>
|
|
|
|
#include <sound/madera-pdata.h>
|
|
|
|
#define MADERA_MAX_MICBIAS 4
|
|
#define MADERA_MAX_CHILD_MICBIAS 4
|
|
|
|
#define MADERA_MAX_GPSW 2
|
|
|
|
struct gpio_desc;
|
|
struct pinctrl_map;
|
|
|
|
/**
|
|
* struct madera_pdata - Configuration data for Madera devices
|
|
*
|
|
* @reset: GPIO controlling /RESET (NULL = none)
|
|
* @ldo1: Substruct of pdata for the LDO1 regulator
|
|
* @micvdd: Substruct of pdata for the MICVDD regulator
|
|
* @irq_flags: Mode for primary IRQ (defaults to active low)
|
|
* @gpio_base: Base GPIO number
|
|
* @gpio_configs: Array of GPIO configurations (See
|
|
* Documentation/driver-api/pin-control.rst)
|
|
* @n_gpio_configs: Number of entries in gpio_configs
|
|
* @gpsw: General purpose switch mode setting. Depends on the external
|
|
* hardware connected to the switch. (See the SW1_MODE field
|
|
* in the datasheet for the available values for your codec)
|
|
* @codec: Substruct of pdata for the ASoC codec driver
|
|
*/
|
|
struct madera_pdata {
|
|
struct gpio_desc *reset;
|
|
|
|
struct arizona_ldo1_pdata ldo1;
|
|
struct arizona_micsupp_pdata micvdd;
|
|
|
|
unsigned int irq_flags;
|
|
int gpio_base;
|
|
|
|
const struct pinctrl_map *gpio_configs;
|
|
int n_gpio_configs;
|
|
|
|
u32 gpsw[MADERA_MAX_GPSW];
|
|
|
|
struct madera_codec_pdata codec;
|
|
};
|
|
|
|
#endif
|