mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
cleanup
This commit is contained in:
parent
73c39a4ae5
commit
2122b66603
1 changed files with 3 additions and 3 deletions
|
@ -24,15 +24,15 @@ static const struct sdram_params sdram_configs[] = {
|
|||
#include "bct/sdram-nintendo-switch-1.inc" /* ram_code = 0001 */
|
||||
#include "bct/sdram-nintendo-switch-2.inc" /* ram_code = 0010 */
|
||||
#include "bct/sdram-nintendo-switch-3.inc" /* ram_code = 0011 */
|
||||
#include "bct/sdram-nintendo-switch-4.inc" /* ram_code = 0100 */
|
||||
#include "bct/sdram-nintendo-switch-4.inc" /* ram_code = 0100 */
|
||||
};
|
||||
|
||||
#define TEGRA_FUSE_BASE ((void *)TEGRA_FUSE_BASE)
|
||||
#define FUSE_BASE ((void *)TEGRA_FUSE_BASE)
|
||||
#define FUSE_RESERVED_ODM4 0x1d8
|
||||
|
||||
static uint32_t switch_sdram_get_id(void)
|
||||
{
|
||||
return (read32(TEGRA_FUSE_BASE + FUSE_RESERVED_ODM4) & 0x38) >> 3;
|
||||
return (read32(FUSE_BASE + FUSE_RESERVED_ODM4) & 0x38) >> 3;
|
||||
}
|
||||
|
||||
const struct sdram_params *get_sdram_config()
|
||||
|
|
Loading…
Add table
Reference in a new issue