1 #include <linux/init.h>
2 #include <linux/reboot.h>
4 #include <asm/reboot.h>
7 static void adm8668_restart(char *cmd
)
12 for (i
= 0; i
< 1000; i
++)
14 ADM8668_CONFIG_REG(ADM8668_CR1
) = 1;
17 void __init
plat_mem_setup(void)
19 _machine_restart
= adm8668_restart
;
22 const char *get_system_type(void)
24 unsigned long chipid
= ADM8668_CONFIG_REG(ADM8668_CR0
);
25 int product
, revision
;
28 product
= chipid
>> 16;
29 revision
= chipid
& 0xffff;
31 /* i getting fancy :\ */
32 snprintf(ret
, sizeof(ret
), "ADM%xr%x", product
, revision
);