]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm: vf610: fix anadig register struct
authorMarcel Ziswiler <marcel@ziswiler.com>
Tue, 11 Mar 2014 17:43:57 +0000 (18:43 +0100)
committerAlbert ARIBAUD <albert.u.boot@aribaud.net>
Mon, 7 Apr 2014 18:15:29 +0000 (20:15 +0200)
commit25839c01975b865f2e6a0dac056d207e9288a281
treee8a0d4efca867a6b74d51983feeb9cd6c756b065
parent42f5e8a25ad1a7504502e7f11ff4d563f1d6f1dd
arm: vf610: fix anadig register struct

The anadig_reg structure started at the wrong offset (fixed by adding
reserved_0x000[4]), was missing some reserved field required for
alignment purpose (reserved_0x094[3] between pll4_denom and pll6_ctrl)
and further contained a too short reserved field causing further miss-
alignment (reserved_0x0C4[7]). Also, rename all the reserved fields
and using a memory offset based scheme for.

Discovered and tested by temporarily putting the following debug
instrumentation into board_init():
    struct anadig_reg *anadig = (struct anadig_reg *)ANADIG_BASE_ADDR;
    printf("&anadig->pll3_ctrl=0x%p\n", &anadig->pll3_ctrl);
    printf("&anadig->pll5_ctrl=0x%p\n", &anadig->pll5_ctrl);

Signed-off-by: Marcel Ziswiler <marcel@ziswiler.com>
[stefan@agner.ch: regrouped patch]
Signed-off-by: Stefan Agner <stefan@agner.ch>
arch/arm/include/asm/arch-vf610/crm_regs.h