Co-authored-by: Michal Lazo <michal.lazo@memsource.com>
Partially ported from @The-going work Signed-off-by: Igor Pecovnik <igor.pecovnik@gmail.com>