Message ID | 20200603151513.3528522-1-marcin@juszkiewicz.com.pl |
---|---|
State | Accepted |
Commit | 34f7e14d6b9ec69fd3c21f5f6eaefd8fb4e1ac1f |
Headers | show |
Series | [1/2] rockchip: rockpro64: Store default env into SPI | expand |
On 2020/6/3 ??11:15, Marcin Juszkiewicz wrote: > Board has flash chip on board so let store U-Boot environment there. > > Signed-off-by: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl> Reviewed-by: Kever Yang <kever.yang at rock-chips.com> Thanks, - Kever > --- > configs/rockpro64-rk3399_defconfig | 3 ++- > include/configs/rockpro64_rk3399.h | 2 -- > 2 files changed, 2 insertions(+), 3 deletions(-) > > diff --git configs/rockpro64-rk3399_defconfig configs/rockpro64-rk3399_defconfig > index 8c4b2f35c1..72389d0e60 100644 > --- configs/rockpro64-rk3399_defconfig > +++ configs/rockpro64-rk3399_defconfig > @@ -1,6 +1,7 @@ > CONFIG_ARM=y > CONFIG_ARCH_ROCKCHIP=y > CONFIG_SYS_TEXT_BASE=0x00200000 > +CONFIG_ENV_SIZE=0x8000 > CONFIG_ENV_OFFSET=0x3F8000 > CONFIG_ROCKCHIP_RK3399=y > CONFIG_TARGET_ROCKPRO64_RK3399=y > @@ -24,7 +25,7 @@ CONFIG_CMD_TIME=y > CONFIG_SPL_OF_CONTROL=y > CONFIG_DEFAULT_DEVICE_TREE="rk3399-rockpro64" > CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" > -CONFIG_ENV_IS_IN_MMC=y > +CONFIG_ENV_IS_IN_SPI_FLASH=y > CONFIG_SYS_RELOC_GD_ENV_ADDR=y > CONFIG_ROCKCHIP_GPIO=y > CONFIG_SYS_I2C_ROCKCHIP=y > diff --git include/configs/rockpro64_rk3399.h include/configs/rockpro64_rk3399.h > index 37a08b2c00..903e9df527 100644 > --- include/configs/rockpro64_rk3399.h > +++ include/configs/rockpro64_rk3399.h > @@ -13,8 +13,6 @@ > > #include <configs/rk3399_common.h> > > -#define CONFIG_SYS_MMC_ENV_DEV 0 > - > #define SDRAM_BANK_SIZE (2UL << 30) > > #define CONFIG_USB_OHCI_NEW
diff --git configs/rockpro64-rk3399_defconfig configs/rockpro64-rk3399_defconfig index 8c4b2f35c1..72389d0e60 100644 --- configs/rockpro64-rk3399_defconfig +++ configs/rockpro64-rk3399_defconfig @@ -1,6 +1,7 @@ CONFIG_ARM=y CONFIG_ARCH_ROCKCHIP=y CONFIG_SYS_TEXT_BASE=0x00200000 +CONFIG_ENV_SIZE=0x8000 CONFIG_ENV_OFFSET=0x3F8000 CONFIG_ROCKCHIP_RK3399=y CONFIG_TARGET_ROCKPRO64_RK3399=y @@ -24,7 +25,7 @@ CONFIG_CMD_TIME=y CONFIG_SPL_OF_CONTROL=y CONFIG_DEFAULT_DEVICE_TREE="rk3399-rockpro64" CONFIG_OF_SPL_REMOVE_PROPS="pinctrl-0 pinctrl-names clock-names interrupt-parent assigned-clocks assigned-clock-rates assigned-clock-parents" -CONFIG_ENV_IS_IN_MMC=y +CONFIG_ENV_IS_IN_SPI_FLASH=y CONFIG_SYS_RELOC_GD_ENV_ADDR=y CONFIG_ROCKCHIP_GPIO=y CONFIG_SYS_I2C_ROCKCHIP=y diff --git include/configs/rockpro64_rk3399.h include/configs/rockpro64_rk3399.h index 37a08b2c00..903e9df527 100644 --- include/configs/rockpro64_rk3399.h +++ include/configs/rockpro64_rk3399.h @@ -13,8 +13,6 @@ #include <configs/rk3399_common.h> -#define CONFIG_SYS_MMC_ENV_DEV 0 - #define SDRAM_BANK_SIZE (2UL << 30) #define CONFIG_USB_OHCI_NEW
Board has flash chip on board so let store U-Boot environment there. Signed-off-by: Marcin Juszkiewicz <marcin at juszkiewicz.com.pl> --- configs/rockpro64-rk3399_defconfig | 3 ++- include/configs/rockpro64_rk3399.h | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-)