17 #include <linux/ptrace.h>
19 #include <asm/reboot.h>
20 #include <asm/traps.h>
28 static void __init tx4927_wdr_init(
void)
32 pr_warning(
"Watchdog reset detected at 0x%lx\n",
45 static void tx4927_machine_restart(
char *
command)
48 pr_emerg(
"Rebooting (with %s watchdog reset)...\n",
50 "external" :
"internal");
58 pr_emerg(
"Rebooting (with internal watchdog reset)...\n");
67 static int tx4927_be_handler(
struct pt_regs *
regs,
int is_fixup)
71 pr_err(
"%cBE exception at %#lx\n", data ?
'D' :
'I', regs->
cp0_epc);
72 pr_err(
"ccfg:%llx, toea:%llx\n",
81 static void __init tx4927_be_init(
void)
86 static struct resource tx4927_sdram_resource[4];
92 unsigned int cpuclk = 0;
100 for (i = 0; i < 8; i++) {
186 printk(
KERN_INFO "%s -- %dMHz(M%dMHz) CRIR:%08x CCFG:%llx PCFG:%llx\n",
188 (cpuclk + 500000) / 1000000,
195 for (i = 0; i < 4; i++) {
198 if (!((
__u32)cr & 0x00000400))
200 base = (
unsigned long)(cr >> 49) << 21;
201 size = (((
unsigned long)(cr >> 33) & 0x7fff) + 1) << 21;
202 printk(
" CR%d:%016llx", i, (
unsigned long long)cr);
203 tx4927_sdram_resource[
i].name =
"SDRAM";
204 tx4927_sdram_resource[
i].start = base;
205 tx4927_sdram_resource[
i].end = base + size - 1;
238 for (i = 0; i < 2; i++)
241 i, sclk, (1 << i) & cts_mask);
261 .have_64bit_regs =
true,
269 unsigned int dma_chan_in)
272 __u64 dmasel_mask = 0, dmasel = 0;
278 switch (dma_chan_out) {
290 switch (dma_chan_in) {
308 0, dma_chan_out, dma_chan_in);
311 static void __init tx4927_stop_unused_modules(
void)
333 static int __init tx4927_late_init(
void)
337 tx4927_stop_unused_modules();