This commit is contained in:
Andre Heider 2018-02-05 15:13:32 +01:00
parent 73c39a4ae5
commit 2122b66603

View file

@ -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()