Exemplo n.º 1
0
static int __init rproc_init(void) {

  printk(KERN_ALERT "Start remote Cortex M3 system\n");

  //rproc_get_by_name will load /lib/firmware/ducati-m3-core0.xem3 to the first M3 core.

  dummy_rproc = rproc_get_by_name("ipu_c0");
  if (!dummy_rproc) {
    printk(KERN_ALERT "Can not load the image to M3\n");
  }
  return 0;
}
Exemplo n.º 2
0
static int rproc_init(void) {
  void *my_rproc;

  printk(KERN_ALERT "Booting processor\n");

  /* let's power on and boot the image processing unit */
  my_rproc = rproc_get_by_name("ipu_c0");
  if (!my_rproc) {
    /*
     * something went wrong. handle it and leave.
     */
    printk(KERN_ALERT "Something went wrong\n");
  }

  /*
   * the 'ipu' remote processor is now powered on, and we have a
   * valid handle.... let it work !
   */

  return 0;
}