All of lore.kernel.org
 help / color / mirror / Atom feed
From: Sascha Laue <Sascha.Laue@gmx.biz>
To: u-boot@lists.denx.de
Subject: [U-Boot-Users] [PATCH] lwmon5 dspic POST spezification
Date: Thu, 20 Mar 2008 13:05:57 +0100	[thread overview]
Message-ID: <20080320120557.182790@gmx.net> (raw)
In-Reply-To: <87d4pp7gh1.fsf@denx.de>

Ups.

Best regards

Sascha Laue

diff -u -r -N u-boot/post/board/lwmon5/sysmon.c u-boot-mod/post/board/lwmon5/sysmon.c
--- u-boot/post/board/lwmon5/sysmon.c	2008-03-19 15:33:26.000000000 +0100
+++ u-boot-mod/post/board/lwmon5/sysmon.c	2008-03-20 08:55:10.000000000 +0100
@@ -34,9 +34,10 @@
  * The test passes when all the following voltages and temperatures
  * are within allowed ranges:
  *
- * Temperature                -40 .. +85 C
- * +5V                      +4.75 .. +5.25 V
- * +5V standby              +4.75 .. +5.25 V
+ * Temperature                -40 .. +90 ?C
+ * Tempreature_Display		  -35 .. +85 ?C
+ * +5V                      +4.50 .. +5.50 V
+ * +5V standby              +3.50 .. +5.50 V
  *
  * LCD backlight is not enabled if temperature values are not within
  * allowed ranges (-30 .. + 80). The brightness of backlite can be
@@ -62,6 +63,21 @@
 
 #define	RELOC(x) if (x != NULL) x = (void *) ((ulong) (x) + gd->reloc_off)
 
+#define REG_TEMPERATURE                   0x12BC
+#define REG_VOLTAGE_5V                    0x12CA
+#define REG_VOLTAGE_5V_STANDBY            0x12C6
+
+#define TEMPERATURE_MIN                     (-40)  /* ?C */
+#define TEMPERATURE_MAX                     (+90)  /* ?C */
+#define TEMPERATURE_DISPLAY_MIN             (-35)  /* ?C */
+#define TEMPERATURE_DISPLAY_MAX             (+85)  /* ?C */  
+
+#define VOLTAGE_5V_MIN                    (+4500)  /* mV */
+#define VOLTAGE_5V_MAX                    (+5500)  /* mV */
+
+#define VOLTAGE_5V_STANDBY_MIN            (+3500)  /* mV */
+#define VOLTAGE_5V_STANDBY_MAX            (+5500)  /* mV */
+
 typedef struct sysmon_s sysmon_t;
 typedef struct sysmon_table_s sysmon_table_t;
 
@@ -110,16 +126,22 @@
 static sysmon_table_t sysmon_table[] =
 {
     {"Temperature", " C", &sysmon_dspic, NULL, sysmon_backlight_disable,
-     1, 1, -32768, 32767, 0xFFFF, 0x8000-40, 0x8000+85, 0,
-                                  0x8000-30, 0x8000+80, 0, 0x12BC},
+     1, 1, -0x8000, 0x7FFF, 0xFFFF, 
+	 0x8000 + TEMPERATURE_MIN , 0x8000 + TEMPERATURE_MAX , 0,
+     0x8000 + TEMPERATURE_DISPLAY_MIN, 0x8000 + TEMPERATURE_DISPLAY_MAX, 0, 
+	 REG_TEMPERATURE},
 
     {"+ 5 V", "V", &sysmon_dspic, NULL, NULL,
-     100, 1000, -0x8000, 0x7FFF, 0xFFFF, 0x8000+4750, 0x8000+5250, 0,
-                                         0x8000+4750, 0x8000+5250, 0, 0x12CA},
+     100, 1000, -0x8000, 0x7FFF, 0xFFFF, 
+	 0x8000 + VOLTAGE_5V_MIN , 0x8000 + VOLTAGE_5V_MAX, 0,
+	 0x8000 + VOLTAGE_5V_MIN , 0x8000 + VOLTAGE_5V_MAX, 0, 
+	 REG_VOLTAGE_5V},
 
     {"+ 5 V standby", "V", &sysmon_dspic, NULL, NULL,
-     100, 1000, -0x8000, 0x7FFF, 0xFFFF, 0x8000+4750, 0x8000+5250, 0,
-                                         0x8000+4750, 0x8000+5250, 0, 0x12C6},
+     100, 1000, -0x8000, 0x7FFF, 0xFFFF, 
+	 0x8000 + VOLTAGE_5V_STANDBY_MIN, 0x8000 + VOLTAGE_5V_STANDBY_MAX, 0,
+     0x8000 + VOLTAGE_5V_STANDBY_MIN, 0x8000 + VOLTAGE_5V_STANDBY_MAX, 0, 
+	 REG_VOLTAGE_5V_STANDBY},
 };
 static int sysmon_table_size = sizeof(sysmon_table) / sizeof(sysmon_table[0]);
 

-------- Original-Nachricht --------
> Datum: Thu, 20 Mar 2008 13:00:26 +0100
> Von: "Markus Klotzb?cher" <mk@denx.de>
> An: "Sascha Laue" <saschalaue@gmx.net>
> CC: u-boot-users at lists.sourceforge.net
> Betreff: Re: [U-Boot-Users] [PATCH] lwmon5 dspic POST spezification

> Dear Sascha,
> 
> "Sascha Laue" <saschalaue@gmx.net> writes:
> 
> > we modified the specification for the lwmon5 board dspic POST. 
> > Additionally I have add defines for the temperature- and voltagevalues.
> >
> > Signed-of-by: Sascha Laue <sascha.laue@liebherr.com>
> > Signed-of-by: Marcel Brasch <marcel.brasch@liebherr.com>
> >
> > @@ -34,9 +34,10 @@
> >   * The test passes when all the following voltages and temperatures
> >   * are within allowed ranges:
> 
> Ups. It seems you forgot to copy the patch header.
> 
> Best regards
> 
> Markus Klotzbuecher
> 
> --
> DENX Software Engineering GmbH,     MD: Wolfgang Denk & Detlev Zundel
> HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
> Phone: +49-8142-66989-0 Fax: +49-8142-66989-80  Email: office at denx.de
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
> _______________________________________________
> U-Boot-Users mailing list
> U-Boot-Users at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/u-boot-users

  reply	other threads:[~2008-03-20 12:05 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-20 11:54 [U-Boot-Users] [PATCH] lwmon5 dspic POST spezification Sascha Laue
2008-03-20 12:00 ` Markus Klotzbücher
2008-03-20 12:05   ` Sascha Laue [this message]
2008-03-25 23:18     ` Wolfgang Denk
2008-04-01  7:56       ` Sascha Laue
2008-04-01  8:10         ` Sascha Laue
2008-04-28 20:41         ` Wolfgang Denk
  -- strict thread matches above, loose matches on Subject: below --
2008-04-30 13:16 Sascha Laue
2008-04-30 19:56 ` Wolfgang Denk
2008-04-30 13:23 Sascha Laue
2008-04-30 20:29 ` Wolfgang Denk

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20080320120557.182790@gmx.net \
    --to=sascha.laue@gmx.biz \
    --cc=u-boot@lists.denx.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.