mirror of
https://github.com/torvalds/linux.git
synced 2026-04-18 14:53:58 -04:00
crypto: inside-secure - Expand soc data structure
Currently platform data is assigned directly to version string(instead of struct). To make it more scalable, we move it to use data struct instead. This allows customization for individual platforms other than version string. Signed-off-by: Peter Harliman Liem <pliem@maxlinear.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
This commit is contained in:
committed by
Herbert Xu
parent
224f3a050e
commit
22044d9b04
@@ -733,6 +733,10 @@ enum safexcel_eip_version {
|
||||
EIP197_DEVBRD
|
||||
};
|
||||
|
||||
struct safexcel_priv_data {
|
||||
enum safexcel_eip_version version;
|
||||
};
|
||||
|
||||
/* Priority we use for advertising our algorithms */
|
||||
#define SAFEXCEL_CRA_PRIORITY 300
|
||||
|
||||
@@ -815,7 +819,7 @@ struct safexcel_crypto_priv {
|
||||
struct clk *reg_clk;
|
||||
struct safexcel_config config;
|
||||
|
||||
enum safexcel_eip_version version;
|
||||
struct safexcel_priv_data *data;
|
||||
struct safexcel_register_offsets offsets;
|
||||
struct safexcel_hwconfig hwconfig;
|
||||
u32 flags;
|
||||
|
||||
Reference in New Issue
Block a user