]> git.kernelconcepts.de Git - karo-tx-uboot.git/blob - patches/0132-ENGR00124912-MX53-Fix-board-ID-check-issue.patch
imported Ka-Ro specific additions to U-Boot 2009.08 for TX28
[karo-tx-uboot.git] / patches / 0132-ENGR00124912-MX53-Fix-board-ID-check-issue.patch
1 From e362247d0a17c4702835b0889e1149fa270976f2 Mon Sep 17 00:00:00 2001
2 From: Lily Zhang <r58066@freescale.com>
3 Date: Wed, 7 Jul 2010 13:27:01 +0800
4 Subject: [PATCH] ENGR00124912 MX53: Fix board ID check issue
5
6 Accoring to board identification table, the ADC data
7 register value range between "0xB9E79F - 0xC00000"
8 indicates 21.
9
10 Signed-off-by: Lily Zhang <r58066@freescale.com>
11 ---
12  board/freescale/mx53_evk/mx53_evk.c |    2 +-
13  1 files changed, 1 insertions(+), 1 deletions(-)
14
15 diff --git a/board/freescale/mx53_evk/mx53_evk.c b/board/freescale/mx53_evk/mx53_evk.c
16 index f8b553f..86ab2a1 100644
17 --- a/board/freescale/mx53_evk/mx53_evk.c
18 +++ b/board/freescale/mx53_evk/mx53_evk.c
19 @@ -358,7 +358,7 @@ static int __lookup_board_id(int adc_val)
20                 id = 19;
21         else if (adc_val < 0xB9E79F)
22                 id = 20;
23 -       else if (adc_val < 0xC00000)
24 +       else if (adc_val <= 0xC00000)
25                 id = 21;
26                 else
27                 return -1;
28 -- 
29 1.5.4.4
30