[U-Boot] [PATCH] ARM OMAP : Correct Invalid Timer Register Field Declaration in omap1510.h & omap730.h

Hi,
Resend - Subject Corrected. Sorry for the mistake
I searched the Entire u-boot-1.3.4\ directory for "PTV_BIT" declaration & couldn't find any. Rather MPUTIM_PTV_BIT is defined which is the correct declaration.
Below Patch Corrects the declaration of MPUTIM_PTV_MASK bit in both omap1510.h & omap730.h.
Kindly update me if i am wrong.
TIA
Regards Gururaja
- Correct Invalid #define of MPUTIM_PTV_MASK for omap1510 & omap730 register definition
MPUTIM_PTV_MASK is defined as #define MPUTIM_PTV_MASK (0x7<<PTV_BIT)
while it should have been #define MPUTIM_PTV_MASK (0x7<<MPUTIM_PTV_BIT)
- Below Patch corrects the same
Signed-off-by: Gururaja Hebbar gururajakr@sanyo.co.in --- include/configs/omap1510.h | 2 +- include/configs/omap730.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/configs/omap1510.h b/include/configs/omap1510.h index 6787b19..931560c 100755 --- a/include/configs/omap1510.h +++ b/include/configs/omap1510.h @@ -482,7 +482,7 @@ /* CNTL_TIMER register bits */ #define MPUTIM_FREE (1<<6) #define MPUTIM_CLOCK_ENABLE (1<<5) -#define MPUTIM_PTV_MASK (0x7<<PTV_BIT) +#define MPUTIM_PTV_MASK (0x7<<MPUTIM_PTV_BIT) #define MPUTIM_PTV_BIT 2 #define MPUTIM_AR (1<<1) #define MPUTIM_ST (1<<0) diff --git a/include/configs/omap730.h b/include/configs/omap730.h index 03abcb3..04d5144 100755 --- a/include/configs/omap730.h +++ b/include/configs/omap730.h @@ -150,7 +150,7 @@ /* MPU_CNTL_TIMER register bits */ #define MPUTIM_FREE (1<<6) #define MPUTIM_CLOCK_ENABLE (1<<5) -#define MPUTIM_PTV_MASK (0x7<<PTV_BIT) +#define MPUTIM_PTV_MASK (0x7<<MPUTIM_PTV_BIT) #define MPUTIM_PTV_BIT 2 #define MPUTIM_AR (1<<1) #define MPUTIM_ST (1<<0)
participants (1)
-
Gururaja Hebbar K R