Kernel stores information to the RTC_SCRATCH0 and RTC_SCRATCH1 registers for wakeup from RTC-only mode with DDR in self-refresh. Parse these registers during SPL boot and jump to the kernel resume vector if the device is waking up from RTC-only modewith DDR in Self-refresh. The RTC scratch register layout used is: SCRATCH0 : bits00-31 : kernel resume address SCRATCH1 : bits00-15 : RTC magic value used to detect valid config SCRATCH1 : bits16-31 : board type information populated by bootloader During the normal boot path the SCRATCH1 : bits16-31 are updated with the eeprom read board type data. In the rtc_only boot path the rtc scratchpad register is read and the board type is determined and correspondingly ddr dpll parameters are set. This is done so as to avoid costly i2c read to eeprom. RTC-only +DRR in self-refresh mode support is currently only enabled for am43xx_evm_rtconly_config. This is not to be used with epos evm builds. Signed-off-by: Tero Kristo <t-kristo@ti.com> [j-keerthy@ti.com Rebased to latest u-boot master branch] Signed-off-by: Keerthy <j-keerthy@ti.com> Reviewed-by: Tom Rini <trini@konsulko.com>master
parent
3f151eb6cf
commit
7619badb9c
@ -0,0 +1,59 @@ |
||||
CONFIG_ARM=y |
||||
CONFIG_ARCH_OMAP2PLUS=y |
||||
CONFIG_TI_COMMON_CMD_OPTIONS=y |
||||
CONFIG_SYS_MALLOC_F_LEN=0x2000 |
||||
CONFIG_AM43XX=y |
||||
CONFIG_DEFAULT_DEVICE_TREE="am437x-gp-evm" |
||||
CONFIG_DISTRO_DEFAULTS=y |
||||
CONFIG_SPL_LOAD_FIT=y |
||||
CONFIG_SYS_EXTRA_OPTIONS="CONS_INDEX=1" |
||||
# CONFIG_USE_BOOTCOMMAND is not set |
||||
CONFIG_SYS_CONSOLE_INFO_QUIET=y |
||||
CONFIG_VERSION_VARIABLE=y |
||||
CONFIG_SPL=y |
||||
CONFIG_SPL_RTC_DDR_SUPPORT=y |
||||
CONFIG_SPL_MTD_SUPPORT=y |
||||
CONFIG_SPL_OS_BOOT=y |
||||
CONFIG_CMD_SPL=y |
||||
CONFIG_CMD_SPL_NAND_OFS=0x00100000 |
||||
CONFIG_CMD_SPL_WRITE_SIZE=0x40000 |
||||
# CONFIG_CMD_FLASH is not set |
||||
CONFIG_CMD_NAND=y |
||||
# CONFIG_CMD_SETEXPR is not set |
||||
CONFIG_CMD_MTDPARTS=y |
||||
CONFIG_MTDIDS_DEFAULT="nand0=nand.0" |
||||
CONFIG_MTDPARTS_DEFAULT="mtdparts=nand.0:256k(NAND.SPL),256k(NAND.SPL.backup1),256k(NAND.SPL.backup2),256k(NAND.SPL.backup3),512k(NAND.u-boot-spl-os),1m(NAND.u-boot),256k(NAND.u-boot-env),256k(NAND.u-boot-env.backup1),7m(NAND.kernel),-(NAND.file-system)" |
||||
CONFIG_OF_CONTROL=y |
||||
CONFIG_OF_LIST="am437x-gp-evm am437x-sk-evm am43x-epos-evm am437x-idk-evm" |
||||
CONFIG_DM=y |
||||
# CONFIG_BLK is not set |
||||
CONFIG_DFU_MMC=y |
||||
CONFIG_DFU_RAM=y |
||||
CONFIG_DFU_SF=y |
||||
CONFIG_DM_GPIO=y |
||||
CONFIG_DM_MMC=y |
||||
CONFIG_MMC_OMAP_HS=y |
||||
CONFIG_NAND=y |
||||
CONFIG_SPI_FLASH=y |
||||
CONFIG_SPI_FLASH_MACRONIX=y |
||||
CONFIG_PHYLIB=y |
||||
CONFIG_PHY_GIGE=y |
||||
CONFIG_DM_SERIAL=y |
||||
CONFIG_SYS_NS16550=y |
||||
CONFIG_TI_QSPI=y |
||||
CONFIG_TIMER=y |
||||
CONFIG_OMAP_TIMER=y |
||||
CONFIG_USB=y |
||||
CONFIG_USB_XHCI_HCD=y |
||||
CONFIG_USB_XHCI_DWC3=y |
||||
CONFIG_USB_DWC3=y |
||||
CONFIG_USB_DWC3_GADGET=y |
||||
CONFIG_USB_DWC3_OMAP=y |
||||
CONFIG_USB_DWC3_PHY_OMAP=y |
||||
CONFIG_OMAP_USB_PHY=y |
||||
CONFIG_USB_STORAGE=y |
||||
CONFIG_USB_GADGET=y |
||||
CONFIG_USB_GADGET_MANUFACTURER="Texas Instruments" |
||||
CONFIG_USB_GADGET_VENDOR_NUM=0x0403 |
||||
CONFIG_USB_GADGET_PRODUCT_NUM=0xbd00 |
||||
CONFIG_USB_GADGET_DOWNLOAD=y |
Loading…
Reference in new issue