[U-Boot] [PATCH 0/4] Remove duplicate functions for power and sleep configuration

Christian Riesch christian.riesch at omicron.at
Wed Oct 12 13:31:16 CEST 2011


Hi,
these patches apply on top of Heiko Schocher's patches for the enbw_cmc
board. They remove the duplicate functions for the power and sleep
controller of the davinci devices.

The first patch renames the low level configuration functions since they
can not only be used for the AM1808 but for the entire da850 family.

The second patch corrects the mask for the state bitfield of the MDSTAT
registers. Similar patches have been already submitted for the Linux kernel
and other parts of u-boot, see e.g. http://patchwork.ozlabs.org/patch/114942/

Patch number three adds a function to set an LPSC module to Sync Reset
state as this is required for DDR memory controller initialization.

The forth patch finally replaces the PSC related functions in
arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c by those of psc.c.

I tested the DDR initialization functions on my board and they worked fine,
but of course I can only compile-test them for Heiko's board.

I am looking forward to your comments!

Prerequisites:

[U-Boot] arm, post, memory: fix bug if sdram base != 0x00000000
http://patchwork.ozlabs.org/patch/118208/

[U-Boot] : davinci: Replace CONFIG_PRELOADER with CONFIG_SPL_BUILD in board/davinci/common/misc.c
http://patchwork.ozlabs.org/patch/114482/

[U-Boot] arm, fdt: update ethernet mac address before booting Linux
http://patchwork.ozlabs.org/patch/114736/

[U-Boot] arm, logbuffer: make it compileclean
http://patchwork.ozlabs.org/patch/114740/

[U-Boot] cosmetic, post: Codingstyle cleanup
http://patchwork.ozlabs.org/patch/114742/

[U-Boot] arm, post: add missing post_time_ms for arm
http://patchwork.ozlabs.org/patch/114743/

[U-Boot,v2,1/3] arm, davinci: fix typo in arch/arm/cpu/arm926ejs/davinci/Makefile
http://patchwork.ozlabs.org/patch/118310/

[U-Boot,v2,2/3] arm, davinci: add DAVINCI_MMC_CLKID
http://patchwork.ozlabs.org/patch/118309/

[U-Boot,v2,3/3] arm, davinci: add support for am1808 based enbw_cmc board
http://patchwork.ozlabs.org/patch/118311/

Regards, Christian

Cc: Heiko Schocher <hs at denx.de>
Cc: Paulraj Sandeep <s-paulraj at ti.com>
Cc: Albert ARIBAUD <albert.u.boot at aribaud.net>

Christian Riesch (4):
  arm, davinci: Rename AM1808 lowlevel functions to DA850
  arm, davinci: Correct the MDSTAT.STATE mask
  arm, davinci: Add function lpsc_syncreset()
  arm, davinci: Remove the duplication of LPSC functions in
    da850_lowlevel.c

 arch/arm/cpu/arm926ejs/davinci/Makefile            |    2 +-
 arch/arm/cpu/arm926ejs/davinci/am1808_lowlevel.c   |  428 --------------------
 arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c    |  340 ++++++++++++++++
 arch/arm/cpu/arm926ejs/davinci/psc.c               |   20 +-
 .../arm/include/asm/arch-davinci/am1808_lowlevel.h |   44 --
 arch/arm/include/asm/arch-davinci/da850_lowlevel.h |   44 ++
 arch/arm/include/asm/arch-davinci/hardware.h       |    1 +
 board/enbw/enbw_cmc/enbw_cmc.c                     |    2 +-
 include/configs/enbw_cmc.h                         |   92 +++---
 9 files changed, 448 insertions(+), 525 deletions(-)
 delete mode 100644 arch/arm/cpu/arm926ejs/davinci/am1808_lowlevel.c
 create mode 100644 arch/arm/cpu/arm926ejs/davinci/da850_lowlevel.c
 delete mode 100644 arch/arm/include/asm/arch-davinci/am1808_lowlevel.h
 create mode 100644 arch/arm/include/asm/arch-davinci/da850_lowlevel.h



More information about the U-Boot mailing list