1/* SPDX-License-Identifier: GPL-2.0+ */ 2/* 3 * (C) Copyright 2015 Google, Inc 4 */ 5 6#ifndef __CONFIG_RK3288_COMMON_H 7#define __CONFIG_RK3288_COMMON_H 8 9#include "rockchip-common.h" 10 11#define CFG_SYS_HZ_CLOCK 24000000 12 13#define CFG_IRAM_BASE 0xff700000 14 15#define CFG_SYS_SDRAM_BASE 0 16#define SDRAM_MAX_SIZE 0xfe000000 17 18#define ENV_MEM_LAYOUT_SETTINGS \ 19 "scriptaddr=0x00000000\0" \ 20 "pxefile_addr_r=0x00100000\0" \ 21 "fdt_addr_r=0x01f00000\0" \ 22 "kernel_addr_r=0x02000000\0" \ 23 "ramdisk_addr_r=0x04000000\0" 24 25/* Linux fails to load the fdt if it's loaded above 256M on a Rock 2 board, so 26 * limit the fdt reallocation to that */ 27#define CFG_EXTRA_ENV_SETTINGS \ 28 "fdt_high=0x0fffffff\0" \ 29 "initrd_high=0x0fffffff\0" \ 30 "fdtfile=" CONFIG_DEFAULT_FDT_FILE "\0" \ 31 "partitions=" PARTS_DEFAULT \ 32 ENV_MEM_LAYOUT_SETTINGS \ 33 ROCKCHIP_DEVICE_SETTINGS \ 34 "boot_targets=" BOOT_TARGETS "\0" 35 36#endif 37