Skip to content
Snippets Groups Projects
Commit 1acdc785 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "target: mdm9607: Increase size of scratch memory."

parents f75ddaf6 a49a4c32
Branches
Tags
No related merge requests found
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015,2020 The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
......@@ -53,6 +53,8 @@
#define SCRATCH_REGION1_VIRT_START_128 0x88000000
#define SCRATCH_REGION2_VIRT_START_128 (SCRATCH_REGION1_VIRT_START_128 + SCRATCH_REGION1_SIZE_128)
#define SCRATCH_REGION2_VIRT_START_256 (SCRATCH_REGION_256 + SCRATCH_REGION_SIZE_256)
static void ddr_based_mmu_mappings(mmu_section_t *table, uint32_t table_size);
static uint64_t ddr_size;
static void board_ddr_detect();
......@@ -81,6 +83,7 @@ mmu_section_t mmu_section_table_128[] = {
mmu_section_t mmu_section_table_256[] = {
{SCRATCH_REGION_256, SCRATCH_REGION_256, SCRATCH_REGION_SIZE_256/ MB, SCRATCH_MEMORY},
{SCRATCH_REGION2_256, SCRATCH_REGION2_VIRT_START_256, SCRATCH_REGION2_SIZE_256/ MB, SCRATCH_MEMORY},
{KERNEL_REGION, KERNEL_REGION, KERNEL_REGION_SIZE/ MB, SCRATCH_MEMORY},
};
......
/* Copyright (c) 2015, The Linux Foundation. All rights reserved.
/* Copyright (c) 2015,2020 The Linux Foundation. All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions are
......@@ -103,5 +103,5 @@ unsigned target_get_max_flash_size(void)
return (SCRATCH_REGION1_SIZE_128 + SCRATCH_REGION2_SIZE_128);
else
/*256MB DDR scratch size*/
return (SCRATCH_REGION_SIZE_256);
return (SCRATCH_REGION_SIZE_256 + SCRATCH_REGION2_SIZE_256);
}
......@@ -15,11 +15,13 @@ SCRATCH_REGION2_128 := 0x80000000
SCRATCH_REGION2_SIZE_128 := 0x02900000 # 41M
KERNEL_REGION := 0x80000000
KERNEL_REGION_SIZE := 0x2000000 # 20MB
KERNEL_REGION_SIZE := 0x02000000 # 32MB
SCRATCH_ADDR_256 := 0x88000000
SCRATCH_REGION_256 := 0x88000000
SCRATCH_REGION2_256 := 0x82A00000
SCRATCH_REGION_SIZE_256 := 0x08000000 # 128MB
SCRATCH_REGION2_SIZE_256 := 0x05000000 # 80MB
BASE_ADDR := 0x80000000
......@@ -39,11 +41,13 @@ DEFINES += \
SCRATCH_ADDR_128=$(SCRATCH_ADDR_128) \
SCRATCH_ADDR_256=$(SCRATCH_ADDR_256) \
SCRATCH_REGION_256=$(SCRATCH_REGION_256) \
SCRATCH_REGION2_256=$(SCRATCH_REGION2_256) \
SCRATCH_REGION1_128=$(SCRATCH_REGION1_128) \
SCRATCH_REGION2_128=$(SCRATCH_REGION2_128) \
SCRATCH_REGION1_SIZE_128=$(SCRATCH_REGION1_SIZE_128) \
SCRATCH_REGION2_SIZE_128=$(SCRATCH_REGION2_SIZE_128) \
SCRATCH_REGION_SIZE_256=$(SCRATCH_REGION_SIZE_256) \
SCRATCH_REGION2_SIZE_256=$(SCRATCH_REGION2_SIZE_256) \
KERNEL_REGION=$(KERNEL_REGION) \
KERNEL_REGION_SIZE=$(KERNEL_REGION_SIZE)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment