15 #include <linux/stddef.h>
16 #include <linux/kernel.h>
18 #include <linux/errno.h>
22 #include <linux/export.h>
23 #include <linux/device.h>
39 #include <asm/machdep.h>
63 if (prop && size == 4)
80 static u32 sysfreq = -1;
96 if (!prop || size !=
sizeof(*prop) || *prop == 0)
99 if (prop && size ==
sizeof(*prop))
107 #if defined(CONFIG_CPM2) || defined(CONFIG_QUICC_ENGINE) || defined(CONFIG_8xx)
109 static u32 brgfreq = -1;
111 u32 get_brgfreq(
void)
114 const unsigned int *prop;
123 if (prop && size == 4)
139 if (prop && size == 4)
142 if (brgfreq == -1 || brgfreq == 0) {
144 if (prop && size == 4)
155 static u32 fs_baudrate = -1;
157 u32 get_baudrate(
void)
161 if (fs_baudrate != -1)
168 "current-speed", &size);
181 #ifdef CONFIG_FIXED_PHY
182 static int __init of_add_fixed_phys(
void)
189 for_each_node_by_name(np,
"ethernet") {
195 status.
duplex = fixed_link[1];
196 status.
speed = fixed_link[2];
197 status.
pause = fixed_link[3];
212 #if defined(CONFIG_FSL_SOC_BOOKE) || defined(CONFIG_PPC_86xx)
215 static int __init setup_rstcr(
void)
219 for_each_node_by_name(np,
"global-utilities") {
224 "register not mapped!\n");
229 if (!rstcr &&
ppc_md.restart == fsl_rstcr_restart)
240 void fsl_rstcr_restart(
char *
cmd)
251 #if defined(CONFIG_FB_FSL_DIU) || defined(CONFIG_FB_FSL_DIU_MODULE)
252 struct platform_diu_data_ops diu_ops;
266 fh_partition_restart(-1);
279 fh_partition_stop(-1);