idle_profile例程中,
// structure conatining general information of the all the modules associated
// with power mgmt. framework
struct soc_module modules[ ] = {
/* ----------- Mandatory for Link SPI for networking ----------*/
{
PRCM_LSPI, /* Module ID */
LSPI_BASE, /* Base Addr */
INT_LSPI, /* Interrupt */
e_freq_mhz80, /* Frequency */
(volatile unsigned long*)(ARCM_BASE +
APPS_RCM_O_MCSPI_A2_CLK_GATING), /* Clock Reg */
e_pm_S1, /* Lowest PM */
&link_spi_settings, /* Specifics */
NULL, /* SW Driver */
NULL, /* Next item */
clk_enbl_op, /* Clk en op */
clk_dsbl_op, /* Clk ds op */
spi_driver_load /* Driver LD */
},
/* ----------- Add any application specific modules here ----------*/
{
PRCM_UARTA1, /* Module ID */
UARTA1_BASE, /* Base Addr */
INT_UARTA1, /* Interrupt */
e_freq_mhz80, /* Frequency */
(volatile unsigned long*)(ARCM_BASE +
APPS_RCM_O_UART_A1_CLK_GATING), /* Clock Reg */
e_pm_S1, /* Lowest PM */
&uart_settings, /* Specifics */
NULL, /* SW Driver */
NULL, /* Next item */
clk_enbl_op, /* Clk en op */
clk_dsbl_op, /* Clk ds op */
uart_driver_load /* Driver LD */
}
};
这里保存了2个外设的数据,现在我需要再额外保存Camera外设中的配置数据,但是没有找到类似的结构,如何解决这个问题?
&link_spi_settings, /* Specifics */