drivers: esp32/clock_control: Add Clock Driver
- Support PLL for Higher Frequencies 80,160,240 MHz - Support XTAL Frequencies 26MHz, 40MHz - Clock Driver can't be disabled, because all of the other drivers will depend on it to get their operating Frequency based on chosen clock source (XTAL/PLL). - Add needed references to BBPLL i2c bus ROM functions. - Add `rtc` node to Device Tree. - Since All Peripherals Frequency is depending on CPU_CLK Source, `clock-source` property added to CPU node Signed-off-by: Mohamed ElShahawi <ExtremeGTX@hotmail.com>
This commit is contained in:
parent
5f3d999bb9
commit
4acac3e9ef
15 changed files with 550 additions and 2 deletions
|
@ -52,6 +52,7 @@ extern int esp32_rom_gpio_matrix_out(uint32_t gpio, uint32_t signal_index,
|
|||
bool out_enabled_inverted);
|
||||
|
||||
extern void esp32_rom_uart_attach(void);
|
||||
extern void esp32_rom_uart_tx_wait_idle(uint8_t uart_no);
|
||||
extern STATUS esp32_rom_uart_tx_one_char(uint8_t chr);
|
||||
extern STATUS esp32_rom_uart_rx_one_char(uint8_t *chr);
|
||||
|
||||
|
@ -59,4 +60,8 @@ extern void esp32_rom_Cache_Flush(int cpu);
|
|||
extern void esp32_rom_Cache_Read_Enable(int cpu);
|
||||
extern void esp32_rom_ets_set_appcpu_boot_addr(void *addr);
|
||||
|
||||
/* ROM functions which read/write internal i2c control bus for PLL, APLL */
|
||||
extern uint8_t esp32_rom_i2c_readReg(uint8_t block, uint8_t host_id, uint8_t reg_add);
|
||||
extern void esp32_rom_i2c_writeReg(uint8_t block, uint8_t host_id, uint8_t reg_add, uint8_t data);
|
||||
|
||||
#endif /* __SOC_H__ */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue