Squashed backup commit (no shallow-clone history issues) of xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2 branch, upstream commit 9eece662e) plus all fixes applied to get everpal_defconfig building clean against a modern (GCC 15.2.0) toolchain -- see the previous commit message on the lineage-23.2 branch (also in this repo history is not available here since this is a squashed snapshot; full incremental history lives in the local DL380 checkout and the upstream GitHub remote). Upstream: https://github.com/xiaomi-mt6833-dev/kernel_xiaomi_mt6833 (lineage-23.2)
25 lines
825 B
C
25 lines
825 B
C
/*
|
|
* Copyright 2014 Texas Instruments, Inc.
|
|
* Santosh Shilimkar <santosh.shilimkar@ti.com>
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify it
|
|
* under the terms and conditions of the GNU General Public License,
|
|
* version 2, as published by the Free Software Foundation.
|
|
*/
|
|
#ifndef __MEMORY_H
|
|
#define __MEMORY_H
|
|
|
|
#define MAX_PHYSMEM_BITS 36
|
|
#define SECTION_SIZE_BITS 34
|
|
|
|
#define KEYSTONE_LOW_PHYS_START 0x80000000ULL
|
|
#define KEYSTONE_LOW_PHYS_SIZE 0x80000000ULL /* 2G */
|
|
#define KEYSTONE_LOW_PHYS_END (KEYSTONE_LOW_PHYS_START + \
|
|
KEYSTONE_LOW_PHYS_SIZE - 1)
|
|
|
|
#define KEYSTONE_HIGH_PHYS_START 0x800000000ULL
|
|
#define KEYSTONE_HIGH_PHYS_SIZE 0x400000000ULL /* 16G */
|
|
#define KEYSTONE_HIGH_PHYS_END (KEYSTONE_HIGH_PHYS_START + \
|
|
KEYSTONE_HIGH_PHYS_SIZE - 1)
|
|
#endif /* __MEMORY_H */
|