/* this may be called only from board-*.c setup code */ int __init tusb6010_setup_interface(struct musb_hdrc_platform_data *data, unsignedint ps_refclk, unsignedint waitpin, unsignedint async, unsignedint sync, unsignedint dmachan)
{ int status; staticchar error[] __initdata =
KERN_ERR "tusb6010 init error %d, %d\n";
/* ASYNC region, primarily for PIO */
status = gpmc_cs_request(async, SZ_16M, (unsignedlong *)
&tusb_resources[0].start); if (status < 0) {
printk(error, 1, status); return status;
}
tusb_resources[0].end = tusb_resources[0].start + 0x9ff;
tusb_async.wait_pin = waitpin;
async_cs = async;
status = gpmc_cs_program_settings(async_cs, &tusb_async); if (status < 0) return status;
status = gpmc_cs_program_settings(sync_cs, &tusb_sync); if (status < 0) return status;
/* set up memory timings ... can speed them up later */ if (!ps_refclk) {
printk(error, 4, status); return -ENODEV;
}
refclk_psec = ps_refclk;
status = tusb6010_platform_retime(1); if (status < 0) {
printk(error, 5, status); return status;
}
/* so far so good ... register the device */
status = platform_device_register(&tusb_device); if (status < 0) {
printk(error, 7, status); return status;
} return 0;
}
Messung V0.5
¤ Dauer der Verarbeitung: 0.8 Sekunden
(vorverarbeitet)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.