Lines Matching refs:sys_info
23 void get_sys_info(sys_info_t *sys_info) in get_sys_info() argument
34 sys_info->freq_systembus = 16 * CONFIG_SYS_CLK_FREQ; in get_sys_info()
46 sys_info->freq_systembus = plat_ratio * CONFIG_SYS_CLK_FREQ; in get_sys_info()
49 sys_info->freq_systembus = 0; in get_sys_info()
58 sys_info->freq_processor = 2 * sys_info->freq_systembus; in get_sys_info()
61 sys_info->freq_processor = 5 * sys_info->freq_systembus / 2; in get_sys_info()
64 sys_info->freq_processor = 3 * sys_info->freq_systembus; in get_sys_info()
67 sys_info->freq_processor = 7 * sys_info->freq_systembus / 2; in get_sys_info()
70 sys_info->freq_processor = 4 * sys_info->freq_systembus; in get_sys_info()
73 sys_info->freq_processor = 9 * sys_info->freq_systembus / 2; in get_sys_info()
76 sys_info->freq_processor = e600_ratio + in get_sys_info()
77 sys_info->freq_systembus; in get_sys_info()
81 sys_info->freq_localbus = sys_info->freq_systembus; in get_sys_info()
92 sys_info_t sys_info; in get_clocks() local
94 get_sys_info(&sys_info); in get_clocks()
95 gd->cpu_clk = sys_info.freq_processor; in get_clocks()
96 gd->bus_clk = sys_info.freq_systembus; in get_clocks()
97 gd->arch.lbc_clk = sys_info.freq_localbus; in get_clocks()
107 gd->arch.i2c1_clk = sys_info.freq_systembus; in get_clocks()
109 gd->arch.i2c1_clk = sys_info.freq_systembus / 2; in get_clocks()
128 sys_info_t sys_info; in get_bus_freq() local
130 get_sys_info(&sys_info); in get_bus_freq()
131 val = sys_info.freq_systembus; in get_bus_freq()