ipa: rkisp1: Fail on init if hw revision is not RKISP1_V10

In kernel 5.11 the rkisp1 uapi had changed to support different hardware
revisions. Currently only revision 10 is supported by the rkisp1 IPA and
therefore 'init' should fail if the revision is not 10.

This changes depends on the kernel driver reporting the hardware
revision, and thus requires the rkisp1 driver from v5.11 or newer.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Dafna Hirschfeld
2021-03-09 07:38:29 +01:00
committed by Laurent Pinchart
parent f4fe8cf588
commit e32d33b11d
3 changed files with 30 additions and 9 deletions
+1 -1
View File
@@ -25,7 +25,7 @@ struct RkISP1Action {
};
interface IPARkISP1Interface {
init(IPASettings settings) => (int32 ret);
init(uint32 hwRevision) => (int32 ret);
start() => (int32 ret);
stop();