Re: [U-Boot] [PATCH v2 1/3] rk3288: config change for enable dram capacity auto-detect.
Hi Sandy, On 09/21/2016 07:53 PM, Sandy Patterson wrote: On Tue, Sep 20, 2016 at 11:00 PM, Kever Yang> wrote: Hi Sandy, On 09/20/2016 09:21 PM, Sandy Patterson wrote: You're probably going to need to change this around now that the Kconfig stuff has been applied to master. Suggest following patch instead: I didn't enable the BACK_TO_BROM for all of rk3288 board, because boards like firefly and chromebook-jerry have enough space without this macro, and I'm not able to test them, so I only change for those boards which must enable this macro. That's fine, I only meant to suggest you use Kconfig instead. If you want to only change a few boards you can do this with *_defconfig file now. This way those options are controllable from "make menuconfig" after make *_defconfig. OK, I will move the definition to Kconfig. Thanks, - Kever What's you opinion for firefly-rk3288 and chrome-jerry? I had a firefly, I expect this should work fine with BACK_TO_BROM option, but I have broken it, so I can't test. Vagrant probably can though. I don't know anything about chrome-jerry, but it has a lot of different storage settings. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH v2 1/3] rk3288: config change for enable dram capacity auto-detect.
On Tue, Sep 20, 2016 at 11:00 PM, Kever Yangwrote: > Hi Sandy, > > On 09/20/2016 09:21 PM, Sandy Patterson wrote: > > You're probably going to need to change this around now that the Kconfig > stuff has been applied to master. Suggest following patch instead: > > > I didn't enable the BACK_TO_BROM for all of rk3288 board, because boards > like firefly and chromebook-jerry have enough space without this macro, > and I'm not able to test them, so I only change for those boards which > must enable this macro. > That's fine, I only meant to suggest you use Kconfig instead. If you want to only change a few boards you can do this with *_defconfig file now. This way those options are controllable from "make menuconfig" after make *_defconfig. > > What's you opinion for firefly-rk3288 and chrome-jerry? > I had a firefly, I expect this should work fine with BACK_TO_BROM option, but I have broken it, so I can't test. Vagrant probably can though. I don't know anything about chrome-jerry, but it has a lot of different storage settings. ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH v2 1/3] rk3288: config change for enable dram capacity auto-detect.
Hi Sandy, On 09/20/2016 09:21 PM, Sandy Patterson wrote: You're probably going to need to change this around now that the Kconfig stuff has been applied to master. Suggest following patch instead: I didn't enable the BACK_TO_BROM for all of rk3288 board, because boards like firefly and chromebook-jerry have enough space without this macro, and I'm not able to test them, so I only change for those boards which must enable this macro. What's you opinion for firefly-rk3288 and chrome-jerry? Thanks, - Kever diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index 1aac3c8..dc471d6 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -36,7 +36,7 @@ config ROCKCHIP_RK3399 config ROCKCHIP_SPL_BACK_TO_BROM bool "SPL returns to bootrom" - default y if ROCKCHIP_RK3036 + default y if ROCKCHIP_RK3036 || ROCKCHIP_RK3288 help Rockchip SoCs have ability to load SPL & U-Boot binary. If enabled, SPL will return to the boot rom, which will then load the U-Boot diff --git a/arch/arm/mach-rockchip/rk3288/Kconfig b/arch/arm/mach-rockchip/rk3288/Kconfig index 94863a9..1425ce1 100644 --- a/arch/arm/mach-rockchip/rk3288/Kconfig +++ b/arch/arm/mach-rockchip/rk3288/Kconfig @@ -82,7 +82,7 @@ config SPL_LIBGENERIC_SUPPORT default y config SPL_MMC_SUPPORT - default y + default y if !ROCKCHIP_SPL_BACK_TO_BROM config SPL_SERIAL_SUPPORT default y On Mon, Sep 19, 2016 at 11:28 PM, Kever Yang> wrote: Enable ROCKCHIP_SPL_BACK_TO_BROM and disable CONFIG_SPL_MMC_SUPPORT to save memory in order to enable add source code for dram capacity auto-detect. Signed-off-by: Kever Yang > --- Changes in v2: None include/configs/evb_rk3288.h | 3 +-- include/configs/fennec_rk3288.h | 3 +-- include/configs/miniarm_rk3288.h | 3 +-- include/configs/popmetal_rk3288.h | 3 +-- 4 files changed, 4 insertions(+), 8 deletions(-) diff --git a/include/configs/evb_rk3288.h b/include/configs/evb_rk3288.h index 342557f..9f32184 100644 --- a/include/configs/evb_rk3288.h +++ b/include/configs/evb_rk3288.h @@ -7,11 +7,10 @@ #ifndef __CONFIG_H #define __CONFIG_H +#define CONFIG_ROCKCHIP_SPL_BACK_TO_BROM #define ROCKCHIP_DEVICE_SETTINGS #include -#define CONFIG_SPL_MMC_SUPPORT - #define CONFIG_ENV_IS_IN_MMC #define CONFIG_SYS_MMC_ENV_DEV 1 /* SPL @ 32k for ~36k diff --git a/include/configs/fennec_rk3288.h b/include/configs/fennec_rk3288.h index 342557f..9f32184 100644 --- a/include/configs/fennec_rk3288.h +++ b/include/configs/fennec_rk3288.h @@ -7,11 +7,10 @@ #ifndef __CONFIG_H #define __CONFIG_H +#define CONFIG_ROCKCHIP_SPL_BACK_TO_BROM #define ROCKCHIP_DEVICE_SETTINGS #include -#define CONFIG_SPL_MMC_SUPPORT - #define CONFIG_ENV_IS_IN_MMC #define CONFIG_SYS_MMC_ENV_DEV 1 /* SPL @ 32k for ~36k diff --git a/include/configs/miniarm_rk3288.h b/include/configs/miniarm_rk3288.h index 342557f..9f32184 100644 --- a/include/configs/miniarm_rk3288.h +++ b/include/configs/miniarm_rk3288.h @@ -7,11 +7,10 @@ #ifndef __CONFIG_H #define __CONFIG_H +#define CONFIG_ROCKCHIP_SPL_BACK_TO_BROM #define ROCKCHIP_DEVICE_SETTINGS #include -#define CONFIG_SPL_MMC_SUPPORT - #define CONFIG_ENV_IS_IN_MMC #define CONFIG_SYS_MMC_ENV_DEV 1 /* SPL @ 32k for ~36k diff --git a/include/configs/popmetal_rk3288.h b/include/configs/popmetal_rk3288.h index 342557f..9f32184 100644 --- a/include/configs/popmetal_rk3288.h +++ b/include/configs/popmetal_rk3288.h @@ -7,11 +7,10 @@ #ifndef __CONFIG_H #define __CONFIG_H +#define CONFIG_ROCKCHIP_SPL_BACK_TO_BROM #define ROCKCHIP_DEVICE_SETTINGS #include -#define CONFIG_SPL_MMC_SUPPORT - #define CONFIG_ENV_IS_IN_MMC #define CONFIG_SYS_MMC_ENV_DEV 1 /* SPL @ 32k for ~36k -- 1.9.1 ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot
Re: [U-Boot] [PATCH v2 1/3] rk3288: config change for enable dram capacity auto-detect.
You're probably going to need to change this around now that the Kconfig stuff has been applied to master. Suggest following patch instead: diff --git a/arch/arm/mach-rockchip/Kconfig b/arch/arm/mach-rockchip/Kconfig index 1aac3c8..dc471d6 100644 --- a/arch/arm/mach-rockchip/Kconfig +++ b/arch/arm/mach-rockchip/Kconfig @@ -36,7 +36,7 @@ config ROCKCHIP_RK3399 config ROCKCHIP_SPL_BACK_TO_BROM bool "SPL returns to bootrom" - default y if ROCKCHIP_RK3036 + default y if ROCKCHIP_RK3036 || ROCKCHIP_RK3288 help Rockchip SoCs have ability to load SPL & U-Boot binary. If enabled, SPL will return to the boot rom, which will then load the U-Boot diff --git a/arch/arm/mach-rockchip/rk3288/Kconfig b/arch/arm/mach-rockchip/rk3288/Kconfig index 94863a9..1425ce1 100644 --- a/arch/arm/mach-rockchip/rk3288/Kconfig +++ b/arch/arm/mach-rockchip/rk3288/Kconfig @@ -82,7 +82,7 @@ config SPL_LIBGENERIC_SUPPORT default y config SPL_MMC_SUPPORT - default y + default y if !ROCKCHIP_SPL_BACK_TO_BROM config SPL_SERIAL_SUPPORT default y On Mon, Sep 19, 2016 at 11:28 PM, Kever Yangwrote: > Enable ROCKCHIP_SPL_BACK_TO_BROM and disable CONFIG_SPL_MMC_SUPPORT > to save memory in order to enable add source code for dram capacity > auto-detect. > > Signed-off-by: Kever Yang > --- > > Changes in v2: None > > include/configs/evb_rk3288.h | 3 +-- > include/configs/fennec_rk3288.h | 3 +-- > include/configs/miniarm_rk3288.h | 3 +-- > include/configs/popmetal_rk3288.h | 3 +-- > 4 files changed, 4 insertions(+), 8 deletions(-) > > diff --git a/include/configs/evb_rk3288.h b/include/configs/evb_rk3288.h > index 342557f..9f32184 100644 > --- a/include/configs/evb_rk3288.h > +++ b/include/configs/evb_rk3288.h > @@ -7,11 +7,10 @@ > #ifndef __CONFIG_H > #define __CONFIG_H > > +#define CONFIG_ROCKCHIP_SPL_BACK_TO_BROM > #define ROCKCHIP_DEVICE_SETTINGS > #include > > -#define CONFIG_SPL_MMC_SUPPORT > - > #define CONFIG_ENV_IS_IN_MMC > #define CONFIG_SYS_MMC_ENV_DEV 1 > /* SPL @ 32k for ~36k > diff --git a/include/configs/fennec_rk3288.h b/include/configs/fennec_ > rk3288.h > index 342557f..9f32184 100644 > --- a/include/configs/fennec_rk3288.h > +++ b/include/configs/fennec_rk3288.h > @@ -7,11 +7,10 @@ > #ifndef __CONFIG_H > #define __CONFIG_H > > +#define CONFIG_ROCKCHIP_SPL_BACK_TO_BROM > #define ROCKCHIP_DEVICE_SETTINGS > #include > > -#define CONFIG_SPL_MMC_SUPPORT > - > #define CONFIG_ENV_IS_IN_MMC > #define CONFIG_SYS_MMC_ENV_DEV 1 > /* SPL @ 32k for ~36k > diff --git a/include/configs/miniarm_rk3288.h b/include/configs/miniarm_ > rk3288.h > index 342557f..9f32184 100644 > --- a/include/configs/miniarm_rk3288.h > +++ b/include/configs/miniarm_rk3288.h > @@ -7,11 +7,10 @@ > #ifndef __CONFIG_H > #define __CONFIG_H > > +#define CONFIG_ROCKCHIP_SPL_BACK_TO_BROM > #define ROCKCHIP_DEVICE_SETTINGS > #include > > -#define CONFIG_SPL_MMC_SUPPORT > - > #define CONFIG_ENV_IS_IN_MMC > #define CONFIG_SYS_MMC_ENV_DEV 1 > /* SPL @ 32k for ~36k > diff --git a/include/configs/popmetal_rk3288.h b/include/configs/popmetal_ > rk3288.h > index 342557f..9f32184 100644 > --- a/include/configs/popmetal_rk3288.h > +++ b/include/configs/popmetal_rk3288.h > @@ -7,11 +7,10 @@ > #ifndef __CONFIG_H > #define __CONFIG_H > > +#define CONFIG_ROCKCHIP_SPL_BACK_TO_BROM > #define ROCKCHIP_DEVICE_SETTINGS > #include > > -#define CONFIG_SPL_MMC_SUPPORT > - > #define CONFIG_ENV_IS_IN_MMC > #define CONFIG_SYS_MMC_ENV_DEV 1 > /* SPL @ 32k for ~36k > -- > 1.9.1 > > ___ U-Boot mailing list U-Boot@lists.denx.de http://lists.denx.de/mailman/listinfo/u-boot