1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 /* SPDX-License-Identifier: GPL-2.0-or-later */ 2 /* 2 /* 3 * Definitions for CS4271 ASoC codec driver 3 * Definitions for CS4271 ASoC codec driver 4 * 4 * 5 * Copyright (c) 2010 Alexander Sverdlin <suba 5 * Copyright (c) 2010 Alexander Sverdlin <subaparts@yandex.ru> 6 */ 6 */ 7 7 8 #ifndef __CS4271_H 8 #ifndef __CS4271_H 9 #define __CS4271_H 9 #define __CS4271_H 10 10 11 struct cs4271_platform_data { 11 struct cs4271_platform_data { 12 bool amutec_eq_bmutec; /* flag to ena 12 bool amutec_eq_bmutec; /* flag to enable AMUTEC=BMUTEC */ 13 13 14 /* 14 /* 15 * The CS4271 requires its LRCLK and M 15 * The CS4271 requires its LRCLK and MCLK to be stable before its RESET 16 * line is de-asserted. That also mean 16 * line is de-asserted. That also means that clocks cannot be changed 17 * without putting the chip back into 17 * without putting the chip back into hardware reset, which also requires 18 * a complete re-initialization of all 18 * a complete re-initialization of all registers. 19 * 19 * 20 * One (undocumented) workaround is to 20 * One (undocumented) workaround is to assert and de-assert the PDN bit 21 * in the MODE2 register. This workaro 21 * in the MODE2 register. This workaround can be enabled with the 22 * following flag. 22 * following flag. 23 * 23 * 24 * Note that this is not needed in cas 24 * Note that this is not needed in case the clocks are stable 25 * throughout the entire runtime of th 25 * throughout the entire runtime of the codec. 26 */ 26 */ 27 bool enable_soft_reset; 27 bool enable_soft_reset; 28 }; 28 }; 29 29 30 #endif /* __CS4271_H */ 30 #endif /* __CS4271_H */ 31 31
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.