]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: mvebu: board/Synology: Unify legacy kernel support
authorPhil Sutter <phil@nwl.cc>
Sun, 7 Mar 2021 21:22:27 +0000 (22:22 +0100)
committerStefan Roese <sr@denx.de>
Thu, 8 Apr 2021 06:50:17 +0000 (08:50 +0200)
commite471ddf0f3472423e8cdf8cc7d06a0b8e2abfebc
tree84b99594186f00155aa207add68976c0d5aa07f1
parentc57f92050429779ae04357f88e1c7e5d02c6d315
arm: mvebu: board/Synology: Unify legacy kernel support

Move the relevant bits from ds109.{c,h} into common/ and adjust the code
to fit both DS109 and DS414. Moreover:

* Introduce syno_board_id() which translates CONFIG_MACH_TYPE into the
  expected board ID tag value.

* Properly initialize isusbhost, mac and mtu fields from env variables.

* Set the right bootargs/bootcmd to correctly boot legacy kernel out of
  the (DS414) box. Getting the ramdisk location right is a bit tedious.

Cc: Walter Schweizer <swwa@users.sourceforge.net>
Signed-off-by: Phil Sutter <phil@nwl.cc>
Reviewed-by: Stefan Roese <sr@denx.de>
board/Synology/common/Makefile [new file with mode: 0644]
board/Synology/common/legacy.c [new file with mode: 0644]
board/Synology/common/legacy.h [new file with mode: 0644]
board/Synology/ds109/ds109.c
board/Synology/ds109/ds109.h
configs/ds414_defconfig
include/configs/ds109.h
include/configs/ds414.h