summaryrefslogtreecommitdiff
path: root/board/gdsys/mpc8308/mpc8308.c
diff options
context:
space:
mode:
authorMario Six <mario.six@gdsys.cc>2019-03-29 10:18:06 +0100
committerMario Six <mario.six@gdsys.cc>2019-05-21 08:03:38 +0200
commit9c454827f1d1939032ea2b7811a8e674655d58fb (patch)
tree02fb988e2f638eda1a8e794dc6237ca89d3a1e8b /board/gdsys/mpc8308/mpc8308.c
parent3f902185f0c6d1179bf24c8e2749b94588e98fb3 (diff)
gdsys: mpc8308: Fix style violations
Fix some style violations in the gdsys MPC8308 board files, and make the code more readable. Signed-off-by: Mario Six <mario.six@gdsys.cc>
Diffstat (limited to 'board/gdsys/mpc8308/mpc8308.c')
-rw-r--r--board/gdsys/mpc8308/mpc8308.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/board/gdsys/mpc8308/mpc8308.c b/board/gdsys/mpc8308/mpc8308.c
index 0112244fc7..9fe1d66c60 100644
--- a/board/gdsys/mpc8308/mpc8308.c
+++ b/board/gdsys/mpc8308/mpc8308.c
@@ -24,14 +24,14 @@
DECLARE_GLOBAL_DATA_PTR;
-int get_fpga_state(unsigned dev)
+int get_fpga_state(uint dev)
{
return gd->arch.fpga_state[dev];
}
int board_early_init_f(void)
{
- unsigned k;
+ uint k;
for (k = 0; k < CONFIG_SYS_FPGA_COUNT; ++k)
gd->arch.fpga_state[k] = 0;
@@ -41,8 +41,8 @@ int board_early_init_f(void)
int board_early_init_r(void)
{
- unsigned k;
- unsigned ctr;
+ uint k;
+ uint ctr;
for (k = 0; k < CONFIG_SYS_FPGA_COUNT; ++k)
gd->arch.fpga_state[k] = 0;
@@ -59,7 +59,7 @@ int board_early_init_r(void)
for (k = 0; k < CONFIG_SYS_FPGA_COUNT; ++k) {
ctr = 0;
while (!mpc8308_get_fpga_done(k)) {
- udelay(100000);
+ mdelay(100);
if (ctr++ > 5) {
gd->arch.fpga_state[k] |=
FPGA_STATE_DONE_FAILED;
@@ -86,7 +86,7 @@ int board_early_init_r(void)
if (val == REFLECTION_TESTPATTERN_INV)
break;
- udelay(100000);
+ mdelay(100);
if (ctr++ > 5) {
gd->arch.fpga_state[k] |=
FPGA_STATE_REFLECTION_FAILED;