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 */
user3734979:
I2C同样有这个问题
Yonghua Pan:
回复 user3734979:
你也不一定需要保存camera的数据,一般的应用平时也可以直接关掉camera。