11 #include <linux/errno.h>
12 #include <linux/kernel.h>
13 #include <linux/types.h>
15 #include <mach/hardware.h>
35 int peripheralid2 = 0;
37 if (
NULL == device_data)
114 u32 *control_register)
118 if (
NULL == device_data ||
NULL == cryp_config)
127 cr_for_kse = *control_register;
149 writel_relaxed(cr_for_kse, &device_data->
base->cr);
169 if (
NULL == p_protect_config)
218 switch (key_reg_index) {
221 &device_data->
base->key_1_l);
223 &device_data->
base->key_1_r);
227 &device_data->
base->key_2_l);
229 &device_data->
base->key_2_r);
233 &device_data->
base->key_3_l);
235 &device_data->
base->key_3_r);
239 &device_data->
base->key_4_l);
241 &device_data->
base->key_4_r);
265 switch (init_vector_index) {
268 &device_data->
base->init_vect_0_l);
270 &device_data->
base->init_vect_0_r);
274 &device_data->
base->init_vect_1_l);
276 &device_data->
base->init_vect_1_r);