blob: 25b6c00b605117f8a715893deac6eeb87e9f3a00 [file] [log] [blame]
Shivaraj Shetty25b0aa02013-10-30 20:55:49 +05301/* Copyright (c) 2013-2014, The Linux Foundation. All rights reserved.
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -08002 *
3 * Redistribution and use in source and binary forms, with or without
4 * modification, are permitted provided that the following conditions are
5 * met:
6 * * Redistributions of source code must retain the above copyright
7 * notice, this list of conditions and the following disclaimer.
8 * * Redistributions in binary form must reproduce the above
9 * copyright notice, this list of conditions and the following
10 * disclaimer in the documentation and/or other materials provided
11 * with the distribution.
12 * * Neither the name of The Linux Foundation nor the names of its
13 * contributors may be used to endorse or promote products derived
14 * from this software without specific prior written permission.
15 *
16 * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED
17 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
18 * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT
19 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS
20 * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR
23 * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24 * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE
25 * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN
26 * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */
28
29#include <debug.h>
30#include <platform/iomap.h>
Channagoud Kadabi25e4d932013-05-10 17:54:29 -070031#include <platform/irqs.h>
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -080032#include <reg.h>
33#include <target.h>
34#include <platform.h>
35#include <uart_dm.h>
36#include <mmc.h>
Deepa Dinamani8ff46f02013-03-20 17:52:14 -070037#include <platform/gpio.h>
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -080038#include <spmi.h>
39#include <board.h>
Deepa Dinamani41803e02013-03-25 11:44:15 -070040#include <smem.h>
41#include <baseband.h>
Deepa Dinamani8ff46f02013-03-20 17:52:14 -070042#include <dev/keys.h>
43#include <pm8x41.h>
Deepa Dinamani98cf8ee2013-03-27 15:16:47 -070044#include <hsusb.h>
richardlb52d3f52013-04-12 17:37:28 -070045#include <kernel/thread.h>
Amol Jadif2139012013-08-23 18:44:10 -070046#include <arch/defines.h>
47#include <stdlib.h>
48#include <scm.h>
49#include <partition_parser.h>
50#include <platform/clock.h>
51#include <platform/timer.h>
Channagoud Kadabida988fd2013-12-04 13:44:42 -080052#include <crypto5_wrapper.h>
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -080053
54#define PMIC_ARB_CHANNEL_NUM 0
55#define PMIC_ARB_OWNER_ID 0
56
Channagoud Kadabida988fd2013-12-04 13:44:42 -080057#define CRYPTO_ENGINE_INSTANCE 1
58#define CRYPTO_ENGINE_EE 1
59#define CRYPTO_ENGINE_FIFO_SIZE 64
60#define CRYPTO_ENGINE_READ_PIPE 3
61#define CRYPTO_ENGINE_WRITE_PIPE 2
62#define CRYPTO_READ_PIPE_LOCK_GRP 0
63#define CRYPTO_WRITE_PIPE_LOCK_GRP 0
64#define CRYPTO_ENGINE_CMD_ARRAY_SIZE 20
65
Deepa Dinamani8ff46f02013-03-20 17:52:14 -070066#define TLMM_VOL_UP_BTN_GPIO 72
67
Maria Yu00fd3822013-06-26 10:12:54 +080068enum target_subtype {
69 HW_PLATFORM_SUBTYPE_SKUAA = 1,
70 HW_PLATFORM_SUBTYPE_SKUF = 2,
71 HW_PLATFORM_SUBTYPE_SKUAB = 3,
72};
73
Channagoud Kadabi25e4d932013-05-10 17:54:29 -070074static void set_sdc_power_ctrl(void);
75
76static uint32_t mmc_pwrctl_base[] =
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -080077 { MSM_SDC1_BASE, MSM_SDC2_BASE };
78
Channagoud Kadabi25e4d932013-05-10 17:54:29 -070079static uint32_t mmc_sdhci_base[] =
80 { MSM_SDC1_SDHCI_BASE, MSM_SDC2_SDHCI_BASE };
81
82static uint32_t mmc_sdc_pwrctl_irq[] =
83 { SDCC1_PWRCTL_IRQ, SDCC2_PWRCTL_IRQ };
84
85struct mmc_device *dev;
86
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -080087void target_early_init(void)
88{
89#if WITH_DEBUG_UART
Deepa Dinamanid1823b42013-03-21 11:49:35 -070090 uart_dm_init(2, 0, BLSP1_UART1_BASE);
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -080091#endif
92}
93
Deepa Dinamani8ff46f02013-03-20 17:52:14 -070094/* Return 1 if vol_up pressed */
95static int target_volume_up()
96{
97 uint8_t status = 0;
98
99 gpio_tlmm_config(TLMM_VOL_UP_BTN_GPIO, 0, GPIO_INPUT, GPIO_PULL_UP, GPIO_2MA, GPIO_ENABLE);
100
richardlb52d3f52013-04-12 17:37:28 -0700101 /* Wait for the configuration to complete.*/
102 thread_sleep(1);
Deepa Dinamani8ff46f02013-03-20 17:52:14 -0700103 /* Get status of GPIO */
104 status = gpio_status(TLMM_VOL_UP_BTN_GPIO);
105
106 /* Active low signal. */
107 return !status;
108}
109
110/* Return 1 if vol_down pressed */
111uint32_t target_volume_down()
112{
113 /* Volume down button tied in with PMIC RESIN. */
114 return pm8x41_resin_status();
115}
116
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -0800117static void target_keystatus()
118{
Deepa Dinamani8ff46f02013-03-20 17:52:14 -0700119 keys_init();
120
121 if(target_volume_down())
122 keys_post_event(KEY_VOLUMEDOWN, 1);
123
124 if(target_volume_up())
125 keys_post_event(KEY_VOLUMEUP, 1);
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -0800126}
127
Channagoud Kadabi25e4d932013-05-10 17:54:29 -0700128void target_sdc_init()
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -0800129{
Channagoud Kadabi25e4d932013-05-10 17:54:29 -0700130 struct mmc_config_data config;
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -0800131
Channagoud Kadabi25e4d932013-05-10 17:54:29 -0700132 /* Set drive strength & pull ctrl values */
133 set_sdc_power_ctrl();
Deepa Dinamani8ff46f02013-03-20 17:52:14 -0700134
Channagoud Kadabi25e4d932013-05-10 17:54:29 -0700135 config.bus_width = DATA_BUS_WIDTH_8BIT;
136 config.max_clk_rate = MMC_CLK_200MHZ;
137
138 /* Try slot 1*/
139 config.slot = 1;
140 config.sdhc_base = mmc_sdhci_base[config.slot - 1];
141 config.pwrctl_base = mmc_pwrctl_base[config.slot - 1];
142 config.pwr_irq = mmc_sdc_pwrctl_irq[config.slot - 1];
143
144 if (!(dev = mmc_init(&config)))
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -0800145 {
Channagoud Kadabi25e4d932013-05-10 17:54:29 -0700146 /* Try slot 2 */
147 config.slot = 2;
148 config.sdhc_base = mmc_sdhci_base[config.slot - 1];
149 config.pwrctl_base = mmc_pwrctl_base[config.slot - 1];
150 config.pwr_irq = mmc_sdc_pwrctl_irq[config.slot - 1];
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -0800151
Channagoud Kadabi25e4d932013-05-10 17:54:29 -0700152 if (!(dev = mmc_init(&config)))
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -0800153 {
154 dprintf(CRITICAL, "mmc init failed!");
155 ASSERT(0);
156 }
157 }
Channagoud Kadabi25e4d932013-05-10 17:54:29 -0700158
159 /* MMC initialization is complete, read the partition table info */
160 if (partition_read_table())
161 {
162 dprintf(CRITICAL, "Error reading the partition table info\n");
163 ASSERT(0);
164 }
165}
166
167void target_init(void)
168{
169 dprintf(INFO, "target_init()\n");
170
171 spmi_init(PMIC_ARB_CHANNEL_NUM, PMIC_ARB_OWNER_ID);
172
173 target_keystatus();
174
175 target_sdc_init();
Aparna Mallavarapu6fe7a902013-09-11 20:19:11 +0530176
Channagoud Kadabida988fd2013-12-04 13:44:42 -0800177 if (target_use_signed_kernel())
178 target_crypto_init_params();
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -0800179}
180
Aparna Mallavarapu2ce9f762013-07-30 15:29:12 +0530181void target_uninit(void)
182{
Channagoud Kadabid93cb812013-12-04 16:37:32 -0800183 mmc_put_card_to_sleep(dev);
184
185 if (crypto_initialized())
186 crypto_eng_cleanup();
Aparna Mallavarapu2ce9f762013-07-30 15:29:12 +0530187}
Amol Jadif2139012013-08-23 18:44:10 -0700188
189#define SSD_CE_INSTANCE 1
190
191void target_load_ssd_keystore(void)
192{
193 uint64_t ptn;
194 int index;
195 uint64_t size;
196 uint32_t *buffer;
197
198 if (!target_is_ssd_enabled())
199 return;
200
201 index = partition_get_index("ssd");
202
203 ptn = partition_get_offset(index);
204 if (ptn == 0){
205 dprintf(CRITICAL, "Error: ssd partition not found\n");
206 return;
207 }
208
209 size = partition_get_size(index);
210 if (size == 0) {
211 dprintf(CRITICAL, "Error: invalid ssd partition size\n");
212 return;
213 }
214
215 buffer = memalign(CACHE_LINE, ROUNDUP(size, CACHE_LINE));
216 if (!buffer) {
217 dprintf(CRITICAL, "Error: allocating memory for ssd buffer\n");
218 return;
219 }
220
221 if (mmc_read(ptn, buffer, size)) {
222 dprintf(CRITICAL, "Error: cannot read data\n");
223 free(buffer);
224 return;
225 }
226
227 clock_ce_enable(SSD_CE_INSTANCE);
228 scm_protect_keystore(buffer, size);
229 clock_ce_disable(SSD_CE_INSTANCE);
230 free(buffer);
231}
232
Deepa Dinamani2b795bb2013-03-25 11:31:58 -0700233/* Do any target specific intialization needed before entering fastboot mode */
234void target_fastboot_init(void)
235{
236 /* Set the BOOT_DONE flag in PM8110 */
237 pm8x41_set_boot_done();
Amol Jadif2139012013-08-23 18:44:10 -0700238
239 if (target_is_ssd_enabled()) {
240 clock_ce_enable(SSD_CE_INSTANCE);
241 target_load_ssd_keystore();
242 }
243
Deepa Dinamani2b795bb2013-03-25 11:31:58 -0700244}
245
Deepa Dinamani41803e02013-03-25 11:44:15 -0700246/* Detect the target type */
247void target_detect(struct board_data *board)
248{
Maria Yuca51ee22013-06-27 21:45:24 +0800249 /*
250 * already fill the board->target on board.c
251 */
252
Deepa Dinamani41803e02013-03-25 11:44:15 -0700253}
254
255/* Detect the modem type */
256void target_baseband_detect(struct board_data *board)
257{
258 uint32_t platform;
259 uint32_t platform_subtype;
260
261 platform = board->platform;
262 platform_subtype = board->platform_subtype;
263
264 /*
265 * Look for platform subtype if present, else
266 * check for platform type to decide on the
267 * baseband type
268 */
269 switch(platform_subtype)
270 {
271 case HW_PLATFORM_SUBTYPE_UNKNOWN:
272 break;
Maria Yu00fd3822013-06-26 10:12:54 +0800273 case HW_PLATFORM_SUBTYPE_SKUAA:
274 break;
275 case HW_PLATFORM_SUBTYPE_SKUF:
276 break;
277 case HW_PLATFORM_SUBTYPE_SKUAB:
278 break;
Deepa Dinamani41803e02013-03-25 11:44:15 -0700279 default:
280 dprintf(CRITICAL, "Platform Subtype : %u is not supported\n", platform_subtype);
281 ASSERT(0);
282 };
283
284 switch(platform)
285 {
286 case MSM8610:
287 case MSM8110:
288 case MSM8210:
289 case MSM8810:
Deepa Dinamani39345cd2013-04-08 19:46:53 -0700290 case MSM8612:
David Ng2de18062013-04-19 20:22:16 -0700291 case MSM8212:
292 case MSM8812:
Deepa Dinamania8206cc2013-09-12 11:02:34 -0700293 case MSM8510:
294 case MSM8512:
Deepa Dinamani41803e02013-03-25 11:44:15 -0700295 board->baseband = BASEBAND_MSM;
296 break;
297 default:
298 dprintf(CRITICAL, "Platform type: %u is not supported\n", platform);
299 ASSERT(0);
300 };
301}
302
303unsigned target_baseband()
304{
305 return board_baseband();
306}
307
Deepa Dinamania6d1b752013-03-25 11:47:20 -0700308void target_serialno(unsigned char *buf)
309{
310 uint32_t serialno;
311 if (target_is_emmc_boot()) {
312 serialno = mmc_get_psn();
313 snprintf((char *)buf, 13, "%x", serialno);
314 }
315}
316
Deepa Dinamani5390e102013-03-25 11:55:31 -0700317unsigned check_reboot_mode(void)
318{
319 uint32_t restart_reason = 0;
320
321 /* Read reboot reason and scrub it */
322 restart_reason = readl(RESTART_REASON_ADDR);
323 writel(0x00, RESTART_REASON_ADDR);
324
325 return restart_reason;
326}
327
Deepa Dinamani172b7e62013-03-25 11:59:21 -0700328void reboot_device(unsigned reboot_reason)
329{
Channagoud Kadabi87306302013-12-12 14:55:47 -0800330 int ret = 0;
331
Deepa Dinamani172b7e62013-03-25 11:59:21 -0700332 writel(reboot_reason, RESTART_REASON_ADDR);
333
334 /* Configure PMIC for warm reset */
335 pm8x41_reset_configure(PON_PSHOLD_WARM_RESET);
336
Channagoud Kadabi87306302013-12-12 14:55:47 -0800337 ret = scm_halt_pmic_arbiter();
338 if (ret)
339 dprintf(CRITICAL , "Failed to halt pmic arbiter: %d\n", ret);
340
Deepa Dinamani172b7e62013-03-25 11:59:21 -0700341 /* Drop PS_HOLD for MSM */
342 writel(0x00, MPM2_MPM_PS_HOLD);
343
344 mdelay(5000);
345
346 dprintf(CRITICAL, "Rebooting failed\n");
347}
348
Shivaraj Shetty25b0aa02013-10-30 20:55:49 +0530349/* Returns 1 if autopanel detection is enabled for the target. */
350uint8_t target_panel_auto_detect_enabled()
Terence Hampsonafded262013-06-18 14:48:18 -0400351{
352 int ret = 0;
Shuo Yanb757da82013-08-09 08:58:24 +0800353
Terence Hampsonafded262013-06-18 14:48:18 -0400354 switch(board_hardware_id())
355 {
Terence Hampson0e2f6552013-07-09 15:45:37 -0400356 case HW_PLATFORM_MTP:
357 case HW_PLATFORM_SURF:
Shivaraj Shetty25b0aa02013-10-30 20:55:49 +0530358 case HW_PLATFORM_QRD:
Terence Hampsonafded262013-06-18 14:48:18 -0400359 default:
Shivaraj Shetty25b0aa02013-10-30 20:55:49 +0530360 dprintf(SPEW, "Panel auto-detection is disabled\n");
Terence Hampsonafded262013-06-18 14:48:18 -0400361 ret = 0;
362 }
363 return ret;
364}
365
Shivaraj Shetty25b0aa02013-10-30 20:55:49 +0530366static uint8_t splash_override;
367
368/* Returns 1 if target supports continuous splash screen. */
369int target_cont_splash_screen()
370{
371 uint8_t splash_screen = 0;
372 if(!splash_override) {
373 switch(board_hardware_id())
374 {
375 case HW_PLATFORM_QRD:
376 case HW_PLATFORM_MTP:
377 case HW_PLATFORM_SURF:
378 dprintf(SPEW, "Target_cont_splash=1\n");
379 splash_screen = 1;
380 break;
381 default:
382 dprintf(SPEW, "Target_cont_splash=0\n");
383 splash_screen = 0;
384 }
385 }
386 return splash_screen;
387}
388
389void target_force_cont_splash_disable(uint8_t override)
390{
391 splash_override = override;
392}
393
Deepa Dinamani004eb322013-03-25 13:20:50 -0700394unsigned target_pause_for_battery_charge(void)
395{
396 uint8_t pon_reason = pm8x41_get_pon_reason();
Xu Kaic2e0afc2013-07-19 13:26:36 +0800397 uint8_t is_cold_boot = pm8x41_get_is_cold_boot();
398 dprintf(INFO, "%s : pon_reason is %d cold_boot:%d\n", __func__,
399 pon_reason, is_cold_boot);
400 /*In case of fastboot reboot, adb reboot or if we see the power key
401 * pressed we do not want go into charger mode.
402 * fastboot reboot is warm boot with PON hard reset bit not set
403 * adb reboot is a cold boot with PON hard reset bit set
Deepa Dinamani004eb322013-03-25 13:20:50 -0700404 */
Xu Kaic2e0afc2013-07-19 13:26:36 +0800405 if (is_cold_boot &&
406 (!(pon_reason & HARD_RST)) &&
407 (!(pon_reason & KPDPWR_N)) &&
408 ((pon_reason & USB_CHG) || (pon_reason & DC_CHG)))
409 return 1;
410 else
411 return 0;
Deepa Dinamani004eb322013-03-25 13:20:50 -0700412}
413
Deepa Dinamani98cf8ee2013-03-27 15:16:47 -0700414void target_usb_stop(void)
415{
416 /* Disable VBUS mimicing in the controller. */
417 ulpi_write(ULPI_MISC_A_VBUSVLDEXTSEL | ULPI_MISC_A_VBUSVLDEXT, ULPI_MISC_A_CLEAR);
418}
419
420void target_usb_init(void)
421{
422 uint32_t val;
423
424 /* Select and enable external configuration with USB PHY */
425 ulpi_write(ULPI_MISC_A_VBUSVLDEXTSEL | ULPI_MISC_A_VBUSVLDEXT, ULPI_MISC_A_SET);
426
427 /* Enable sess_vld */
428 val = readl(USB_GENCONFIG_2) | GEN2_SESS_VLD_CTRL_EN;
429 writel(val, USB_GENCONFIG_2);
430
431 /* Enable external vbus configuration in the LINK */
432 val = readl(USB_USBCMD);
433 val |= SESS_VLD_CTRL;
434 writel(val, USB_USBCMD);
435}
436
437
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -0800438unsigned board_machtype(void)
439{
Deepa Dinamani2b795bb2013-03-25 11:31:58 -0700440 return 0;
Deepa Dinamani7dc3d4b2013-02-08 16:40:38 -0800441}
Channagoud Kadabie1b75262013-05-08 12:58:39 -0700442
Channagoud Kadabi25e4d932013-05-10 17:54:29 -0700443static void set_sdc_power_ctrl()
Channagoud Kadabie1b75262013-05-08 12:58:39 -0700444{
Channagoud Kadabid2fbf572013-11-07 11:33:50 -0800445 uint8_t data_hdrv = 0;
446 uint32_t platform = board_platform_id();
447
448 if (platform == MSM8510 || platform == MSM8512)
449 data_hdrv = TLMM_CUR_VAL_6MA;
450 else
451 data_hdrv = TLMM_CUR_VAL_10MA;
452
Channagoud Kadabi25e4d932013-05-10 17:54:29 -0700453 /* Drive strength configs for sdc pins */
454 struct tlmm_cfgs sdc1_hdrv_cfg[] =
455 {
456 { SDC1_CLK_HDRV_CTL_OFF, TLMM_CUR_VAL_16MA, TLMM_HDRV_MASK },
457 { SDC1_CMD_HDRV_CTL_OFF, TLMM_CUR_VAL_10MA, TLMM_HDRV_MASK },
Channagoud Kadabid2fbf572013-11-07 11:33:50 -0800458 { SDC1_DATA_HDRV_CTL_OFF, data_hdrv, TLMM_HDRV_MASK },
Channagoud Kadabi25e4d932013-05-10 17:54:29 -0700459 };
460
461 /* Pull configs for sdc pins */
462 struct tlmm_cfgs sdc1_pull_cfg[] =
463 {
464 { SDC1_CLK_PULL_CTL_OFF, TLMM_NO_PULL, TLMM_PULL_MASK },
465 { SDC1_CMD_PULL_CTL_OFF, TLMM_PULL_UP, TLMM_PULL_MASK },
466 { SDC1_DATA_PULL_CTL_OFF, TLMM_PULL_UP, TLMM_PULL_MASK },
467 };
468
469 /* Set the drive strength & pull control values */
470 tlmm_set_hdrive_ctrl(sdc1_hdrv_cfg, ARRAY_SIZE(sdc1_hdrv_cfg));
471 tlmm_set_pull_ctrl(sdc1_pull_cfg, ARRAY_SIZE(sdc1_pull_cfg));
472}
473
Channagoud Kadabif59e4672013-09-10 14:24:43 -0700474void *target_mmc_device()
Channagoud Kadabi25e4d932013-05-10 17:54:29 -0700475{
Channagoud Kadabif59e4672013-09-10 14:24:43 -0700476 return (void *) dev;
Channagoud Kadabie1b75262013-05-08 12:58:39 -0700477}
Channagoud Kadabida988fd2013-12-04 13:44:42 -0800478
479/* Set up params for h/w CRYPTO_ENGINE. */
480void target_crypto_init_params()
481{
482 struct crypto_init_params ce_params;
483
484 /* Set up base addresses and instance. */
485 ce_params.crypto_instance = CRYPTO_ENGINE_INSTANCE;
486 ce_params.crypto_base = MSM_CE1_BASE;
487 ce_params.bam_base = MSM_CE1_BAM_BASE;
488
489 /* Set up BAM config. */
490 ce_params.bam_ee = CRYPTO_ENGINE_EE;
491 ce_params.pipes.read_pipe = CRYPTO_ENGINE_READ_PIPE;
492 ce_params.pipes.write_pipe = CRYPTO_ENGINE_WRITE_PIPE;
493 ce_params.pipes.read_pipe_grp = CRYPTO_READ_PIPE_LOCK_GRP;
494 ce_params.pipes.write_pipe_grp = CRYPTO_WRITE_PIPE_LOCK_GRP;
495
496 /* Assign buffer sizes. */
497 ce_params.num_ce = CRYPTO_ENGINE_CMD_ARRAY_SIZE;
498 ce_params.read_fifo_size = CRYPTO_ENGINE_FIFO_SIZE;
499 ce_params.write_fifo_size = CRYPTO_ENGINE_FIFO_SIZE;
500
501 ce_params.do_bam_init = 0;
502
503 crypto_init_params(&ce_params);
504}
505
506crypto_engine_type board_ce_type(void)
507{
508 return CRYPTO_ENGINE_TYPE_HW;
509}