On Fri, Aug 26, 2016 at 06:33:31PM +0530, Lokesh Vutla wrote:
> 
> 
> On Friday 26 August 2016 11:23 AM, Sekhar Nori wrote:
> > On Friday 26 August 2016 10:38 AM, Lokesh Vutla wrote:
> >>
> >>
> >> On Friday 26 August 2016 10:36 AM, Lokesh Vutla wrote:
> >>> [..snip..]
> >>>
> >>>> diff --git a/include/configs/am57xx_evm.h b/include/configs/am57xx_evm.h
> >>>> index 46e8d4cfd715..3d5ae1ae1d54 100644
> >>>> --- a/include/configs/am57xx_evm.h
> >>>> +++ b/include/configs/am57xx_evm.h
> >>>> @@ -41,6 +41,47 @@
> >>>>          "uuid_disk=${uuid_gpt_disk};" \
> >>>>          "name=rootfs,start=2MiB,size=-,uuid=${uuid_gpt_rootfs}"
> >>>>  
> >>>> +#define DFU_ALT_INFO_MMC \
> >>>> +        "dfu_alt_info_mmc=" \
> >>>> +        "boot part 0 1;" \
> >>>> +        "rootfs part 0 2;" \
> >>>> +        "MLO fat 0 1;" \
> >>>> +        "MLO.raw raw 0x100 0x100;" \
> >>>> +        "u-boot.img.raw raw 0x300 0x400;" \
> >>>> +        "spl-os-args.raw raw 0x80 0x80;" \
> >>>> +        "spl-os-image.raw raw 0x900 0x2000;" \
> >>>> +        "spl-os-args fat 0 1;" \
> >>>> +        "spl-os-image fat 0 1;" \
> >>>> +        "u-boot.img fat 0 1;" \
> >>>> +        "uEnv.txt fat 0 1\0"
> >>>> +
> >>>> +#define DFU_ALT_INFO_EMMC \
> >>>> +        "dfu_alt_info_emmc=" \
> >>>> +        "rawemmc raw 0 3751936;" \
> >>>> +        "boot part 1 1;" \
> >>>> +        "rootfs part 1 2;" \
> >>>> +        "MLO fat 1 1;" \
> >>>> +        "MLO.raw raw 0x100 0x100;" \
> >>>> +        "u-boot.img.raw raw 0x300 0x400;" \
> >>>> +        "spl-os-args.raw raw 0x80 0x80;" \
> >>>> +        "spl-os-image.raw raw 0x900 0x2000;" \
> >>>> +        "spl-os-args fat 1 1;" \
> >>>> +        "spl-os-image fat 1 1;" \
> >>>> +        "u-boot.img fat 1 1;" \
> >>>> +        "uEnv.txt fat 1 1\0"
> >>>> +
> >>>> +#define DFU_ALT_INFO_RAM \
> >>>> +        "dfu_alt_info_ram=" \
> >>>> +        "kernel ram 0x80200000 0x4000000;" \
> >>>> +        "fdt ram 0x80f80000 0x80000;" \
> >>>> +        "ramdisk ram 0x81000000 0x4000000\0"
> >>>> +
> >>>> +#define DFUARGS \
> >>>> +        "dfu_bufsiz=0x10000\0" \
> >>>> +        DFU_ALT_INFO_MMC \
> >>>> +        DFU_ALT_INFO_EMMC \
> >>>> +        DFU_ALT_INFO_RAM \
> >>>> +
> >>>
> >>> Can you also add DFU_ALT_INFO_QSPI as am57xx-idk has QSPI.
> >>
> >> Any reason why these cannot be moved to ti_omap5_common.h?
> > 
> > No reason, I guess, just that its being done per platform today.
> 
> As Kishon mentioned on the other thread, Tom objected to this idea
> saying this is dependent on board.
> 
> > 
> > If we are going to make it common, why not a step further and move it to
> > ti_armv7_common.h so that similar looking defines from am335x_evm.h and
> > am43xx_evm.h can be eliminated as well? Or do you see any reason why
> > am335x and am437x need to be kept different.
> 
> Well, I do agree it is board dependent, but most of the OMAP  based TI
> platforms follow the same convention regarding DFU args. (keystone has a
> bit different).  So, I would suggest to move it to ti_armv7_omap.h. Tom,
> are you ok with this?

This is another example of needing to find a place and a way to put
vendor specific stuff somewhere.  Along with needing to figure out how
to move environment stuff out of include/configs/ if we can.  The half
idea I'm toying with right now is include/environment/.... and making
various fragments be included in env_default.h.

I suppose to start with, we could move the TI-as-vendor-suggested DFU
args there, once we have board/ti/Kconfig for the other
TI-as-vendor-suggested stuff :)

-- 
Tom

Attachment: signature.asc
Description: Digital signature

_______________________________________________
U-Boot mailing list
[email protected]
http://lists.denx.de/mailman/listinfo/u-boot

Reply via email to