blob: 6fb4839109b845a669b2da05dcfa7cb0dc62f3f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
|
// SPDX-License-Identifier: GPL-2.0-or-later
/*
* Copyright (c) 2025-2026 TQ-Systems GmbH <[email protected]>,
* D-82229 Seefeld, Germany.
* Author: Alexander Feilke, Max Merchel
*/
#include <init.h>
#include <asm/io.h>
#include <linux/sizes.h>
#include "tq_som.h"
void __weak tq_som_ram_init(void)
{
;
}
/*
* checks if the accessible range equals the requested RAM size.
* returns true if successful, false otherwise
*/
bool tq_som_ram_check_size(long ram_size)
{
long size;
size = get_ram_size((void *)PHYS_SDRAM, ram_size);
debug("SPL: requested RAM size %lu MiB. accessible %lu MiB\n",
ram_size / (SZ_1M), size / (SZ_1M));
return (size == ram_size);
}
|