162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0-only */
262306a36Sopenharmony_ci/*
362306a36Sopenharmony_ci * wm8960.h  --  WM8960 Soc Audio driver platform data
462306a36Sopenharmony_ci */
562306a36Sopenharmony_ci
662306a36Sopenharmony_ci#ifndef _WM8960_PDATA_H
762306a36Sopenharmony_ci#define _WM8960_PDATA_H
862306a36Sopenharmony_ci
962306a36Sopenharmony_ci#define WM8960_DRES_400R 0
1062306a36Sopenharmony_ci#define WM8960_DRES_200R 1
1162306a36Sopenharmony_ci#define WM8960_DRES_600R 2
1262306a36Sopenharmony_ci#define WM8960_DRES_150R 3
1362306a36Sopenharmony_ci#define WM8960_DRES_MAX  3
1462306a36Sopenharmony_ci
1562306a36Sopenharmony_cistruct wm8960_data {
1662306a36Sopenharmony_ci	bool capless;  /* Headphone outputs configured in capless mode */
1762306a36Sopenharmony_ci
1862306a36Sopenharmony_ci	bool shared_lrclk;  /* DAC and ADC LRCLKs are wired together */
1962306a36Sopenharmony_ci
2062306a36Sopenharmony_ci	/*
2162306a36Sopenharmony_ci	 * Setup for headphone detection
2262306a36Sopenharmony_ci	 *
2362306a36Sopenharmony_ci	 * hp_cfg[0]: HPSEL[1:0] of R48 (Additional Control 4)
2462306a36Sopenharmony_ci	 * hp_cfg[1]: {HPSWEN:HPSWPOL} of R24 (Additional Control 2).
2562306a36Sopenharmony_ci	 * hp_cfg[2]: {TOCLKSEL:TOEN} of R23 (Additional Control 1).
2662306a36Sopenharmony_ci	 */
2762306a36Sopenharmony_ci	u32 hp_cfg[3];
2862306a36Sopenharmony_ci
2962306a36Sopenharmony_ci	/*
3062306a36Sopenharmony_ci	 * Setup for gpio configuration
3162306a36Sopenharmony_ci	 *
3262306a36Sopenharmony_ci	 * gpio_cfg[0]: ALRCGPIO of R9 (Audio interface)
3362306a36Sopenharmony_ci	 * gpio_cfg[1]: {GPIOPOL:GPIOSEL[2:0]} of R48 (Additional Control 4).
3462306a36Sopenharmony_ci	 */
3562306a36Sopenharmony_ci	u32 gpio_cfg[2];
3662306a36Sopenharmony_ci};
3762306a36Sopenharmony_ci
3862306a36Sopenharmony_ci#endif
39