mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-09 12:17:12 +09:00
add skype_pmem_device and this device size is 0M
This commit is contained in:
@@ -96,6 +96,7 @@
|
||||
#define PMEM_GPU_SIZE SZ_64M
|
||||
#define PMEM_UI_SIZE SZ_32M
|
||||
#define PMEM_VPU_SIZE SZ_64M
|
||||
#define PMEM_SKYPE_SIZE 0
|
||||
#define PMEM_CAM_SIZE PMEM_CAM_NECESSARY
|
||||
#ifdef CONFIG_VIDEO_RK29_WORK_IPP
|
||||
#define MEM_CAMIPP_SIZE SZ_4M
|
||||
@@ -119,7 +120,8 @@
|
||||
#define MEM_CAMIPP_BASE (PMEM_CAM_BASE - MEM_CAMIPP_SIZE)
|
||||
#define MEM_FB_BASE (MEM_CAMIPP_BASE - MEM_FB_SIZE)
|
||||
#define MEM_FBIPP_BASE (MEM_FB_BASE - MEM_FBIPP_SIZE)
|
||||
#define LINUX_SIZE (MEM_FBIPP_BASE - RK29_SDRAM_PHYS)
|
||||
#define PMEM_SKYPE_BASE (MEM_FBIPP_BASE - PMEM_SKYPE_SIZE)
|
||||
#define LINUX_SIZE (PMEM_SKYPE_BASE - RK29_SDRAM_PHYS)
|
||||
|
||||
#define PREALLOC_WLAN_SEC_NUM 4
|
||||
#define PREALLOC_WLAN_BUF_NUM 160
|
||||
@@ -396,6 +398,21 @@ static struct platform_device rk29_vpu_mem_device = {
|
||||
.platform_data = &vpu_mem_pdata,
|
||||
},
|
||||
};
|
||||
static struct android_pmem_platform_data android_pmem_skype_pdata = {
|
||||
.name = "pmem_skype",
|
||||
.start = PMEM_SKYPE_BASE,
|
||||
.size = PMEM_SKYPE_SIZE,
|
||||
.no_allocator = 0,
|
||||
.cached = 0,
|
||||
};
|
||||
|
||||
static struct platform_device android_pmem_skype_device = {
|
||||
.name = "android_pmem",
|
||||
.id = 3,
|
||||
.dev = {
|
||||
.platform_data = &android_pmem_skype_pdata,
|
||||
},
|
||||
};
|
||||
#ifdef CONFIG_VIDEO_RK29XX_VOUT
|
||||
static struct platform_device rk29_v4l2_output_devce = {
|
||||
.name = "rk29_vout",
|
||||
@@ -1484,6 +1501,7 @@ static struct platform_device *devices[] __initdata = {
|
||||
&rk29_soc_camera_pdrv_1,
|
||||
&android_pmem_cam_device,
|
||||
#endif
|
||||
&android_pmem_skype_device,
|
||||
&android_pmem_device,
|
||||
&rk29_vpu_mem_device,
|
||||
#ifdef CONFIG_USB20_OTG
|
||||
|
||||
Reference in New Issue
Block a user