1 /**
2   ******************************************************************************
3   * @file    rtl8721dlp_intfcfg.c
4   * @author
5   * @version V1.0.0
6   * @date    2016-05-17
7   * @brief   This file provides firmware functions to manage the following
8   *          functionalities:
9   *           - uart mbed function config
10   ******************************************************************************
11   * @attention
12   *
13   * This module is a confidential and proprietary property of RealTek and
14   * possession or use of this module requires written permission of RealTek.
15   *
16   * Copyright(c) 2015, Realtek Semiconductor Corporation. All rights reserved.
17   ******************************************************************************
18   */
19 
20 #include "ameba_soc.h"
21 #include "autoconf.h"
22 
23 
24 PSRAMCFG_TypeDef psram_dev_config = {
25 #if defined(CONFIG_REPEATER) && CONFIG_REPEATER
26 	.psram_dev_enable = TRUE,			//enable psram
27 	.psram_dev_cal_enable = TRUE,			//enable psram calibration function
28 	.psram_dev_retention = TRUE,			//enable psram retention
29 #else
30 	.psram_dev_enable = TRUE,			//enable psram
31 	.psram_dev_cal_enable = TRUE,			//enable psram calibration function
32 	.psram_dev_retention = TRUE,			//enable psram retention
33 #endif
34 };
35 
36 SDIOHCFG_TypeDef sdioh_config = {
37 	.sdioh_bus_speed = SD_SPEED_HS,				//SD_SPEED_DS or SD_SPEED_HS
38 	.sdioh_bus_width = SDIOH_BUS_WIDTH_4BIT, 	//SDIOH_BUS_WIDTH_1BIT or SDIOH_BUS_WIDTH_4BIT
39 	.sdioh_cd_pin = _PB_25,						//_PB_25/_PA_6/_PNC
40 	.sdioh_wp_pin = _PNC,						//_PB_24/_PA_5/_PNC
41 };
42 
43 #if defined(CONFIG_FTL_ENABLED)
44 #define FTL_MEM_CUSTEM		1
45 #if FTL_MEM_CUSTEM == 0
46 #error "You should allocate flash sectors to for FTL physical map as following, then set FTL_MEM_CUSTEM to 1. For more information, Please refer to Application Note, FTL chapter. "
47 #else
48 #if 0 /* Move ftl configuration to board\xxx\config\partition_conf.c */
49 const u8 ftl_phy_page_num = 3;									/* The number of physical map pages, default is 3*/
50 const u32 ftl_phy_page_start_addr = 0x00102000;					/* The start offset of flash pages which is allocated to FTL physical map.
51 																	Users should modify it according to their own memory layout!! */
52 #endif
53 #endif
54 #endif
55 
56 /******************* (C) COPYRIGHT 2016 Realtek Semiconductor *****END OF FILE****/
57