diff options
author | Wolfgang Denk <wd@pollux.denx.de> | 2007-01-15 13:41:04 +0100 |
---|---|---|
committer | Wolfgang Denk <wd@denx.de> | 2007-01-15 13:41:04 +0100 |
commit | f11033e739017c5c4eac55f859b8b222ee8d602c (patch) | |
tree | 4b07b98f378e685c096937c2aeca06e006698af7 /board/uc101/uc101.c | |
parent | ddd4123336aad881f50dc34892ac150cfa8143fe (diff) | |
parent | ca43ba18e910206ef8063e4b22d282630bff3fd2 (diff) |
Merge with /home/hs/SC3/u-boot
Some code cleanup.
Diffstat (limited to 'board/uc101/uc101.c')
-rw-r--r-- | board/uc101/uc101.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/board/uc101/uc101.c b/board/uc101/uc101.c index 90624e5cefe..b803585845f 100644 --- a/board/uc101/uc101.c +++ b/board/uc101/uc101.c @@ -65,12 +65,10 @@ #define GP_SIMP_SET_O(n, v) (pgpio->simple_dvo = v ? \ (pgpio->simple_dvo | (1 << n)) : \ (pgpio->simple_dvo & ~(1 << n)) ) - + #define GP_SIMP_GET_O(n) ((pgpio->simple_dvo >> n) & 1) #define GP_SIMP_GET_I(n) ((pgpio->simple_ival >> n) & 1) - - #define GP_SINT_SET_O(n, v) (pgpio->sint_dvo = v ? \ (pgpio->sint_dvo | (1 << n)) : \ (pgpio->sint_dvo & ~(1 << n)) ) @@ -228,7 +226,7 @@ int checkboard (void) static void init_ports (void) { - volatile struct mpc5xxx_gpio *pgpio = + volatile struct mpc5xxx_gpio *pgpio = (struct mpc5xxx_gpio *)MPC5XXX_GPIO; GP_SIMP_ENABLE_I(GPIO_USB_8); /* HEX Bit 3 */ @@ -371,4 +369,3 @@ void hw_watchdog_reset(void) *(vu_long *)MPC5XXX_GPT0_ENABLE = GPT_OUT_0; } #endif - |