habanalabs: Add descriptive names to PSOC scratch-pad registers
authorTomer Tayar <ttayar@habana.ai>
Thu, 1 Aug 2019 14:28:45 +0000 (14:28 +0000)
committerOded Gabbay <oded.gabbay@gmail.com>
Thu, 5 Sep 2019 11:55:26 +0000 (14:55 +0300)
commit4095a17657e4fcde9971d3313dbee05ab16e9e12
treef850bda12de799ed275c2f7e29243ec4a5ef1a4c
parent4d6a7751f6c376f8d20f46685fe87bc47557e233
habanalabs: Add descriptive names to PSOC scratch-pad registers

The PSOC scratch-pad registers are used for communication with the
device CPU. This patch adds new definitions for these registers which
are more descriptive than their general names.

The new set of definitions also gathers and documents the current usage
of the scratch-pad registers by the driver and the device CPU.

Signed-off-by: Tomer Tayar <ttayar@habana.ai>
Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com>
Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
drivers/misc/habanalabs/goya/goya.c
drivers/misc/habanalabs/include/goya/goya_reg_map.h [new file with mode: 0644]