diff options
author | Mario Six <mario.six@gdsys.cc> | 2019-03-29 10:18:07 +0100 |
---|---|---|
committer | Mario Six <mario.six@gdsys.cc> | 2019-05-21 08:03:38 +0200 |
commit | b12b545836746217e9f417bd5c3b13557a201a34 (patch) | |
tree | 8c3726a702bd21511638e99cd6a3a73631197d21 /board/gdsys/mpc8308/hrcon.c | |
parent | 9c454827f1d1939032ea2b7811a8e674655d58fb (diff) |
gdsys: mpc8308: Use shadow register for output GPIO values
Since the gpio output status on MPC8xxx cannot be read back, it has to
be buffered locally.
Signed-off-by: Dirk Eibach <dirk.eibach@gdsys.cc>
Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'board/gdsys/mpc8308/hrcon.c')
-rw-r--r-- | board/gdsys/mpc8308/hrcon.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/board/gdsys/mpc8308/hrcon.c b/board/gdsys/mpc8308/hrcon.c index 79e3b25de8..d14a28ec94 100644 --- a/board/gdsys/mpc8308/hrcon.c +++ b/board/gdsys/mpc8308/hrcon.c @@ -287,8 +287,8 @@ void mpc8308_setup_hw(void) /* * set "startup-finished"-gpios */ - setbits_be32(&immr->gpio[0].dir, (BIT(31 - 11) | BIT(31 - 12))); - setbits_be32(&immr->gpio[0].dat, BIT(31 - 12)); + setbits_be32(&immr->gpio[0].dir, BIT(31 - 11) | BIT(31 - 12)); + setbits_gpio0_out(BIT(31 - 12)); } int mpc8308_get_fpga_done(uint fpga) |