| /* |
| * Copyright (C) 2014 Nest labs, Inc. |
| * |
| * Configuration settings for the nest board |
| * |
| * This program is free software; you can redistribute it and/or |
| * modify it under the terms of the GNU General Public License as |
| * published by the Free Software Foundation; either version 2 of |
| * the License, or (at your option) any later version. |
| */ |
| |
| #ifndef __FLINTSTONE_H |
| #define __FLINTSTONE_H |
| |
| #include <asm/arch/imx-regs.h> |
| #include <linux/sizes.h> |
| |
| #define CONFIG_FASTMAP_AUTOCONVERT_PARAM "ubi.fm_autoconvert=1 " |
| #define CONFIG_PREBOOT_ANIMATION_PARAM "leds_lp5523.splash=${preboot_animation} " |
| |
| #include "flintstone_core.h" |
| |
| #define PHYS_SDRAM_SIZE SZ_512M |
| #define PHYS_SDRAM_HIGH "0x9fffffff" // Needs to equal SDRAM base + PHYS_SDRAM_SIZE - 1 |
| |
| #define NL_MODEL "Flintstone-1.13" // This is the default DTB that will boot if the environment variables are blank |
| |
| #define CONFIG_SYS_TEXT_BASE 0x80800000 |
| |
| /* |
| * Extra environment variables |
| */ |
| #define CONFIG_EXTRA_ENV_SETTINGS \ |
| "altbootcmd="CONFIG_ALT_BOOTCOMMAND"\0" \ |
| "bootlimit=5\0" \ |
| CONFIG_MFG_ENV_SETTINGS \ |
| "mtdids=nand0=mx6_nand\0" \ |
| "mtdparts=mtdparts=mx6_nand:4m(u-boot),500m("MTD_PARTITION_UBI"),8m(oopsdata)\0" \ |
| "console=ttymxc0\0" \ |
| "fdt_addr=0x83000000\0" \ |
| "fit_addr=0x83000000\0" \ |
| "nlmodel="NL_MODEL"\0" \ |
| "mtdoopsdev=3\0" \ |
| CONFIG_SYS_NANDBOOT0_ENV_SETTINGS \ |
| CONFIG_SYS_NANDBOOT1_ENV_SETTINGS \ |
| |
| #define CONFIG_BOOTCOMMAND "if test \"$bootside\" = \"1\"; then run nandboot1; else run nandboot0; fi; reset" |
| #define CONFIG_ALT_BOOTCOMMAND "if test \"$bootside\" = \"1\"; then run nandboot0; else run nandboot1; fi; reset" |
| |
| #define CONFIG_BOOTCOUNT_LIMIT |
| |
| /* SNVS general purpose register holds bootcount */ |
| #define CONFIG_SYS_BOOTCOUNT_ADDR 0x020cc068 |
| #define CONFIG_SYS_BOOTCOUNT_SINGLEWORD |
| #define CONFIG_SYS_BOOTCOUNT_LE |
| |
| #define CONFIG_ENV_IS_NOWHERE |
| |
| #define CONFIG_MTD_UBI_FASTMAP |
| |
| #endif /* __FLINTSTONE_H */ |