Lines Matching refs:sys_info
21 void get_sys_info(sys_info_t *sys_info) in get_sys_info() argument
32 sys_info->freq_systembus = 16 * CONFIG_SYS_CLK_FREQ; in get_sys_info()
44 sys_info->freq_systembus = plat_ratio * CONFIG_SYS_CLK_FREQ; in get_sys_info()
47 sys_info->freq_systembus = 0; in get_sys_info()
56 sys_info->freq_processor = 2 * sys_info->freq_systembus; in get_sys_info()
59 sys_info->freq_processor = 5 * sys_info->freq_systembus / 2; in get_sys_info()
62 sys_info->freq_processor = 3 * sys_info->freq_systembus; in get_sys_info()
65 sys_info->freq_processor = 7 * sys_info->freq_systembus / 2; in get_sys_info()
68 sys_info->freq_processor = 4 * sys_info->freq_systembus; in get_sys_info()
71 sys_info->freq_processor = 9 * sys_info->freq_systembus / 2; in get_sys_info()
74 sys_info->freq_processor = e600_ratio + in get_sys_info()
75 sys_info->freq_systembus; in get_sys_info()
79 sys_info->freq_localbus = sys_info->freq_systembus; in get_sys_info()
90 sys_info_t sys_info; in get_clocks() local
92 get_sys_info(&sys_info); in get_clocks()
93 gd->cpu_clk = sys_info.freq_processor; in get_clocks()
94 gd->bus_clk = sys_info.freq_systembus; in get_clocks()
95 gd->arch.lbc_clk = sys_info.freq_localbus; in get_clocks()
105 gd->arch.i2c1_clk = sys_info.freq_systembus; in get_clocks()
107 gd->arch.i2c1_clk = sys_info.freq_systembus / 2; in get_clocks()
126 sys_info_t sys_info; in get_bus_freq() local
128 get_sys_info(&sys_info); in get_bus_freq()
129 val = sys_info.freq_systembus; in get_bus_freq()