Skip to content

Commit

Permalink
Added support for a savable environment
Browse files Browse the repository at this point in the history
  • Loading branch information
dhylands committed Aug 4, 2012
1 parent de5ddf6 commit e5e95b5
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions include/configs/rascal.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,8 +130,19 @@
#define CONFIG_SYS_MEMTEST_END 0x23e00000

/* U-boot environment */
#define CONFIG_ENV_IS_NOWHERE
#define CONFIG_ENV_SIZE 0x20000 /* 1 sector = 128 kB */
#define CONFIG_ENV_IS_IN_SPI_FLASH

#define CONFIG_SF_DEFAULT_SPEED 1000000
#define CONFIG_SF_DEFAULT_MODE SPI_MODE_0

#define CONFIG_ENV_SPI_BUS 0
#define CONFIG_ENV_SPI_CS 0
#define CONFIG_ENV_SPI_MAX_HZ CONFIG_SF_DEFAULT_SPEED
#define CONFIG_ENV_SPI_MODE CONFIG_SF_DEFAULT_MODE

#define CONFIG_ENV_OFFSET 0x80000
#define CONFIG_ENV_SECT_SIZE 65536
#define CONFIG_ENV_SIZE 65536

/* Default environment variables */
#define CONFIG_BOOTDELAY 3
Expand Down

0 comments on commit e5e95b5

Please sign in to comment.