mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-18 06:58:54 +00:00
arm: socfpga: clock: Get rid of cm_config_t typedef
Get rid of this cryptic typedef and replace it with explicit struct cm_config. Signed-off-by: Marek Vasut <marex@denx.de>
This commit is contained in:
parent
34122eb262
commit
163ee7d9d2
3 changed files with 5 additions and 5 deletions
|
@ -88,7 +88,7 @@ static void cm_write_with_phase(uint32_t value,
|
||||||
* Ungate clocks
|
* Ungate clocks
|
||||||
*/
|
*/
|
||||||
|
|
||||||
void cm_basic_init(const cm_config_t *cfg)
|
void cm_basic_init(const struct cm_config *cfg)
|
||||||
{
|
{
|
||||||
uint32_t start, timeout;
|
uint32_t start, timeout;
|
||||||
|
|
||||||
|
|
|
@ -17,7 +17,7 @@ unsigned int cm_get_qspi_controller_clk_hz(void);
|
||||||
unsigned int cm_get_spi_controller_clk_hz(void);
|
unsigned int cm_get_spi_controller_clk_hz(void);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
typedef struct {
|
struct cm_config {
|
||||||
/* main group */
|
/* main group */
|
||||||
uint32_t main_vco_base;
|
uint32_t main_vco_base;
|
||||||
uint32_t mpuclk;
|
uint32_t mpuclk;
|
||||||
|
@ -49,9 +49,9 @@ typedef struct {
|
||||||
uint32_t ddr2xdqsclk;
|
uint32_t ddr2xdqsclk;
|
||||||
uint32_t ddrdqclk;
|
uint32_t ddrdqclk;
|
||||||
uint32_t s2fuser2clk;
|
uint32_t s2fuser2clk;
|
||||||
} cm_config_t;
|
};
|
||||||
|
|
||||||
extern void cm_basic_init(const cm_config_t *cfg);
|
extern void cm_basic_init(const struct cm_config *cfg);
|
||||||
|
|
||||||
struct socfpga_clock_manager_main_pll {
|
struct socfpga_clock_manager_main_pll {
|
||||||
u32 vco;
|
u32 vco;
|
||||||
|
|
|
@ -85,7 +85,7 @@ void spl_board_init(void)
|
||||||
{
|
{
|
||||||
unsigned long sdram_size;
|
unsigned long sdram_size;
|
||||||
#ifndef CONFIG_SOCFPGA_VIRTUAL_TARGET
|
#ifndef CONFIG_SOCFPGA_VIRTUAL_TARGET
|
||||||
cm_config_t cm_default_cfg = {
|
struct cm_config cm_default_cfg = {
|
||||||
/* main group */
|
/* main group */
|
||||||
MAIN_VCO_BASE,
|
MAIN_VCO_BASE,
|
||||||
(CONFIG_HPS_MAINPLLGRP_MPUCLK_CNT <<
|
(CONFIG_HPS_MAINPLLGRP_MPUCLK_CNT <<
|
||||||
|
|
Loading…
Add table
Reference in a new issue