1 // SPDX-License-Identifier: GPL-2.0+
3 * Copyright (c) 2016 Google, Inc
11 #include <asm/global_data.h>
13 #include <asm/arch/timer.h>
14 #include <asm/arch/wdt.h>
15 #include <linux/err.h>
16 #include <dm/uclass.h>
19 * Second Watchdog Timer by default is configured
20 * to trigger secondary boot source.
22 #define AST_2ND_BOOT_WDT 1
25 * Third Watchdog Timer by default is configured
26 * to toggle Flash address mode switch before reset.
28 #define AST_FLASH_ADDR_DETECT_WDT 2
30 DECLARE_GLOBAL_DATA_PTR;
34 gd->bd->bi_boot_params = CONFIG_SYS_SDRAM_BASE + 0x100;
45 ret = uclass_get_device(UCLASS_RAM, 0, &dev);
47 debug("DRAM FAIL1\r\n");
51 ret = ram_get_info(dev, &ram);
53 debug("DRAM FAIL2\r\n");
57 gd->ram_size = ram.size;