Commit 6548a326 authored by Thomas Schäfer's avatar Thomas Schäfer
Browse files

pitx-imx8m: spl: show detected memory variant


Signed-off-by: Thomas Schäfer's avatarThomas Schaefer <thomas.schaefer@kontron.com>
parent aaef53f1
......@@ -42,6 +42,8 @@ static phys_size_t get_memory_variant(void)
variant = (gpio_get_value(IMX_GPIO_NR(5, 0)) |
gpio_get_value(IMX_GPIO_NR(5, 1)) << 1 ) & 0x3;
printf("Memory variant %d (%s) detected\n", variant,
variant == 2 ? "2 GiB" : "4 GiB");
switch(variant) {
case 3:
return SZ_4G;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment