Message ID | 20170414164447.18867-1-afaerber@suse.de |
---|---|
State | Accepted |
Commit | 2eff3b7179a95a5cde0eaf8fae8c4b18956f2f59 |
Delegated to: | Jagannadha Sutradharudu Teki |
Headers | show |
On Fri, Apr 14, 2017 at 10:14 PM, Andreas Färber <afaerber@suse.de> wrote: > Currently $fdtfile is constructed from CONFIG_DEFAULT_TREE, containing > the filename. However on arm64 that file is located in an allwinner > subdirectory. > > To avoid the need for users/distros symlinking the .dtb files, prepend > the vendor directory for ARM64. > > This aligns Pine64 with other boards such as Raspberry Pi 3. > > Signed-off-by: Andreas Färber <afaerber@suse.de> > --- > include/configs/sunxi-common.h | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h > index 1d475b1..ad4012c 100644 > --- a/include/configs/sunxi-common.h > +++ b/include/configs/sunxi-common.h > @@ -476,11 +476,17 @@ extern int soft_i2c_gpio_scl; > CONSOLE_STDIN_SETTINGS \ > CONSOLE_STDOUT_SETTINGS > > +#ifdef CONFIG_ARM64 > +#define FDTFILE "allwinner/" CONFIG_DEFAULT_DEVICE_TREE ".dtb" > +#else > +#define FDTFILE CONFIG_DEFAULT_DEVICE_TREE ".dtb" > +#endif > + > #define CONFIG_EXTRA_ENV_SETTINGS \ > CONSOLE_ENV_SETTINGS \ > MEM_LAYOUT_ENV_SETTINGS \ > DFU_ALT_INFO_RAM \ > - "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ > + "fdtfile=" FDTFILE "\0" \ __stringify(FDTFILE) ? thanks!
Am 18.04.2017 um 07:45 schrieb Jagan Teki: > On Fri, Apr 14, 2017 at 10:14 PM, Andreas Färber <afaerber@suse.de> wrote: >> Currently $fdtfile is constructed from CONFIG_DEFAULT_TREE, containing >> the filename. However on arm64 that file is located in an allwinner >> subdirectory. >> >> To avoid the need for users/distros symlinking the .dtb files, prepend >> the vendor directory for ARM64. >> >> This aligns Pine64 with other boards such as Raspberry Pi 3. >> >> Signed-off-by: Andreas Färber <afaerber@suse.de> >> --- >> include/configs/sunxi-common.h | 8 +++++++- >> 1 file changed, 7 insertions(+), 1 deletion(-) >> >> diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h >> index 1d475b1..ad4012c 100644 >> --- a/include/configs/sunxi-common.h >> +++ b/include/configs/sunxi-common.h >> @@ -476,11 +476,17 @@ extern int soft_i2c_gpio_scl; >> CONSOLE_STDIN_SETTINGS \ >> CONSOLE_STDOUT_SETTINGS >> >> +#ifdef CONFIG_ARM64 >> +#define FDTFILE "allwinner/" CONFIG_DEFAULT_DEVICE_TREE ".dtb" >> +#else >> +#define FDTFILE CONFIG_DEFAULT_DEVICE_TREE ".dtb" >> +#endif >> + >> #define CONFIG_EXTRA_ENV_SETTINGS \ >> CONSOLE_ENV_SETTINGS \ >> MEM_LAYOUT_ENV_SETTINGS \ >> DFU_ALT_INFO_RAM \ >> - "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ >> + "fdtfile=" FDTFILE "\0" \ > > __stringify(FDTFILE) ? Why? You didn't do that before, and it worked fine for me on Pine64 and Orange Pi PC 2. Do you have a test case that breaks? Thanks, Andreas
On 04/14/2017 06:44 PM, Andreas Färber wrote: > Currently $fdtfile is constructed from CONFIG_DEFAULT_TREE, containing > the filename. However on arm64 that file is located in an allwinner > subdirectory. > > To avoid the need for users/distros symlinking the .dtb files, prepend > the vendor directory for ARM64. > > This aligns Pine64 with other boards such as Raspberry Pi 3. > > Signed-off-by: Andreas Färber <afaerber@suse.de> Looks reasonable to me. Reviewed-by: Alexander Graf <agraf@suse.de> Alex
On Thu, Apr 20, 2017 at 9:32 PM, Alexander Graf <agraf@suse.de> wrote: > On 04/14/2017 06:44 PM, Andreas Färber wrote: >> >> Currently $fdtfile is constructed from CONFIG_DEFAULT_TREE, containing >> the filename. However on arm64 that file is located in an allwinner >> subdirectory. >> >> To avoid the need for users/distros symlinking the .dtb files, prepend >> the vendor directory for ARM64. >> >> This aligns Pine64 with other boards such as Raspberry Pi 3. >> >> Signed-off-by: Andreas Färber <afaerber@suse.de> > > > Looks reasonable to me. > > Reviewed-by: Alexander Graf <agraf@suse.de> Applied to u-boot-sunxi/master thanks!
diff --git a/include/configs/sunxi-common.h b/include/configs/sunxi-common.h index 1d475b1..ad4012c 100644 --- a/include/configs/sunxi-common.h +++ b/include/configs/sunxi-common.h @@ -476,11 +476,17 @@ extern int soft_i2c_gpio_scl; CONSOLE_STDIN_SETTINGS \ CONSOLE_STDOUT_SETTINGS +#ifdef CONFIG_ARM64 +#define FDTFILE "allwinner/" CONFIG_DEFAULT_DEVICE_TREE ".dtb" +#else +#define FDTFILE CONFIG_DEFAULT_DEVICE_TREE ".dtb" +#endif + #define CONFIG_EXTRA_ENV_SETTINGS \ CONSOLE_ENV_SETTINGS \ MEM_LAYOUT_ENV_SETTINGS \ DFU_ALT_INFO_RAM \ - "fdtfile=" CONFIG_DEFAULT_DEVICE_TREE ".dtb\0" \ + "fdtfile=" FDTFILE "\0" \ "console=ttyS0,115200\0" \ SUNXI_MTDIDS_DEFAULT \ SUNXI_MTDPARTS_DEFAULT \
Currently $fdtfile is constructed from CONFIG_DEFAULT_TREE, containing the filename. However on arm64 that file is located in an allwinner subdirectory. To avoid the need for users/distros symlinking the .dtb files, prepend the vendor directory for ARM64. This aligns Pine64 with other boards such as Raspberry Pi 3. Signed-off-by: Andreas Färber <afaerber@suse.de> --- include/configs/sunxi-common.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-)