1 /* SPDX-License-Identifier: GPL-2.0-or-later * << 2 /* 1 /* 3 * Definitions for CS4271 ASoC codec driver 2 * Definitions for CS4271 ASoC codec driver 4 * 3 * 5 * Copyright (c) 2010 Alexander Sverdlin <suba 4 * Copyright (c) 2010 Alexander Sverdlin <subaparts@yandex.ru> >> 5 * >> 6 * This program is free software; you can redistribute it and/or >> 7 * modify it under the terms of the GNU General Public License >> 8 * as published by the Free Software Foundation; either version 2 >> 9 * of the License, or (at your option) any later version. >> 10 * >> 11 * This program is distributed in the hope that it will be useful, >> 12 * but WITHOUT ANY WARRANTY; without even the implied warranty of >> 13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >> 14 * GNU General Public License for more details. 6 */ 15 */ 7 16 8 #ifndef __CS4271_H 17 #ifndef __CS4271_H 9 #define __CS4271_H 18 #define __CS4271_H 10 19 11 struct cs4271_platform_data { 20 struct cs4271_platform_data { >> 21 int gpio_nreset; /* GPIO driving Reset pin, if any */ 12 bool amutec_eq_bmutec; /* flag to ena 22 bool amutec_eq_bmutec; /* flag to enable AMUTEC=BMUTEC */ 13 23 14 /* 24 /* 15 * The CS4271 requires its LRCLK and M 25 * The CS4271 requires its LRCLK and MCLK to be stable before its RESET 16 * line is de-asserted. That also mean 26 * line is de-asserted. That also means that clocks cannot be changed 17 * without putting the chip back into 27 * without putting the chip back into hardware reset, which also requires 18 * a complete re-initialization of all 28 * a complete re-initialization of all registers. 19 * 29 * 20 * One (undocumented) workaround is to 30 * One (undocumented) workaround is to assert and de-assert the PDN bit 21 * in the MODE2 register. This workaro 31 * in the MODE2 register. This workaround can be enabled with the 22 * following flag. 32 * following flag. 23 * 33 * 24 * Note that this is not needed in cas 34 * Note that this is not needed in case the clocks are stable 25 * throughout the entire runtime of th 35 * throughout the entire runtime of the codec. 26 */ 36 */ 27 bool enable_soft_reset; 37 bool enable_soft_reset; 28 }; 38 }; 29 39 30 #endif /* __CS4271_H */ 40 #endif /* __CS4271_H */ 31 41
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.