Skip to content

sunxi: minor cleanups and refactoring

Andre Przywara linux-sunxi u-boot 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4sunxi: remove unused CONFIG_MMC_SUNXI_SLOTboard/sunxi/board.c include/configs/sunxi-common.h scripts/config_whitelist.txt+7 -61 reply
2/4sunxi: remove bogus mmc_pinmux_setup() prototypeboard/sunxi/board.c+0 -41 reply
3/4sunxi: board: annotate #endif linesarch/arm/mach-sunxi/board.c arch/arm/mach-sunxi/clock_sun6i.c board/sunxi/board.c+11 -121 reply
4/4sunxi: move arch timer setup out of board/ directoryarch/arm/mach-sunxi/Makefile arch/arm/mach-sunxi/arch_timer.c arch/arm/mach-sunxi/board.c +1 more+54 -372 replies

Reviews trailers per patch

3 of 4 patches have a Reviewed-by or Acked-by.

PatchSamuel Holland
1/4R-b T-b
2/4R-b T-b
3/4R-b T-b
4/4T-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] sunxi: minor cleanups and refactoring

Just a collection of patches I came up with while trying to refactor and reorganise the Allwinner SPL code.
Patch 1/4 aims to replace Tom's patch [1], which made CONFIG_MMC_SUNXI_SLOT a proper Kconfig variable. A closer inspection reveals that we don't really need that at all.
Patch 2 and 3 are just random cleanups.
Patch 4 is a low hanging fruit in the effort to separate ARM specific code from strictly Allwinner platform routines. It also removes some #ifdef's.

Please have a look!

Cheers,
Andre

[1] https://lore.kernel.org/u-boot/[email protected]/

Andre Przywara (4):
sunxi: remove unused CONFIG_MMC_SUNXI_SLOT
sunxi: remove bogus mmc_pinmux_setup() prototype
sunxi: board: annotate #endif lines
sunxi: move arch timer setup out of board/ directory

 arch/arm/mach-sunxi/Makefile      |  4 +++
 arch/arm/mach-sunxi/arch_timer.c  | 39 +++++++++++++++++++++
 arch/arm/mach-sunxi/board.c       | 22 +++++++-----
 arch/arm/mach-sunxi/clock_sun6i.c |  4 +--
 board/sunxi/board.c               | 58 +++++++------------------------
 include/configs/sunxi-common.h    |  3 --
 scripts/config_whitelist.txt      |  1 -
 7 files changed, 72 insertions(+), 59 deletions(-)
 create mode 100644 arch/arm/mach-sunxi/arch_timer.c
Signature · 1 line
2.35.5