blob: 9cb861af85d88234d0f926a351e6b589b7442aed (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
// SPDX-License-Identifier: GPL-2.0+
#include <common.h>
#include <linux/sizes.h>
#include <init.h>
#include <asm/memory.h>
#include <mach/stm32.h>
static int dk2_mem_init(void)
{
if (!of_machine_is_compatible("st,stm32mp157c-dk2"))
return 0;
arm_add_mem_device("ram0", STM32_DDR_BASE, SZ_512M);
return 0;
}
mem_initcall(dk2_mem_init);
|