remoteproc: Support custom firmware handlers
authorSjur Brændeland <sjur.brandeland@stericsson.com>
Tue, 19 Jun 2012 07:08:18 +0000 (10:08 +0300)
committerOhad Ben-Cohen <ohad@wizery.com>
Sun, 15 Jul 2012 08:39:01 +0000 (11:39 +0300)
commit4afc89d66c60a372ec15e99eee93621f650b5d17
treea6e8c4cd9ea726de73e967b2f0372230ba73a550
parent72854fb042b15b6139031a59c4725b3d86708352
remoteproc: Support custom firmware handlers

Firmware handling is made customizable.
This is done by creating a separate ops structure for the
firmware functions that depends on a particular firmware
format (such as ELF). The ELF functions are default used
unless the HW driver explicitly injects another firmware
handler by updating rproc->fw_ops.
The function rproc_da_to_va() is exported, as custom
firmware handlers may need to use this function.

Signed-off-by: Sjur Brændeland <sjur.brandeland@stericsson.com>
[ohad: namespace fixes, whitespace fixes, style fixes]
Signed-off-by: Ohad Ben-Cohen <ohad@wizery.com>
drivers/remoteproc/remoteproc_core.c
drivers/remoteproc/remoteproc_elf_loader.c
drivers/remoteproc/remoteproc_internal.h
include/linux/remoteproc.h