1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Copyright 2017-2021 NXP 4 */ 5 6 #ifndef __FSL_RPMSG_H 7 #define __FSL_RPMSG_H 8 9 /* 10 * struct fsl_rpmsg - rpmsg private data 11 * 12 * @ipg: ipg clock for cpu dai (SAI) 13 * @mclk: master clock for cpu dai (SAI) 14 * @dma: clock for dma device 15 * @pll8k: parent clock for multiple of 8kHz frequency 16 * @pll11k: parent clock for multiple of 11kHz frequency 17 * @card_pdev: Platform_device pointer to register a sound card 18 * @mclk_streams: Active streams that are using baudclk 19 * @force_lpa: force enable low power audio routine if condition satisfy 20 * @enable_lpa: enable low power audio routine according to dts setting 21 * @buffer_size: pre allocated dma buffer size 22 */ 23 struct fsl_rpmsg { 24 struct clk *ipg; 25 struct clk *mclk; 26 struct clk *dma; 27 struct clk *pll8k; 28 struct clk *pll11k; 29 struct platform_device *card_pdev; 30 unsigned int mclk_streams; 31 int force_lpa; 32 int enable_lpa; 33 int buffer_size; 34 }; 35 #endif /* __FSL_RPMSG_H */ 36