1
0
mirror of https://github.com/CTCaer/hekate.git synced 2024-12-24 21:16:19 +00:00

sdram: Support fully burnt ODM fuses

This commit is contained in:
CTCaer 2019-09-12 23:21:12 +03:00
parent 8cef81c901
commit 95a6f2b763

View File

@ -39,7 +39,13 @@
static u32 _get_sdram_id() static u32 _get_sdram_id()
{ {
return (fuse_read_odm(4) & 0x38) >> 3; u32 sdram_id = (fuse_read_odm(4) & 0x38) >> 3;
// Check if id is proper.
if (sdram_id > 7)
sdram_id = 0;
return sdram_id;
} }
static void _sdram_config(const sdram_params_t *params) static void _sdram_config(const sdram_params_t *params)