blob: 6547487b114d9d19c361de450c63ff6975add741 [file] [log] [blame]
/*
* board/amlogic/g12a_u202_v1/firmware/ramdump.c
*
* Copyright (C) 2017 Amlogic, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
*/
#ifdef CONFIG_MDUMP_COMPRESS
#include "ramdump.h"
struct ram_compress_full __ramdump_data = {
.store_phy_addr = (void *)CONFIG_COMPRESSED_DATA_ADDR,
.full_memsize = CONFIG_DDR_TOTAL_SIZE,
.section_count = CONFIG_COMPRESS_SECTION,
.sections = {
{
/* memory afer compressed data address */
.phy_addr = (void *)CONFIG_COMPRESSED_DATA_ADDR,
.section_size = CONFIG_DDR_TOTAL_SIZE -
CONFIG_COMPRESSED_DATA_ADDR,
.section_index = 4,
.compress_type = RAM_COMPRESS_NORMAL,
},
{
/* memory before bl2 */
.phy_addr = (void *)CONFIG_COMPRESS_START_ADDR,
.section_size = CONFIG_BL2_IGNORE_ADDR -
CONFIG_COMPRESS_START_ADDR,
.section_index = 1,
.compress_type = RAM_COMPRESS_NORMAL,
},
{
/* memory in reserved bl2 */
.phy_addr = (void *)CONFIG_BL2_IGNORE_ADDR,
.section_size = CONFIG_BL2_IGNORE_SIZE,
.section_index = 2,
.compress_type = RAM_COMPRESS_SET,
.set_value = 0x0,
},
{
/* segment 4: normal compress */
.phy_addr = (void *)CONFIG_SEG4_ADDR,
.section_size = CONFIG_COMPRESSED_DATA_ADDR -
CONFIG_SEG4_ADDR,
.section_index = 3,
.compress_type = RAM_COMPRESS_NORMAL,
}
},
};
#endif /* CONFIG_MDUMP_COMPRESS */