> Rev C4 will be a 720MHz version and we plan to start shipping that
> version in a month, depending on parts availbility. No, it will not
> be able to do full HD.
is there a list of differences between C3 and C4?
rday
--
========================================================================
Robert P. J. Day Waterloo, Ontario, CANADA
Linux Consulting, Training and Kernel Pedantry.
Web page: http://crashcourse.ca
Twitter: http://twitter.com/rpjday
========================================================================
> Just two [diffs between C3 and C4 revs]. The 720MHz transition and a
> change in the way we power the USB Host PHY in an attempt to fix the
> USB PHY noise issue..
in short, nothing of any *functional* difference.
> Basically. It does require a change in UBoot for the power change on
> the PHY, but no real features are being added.
Will C4 have a new board ID so we can have a single uboot for rev B,
revC1-3 and RevC4?
regards,
Koen
revD is something else:
> The Rev D version will have the camera interface on it and is scheuled for sometime around May, 2010.
>
> Gerald
Gerald Coley wrote:U-Boot patch to detect this for review and test in attachment.
> GPIO171 is 1
> GPIO172 is 0
> GPIO173 is 1
Best regards
Dirk
Btw.: What's about calling "C4" instead revision D?
> On Sun, Nov 1, 2009 at 11:16 AM, Dirk Behme <dirk....@googlemail.com>wrote:
>
>> Gerald Coley wrote:
>>> Of course.
>> :)
>>
>> Let us know the details as soon as possible.
>>
>> Thanks
>>
>> Dirk
>>
>>> On Sun, Nov 1, 2009 at 8:36 AM, Koen Kooi <ko...@beagleboard.org> wrote:
>>>
>>>> Op 1 nov 2009, om 14:58 heeft Gerald Coley het volgende geschreven:
>>>>
>>>>> Basically. It does require a change in UBoot for the power change on
>>>>> the PHY, but no real features are being added.
>>>> Will C4 have a new board ID so we can have a single uboot for rev B,
>>>> revC1-3 and RevC4?
>>>>
>>>> regards,
>>>>
>>>> Koen
>>>>
>>
>
> >
>
Subject: [PATCH] OMAP3: Beagle: Update board revision detection
From: Dirk Behme <dirk....@googlemail.com>
New BeagleBoard revision C4 uses a new ID.
Known C4 changes:
- Use OMAP3 720MHz devices.
- Change in the way the USB Host PHY is powered.
Signed-off-by: Dirk Behme <dirk....@googlemail.com>
---
Note: Due to lack of C4, not tested on C4 yet.
board/ti/beagle/beagle.c | 66 +++++++++++++++++++++++++++++------------------
board/ti/beagle/beagle.h | 8 ++++-
2 files changed, 48 insertions(+), 26 deletions(-)
Index: u-boot-main/board/ti/beagle/beagle.c
===================================================================
--- u-boot-main.orig/board/ti/beagle/beagle.c
+++ u-boot-main/board/ti/beagle/beagle.c
@@ -38,7 +38,7 @@
#include <asm/mach-types.h>
#include "beagle.h"
-static int beagle_revision_c;
+static int beagle_revision;
/*
* Routine: board_init
@@ -60,41 +60,59 @@ int board_init(void)
/*
* Routine: beagle_get_revision
* Description: Return the revision of the BeagleBoard this code is running on.
- * If it is a revision Ax/Bx board, this function returns 0,
- * on a revision C board you will get a 1.
*/
int beagle_get_revision(void)
{
- return beagle_revision_c;
+ return beagle_revision;
}
/*
* Routine: beagle_identify
- * Description: Detect if we are running on a Beagle revision Ax/Bx or
- * Cx. This can be done by GPIO_171. If this is low, we are
- * running on a revision C board.
+ * Description: Detect if we are running on a Beagle revision Ax/Bx,
+ * C2, C3 or Cx (x >= 4). This can be done by reading
+ * the level of GPIO173, GPIO172 and GPIO171. This should
+ * result in
+ * GPIO173, GPIO172, GPIO171: 1 1 1 => Ax/Bx
+ * GPIO173, GPIO172, GPIO171: 1 1 0 => C1
+ * GPIO173, GPIO172, GPIO171: 1 0 0 => C3
+ * GPIO173, GPIO172, GPIO171: 1 0 1 => Cx (x >= 4)
*/
void beagle_identify(void)
{
- beagle_revision_c = 0;
- if (!omap_request_gpio(171)) {
- unsigned int val;
-
- omap_set_gpio_direction(171, 1);
- val = omap_get_gpio_datain(171);
- omap_free_gpio(171);
-
- if (val)
- beagle_revision_c = 0;
- else
- beagle_revision_c = 1;
- }
+ omap_request_gpio(171);
+ omap_request_gpio(172);
+ omap_request_gpio(173);
+ omap_set_gpio_direction(171, 1);
+ omap_set_gpio_direction(172, 1);
+ omap_set_gpio_direction(173, 1);
+
+ beagle_revision = omap_get_gpio_datain(173) << 2 |
+ omap_get_gpio_datain(172) << 1 |
+ omap_get_gpio_datain(171);
+ omap_free_gpio(171);
+ omap_free_gpio(172);
+ omap_free_gpio(173);
printf("Board revision ");
- if (beagle_revision_c)
- printf("C\n");
- else
+
+ printf("0x%02x ", beagle_revision);
+
+ switch (beagle_revision) {
+ case REVISION_AXBX:
printf("Ax/Bx\n");
+ break;
+ case REVISION_C1:
+ printf("C1\n");
+ break;
+ case REVISION_C3:
+ printf("C3\n");
+ break;
+ case REVISION_C4:
+ printf(">= C4\n");
+ break;
+ default:
+ printf("unknown 0x%02x\n", beagle_revision);
+ }
}
/*
@@ -137,7 +155,7 @@ void set_muxconf_regs(void)
{
MUX_BEAGLE();
- if (beagle_revision_c) {
+ if (beagle_revision != REVISION_AXBX) {
MUX_BEAGLE_C();
}
}
Index: u-boot-main/board/ti/beagle/beagle.h
===================================================================
--- u-boot-main.orig/board/ti/beagle/beagle.h
+++ u-boot-main/board/ti/beagle/beagle.h
@@ -33,7 +33,11 @@ const omap3_sysinfo sysinfo = {
#endif
};
-#define BOARD_REVISION_MASK (0x1 << 11)
+/* BeagleBoard revisions */
+#define REVISION_AXBX 0x7
+#define REVISION_C1 0x6
+#define REVISION_C3 0x4
+#define REVISION_C4 0x5
/*
* IEN - Input Enable
@@ -264,7 +268,7 @@ const omap3_sysinfo sysinfo = {
MUX_VAL(CP(HDQ_SIO), (IDIS | PTU | EN | M4)) /*GPIO_170*/\
MUX_VAL(CP(MCSPI1_CLK), (IEN | PTU | EN | M4)) /*GPIO_171*/\
MUX_VAL(CP(MCSPI1_SIMO), (IEN | PTU | EN | M4)) /*GPIO_172*/\
- MUX_VAL(CP(MCSPI1_SOMI), (IEN | PTD | DIS | M0)) /*McSPI1_SOMI*/\
+ MUX_VAL(CP(MCSPI1_SOMI), (IEN | PTU | EN | M4)) /*GPIO_173*/\
MUX_VAL(CP(MCSPI1_CS0), (IEN | PTD | EN | M0)) /*McSPI1_CS0*/\
MUX_VAL(CP(MCSPI1_CS1), (IDIS | PTD | EN | M0)) /*McSPI1_CS1*/\
MUX_VAL(CP(MCSPI1_CS2), (IDIS | PTD | DIS | M4)) /*GPIO_176*/\
>
> Gerald Coley wrote:
>> The 720MHz will NOT have more RAM, same as C3, 256MB. Rev D is the
>> next
>> major spin of the board due in April/May timeframe of next year
>> which will
>> have more than you can handle in the way of changes.
>>
>> If everyone chooses to ignore the 720MHZ on C4, as that is all we
>> can get to
>> build these boards, then I guess that is for everyone to chime in
>> on. The HW
>> will be marked C4.
>
> Ok.
>
> Gerald: Do you think
>
> GPIO173, GPIO172, GPIO171: 1 1 1 => Ax/Bx
> GPIO173, GPIO172, GPIO171: 1 1 0 => C1, C2
> GPIO173, GPIO172, GPIO171: 1 0 0 => C3
> GPIO173, GPIO172, GPIO171: 1 0 1 => C4
> GPIO173, GPIO172, GPIO171: 0 0 0 => D
>
> this decoding is correct, then?
>
> Koen: While I agree that it would be nice to add rev D (0 0 0), too, I
> wonder what might change until April/May and if we shouldn't wait a
> little more until things are more settled?
I wouldn't expect the ID to change, but I know the mux needs a few big
changes. My goal is to have rev C4 and rev D detection in upstream
uboot ASAP, not to have a perfect revD experience :)
regards,
Koen
I don't think we are able to switch Beagle into secure privileged
state. I'm not sure if OMAP35x even can be switched into secure mode
(in contrast to OMAP34x). If I'm wrong here, please correct me.
Please send a patch.
Mans: As our NEON expert: Any comments from your side?
Many thanks
Dirk
A fix for beagleboard is trivial, it can be done by something like this:
http://siarhei.siamashka.name/gitweb/?p=u-boot.git;a=commit;h=fdb8cd6eccadb67425a6f13f1c67b61f51f5aec9
--
Best regards,
Siarhei Siamashka
Looks about right as far as your changes go. The asm in that function
is awful, and it's only by luck that it works at all.
--
Måns Rullgård
ma...@mansr.com
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=.
Thanks
Dirk
--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagl...@googlegroups.com.
To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
Subject: [PATCH] OMAP3: Beagle: Update board revision detection
From: Dirk Behme <dirk....@googlemail.com>
New BeagleBoard revision C4 uses a new ID.
Known C4 changes:
- Use OMAP3 720MHz devices.
- Change in the way the USB Host PHY is powered.
Signed-off-by: Dirk Behme <dirk....@googlemail.com>
---
Note: Due to lack of C4, not tested on C4 yet.
board/ti/beagle/beagle.c | 68 ++++++++++++++++++++++++++++++-----------------
board/ti/beagle/beagle.h | 9 ++++--
2 files changed, 51 insertions(+), 26 deletions(-)
Index: u-boot-main/board/ti/beagle/beagle.c
===================================================================
--- u-boot-main.orig/board/ti/beagle/beagle.c
+++ u-boot-main/board/ti/beagle/beagle.c
@@ -38,7 +38,7 @@
#include <asm/mach-types.h>
#include "beagle.h"
-static int beagle_revision_c;
+static int beagle_revision;
/*
* Routine: board_init
@@ -60,41 +60,61 @@ int board_init(void)
/*
* Routine: beagle_get_revision
* Description: Return the revision of the BeagleBoard this code is running on.
- * If it is a revision Ax/Bx board, this function returns 0,
- * on a revision C board you will get a 1.
*/
int beagle_get_revision(void)
{
- return beagle_revision_c;
+ return beagle_revision;
}
/*
* Routine: beagle_identify
- * Description: Detect if we are running on a Beagle revision Ax/Bx or
- * Cx. This can be done by GPIO_171. If this is low, we are
- * running on a revision C board.
+ * Description: Detect if we are running on a Beagle revision Ax/Bx,
+ * C1/2, C3, C4 or D. This can be done by reading
+ * the level of GPIO173, GPIO172 and GPIO171. This should
+ * result in
+ * GPIO173, GPIO172, GPIO171: 1 1 1 => Ax/Bx
+ * GPIO173, GPIO172, GPIO171: 1 1 0 => C1/2
+ * GPIO173, GPIO172, GPIO171: 1 0 0 => C3
+ * GPIO173, GPIO172, GPIO171: 1 0 1 => C4
+ * GPIO173, GPIO172, GPIO171: 0 0 0 => D
+ switch (beagle_revision) {
+ case REVISION_AXBX:
printf("Ax/Bx\n");
+ break;
+ case REVISION_C1:
+ printf("C1/2\n");
+ break;
+ case REVISION_C3:
+ printf("C3\n");
+ break;
+ case REVISION_C4:
+ printf("C4\n");
+ break;
+ case REVISION_D:
+ printf("D\n");
+ break;
+ default:
+ printf("unknown 0x%02x\n", beagle_revision);
+ }
}
/*
@@ -137,7 +157,7 @@ void set_muxconf_regs(void)
{
MUX_BEAGLE();
- if (beagle_revision_c) {
+ if (beagle_revision != REVISION_AXBX) {
MUX_BEAGLE_C();
}
}
Index: u-boot-main/board/ti/beagle/beagle.h
===================================================================
--- u-boot-main.orig/board/ti/beagle/beagle.h
+++ u-boot-main/board/ti/beagle/beagle.h
@@ -33,7 +33,12 @@ const omap3_sysinfo sysinfo = {
#endif
};
-#define BOARD_REVISION_MASK (0x1 << 11)
+/* BeagleBoard revisions */
+#define REVISION_AXBX 0x7
+#define REVISION_C1 0x6
+#define REVISION_C3 0x4
+#define REVISION_C4 0x5
+#define REVISION_D 0x0
/*
* IEN - Input Enable
@@ -264,7 +269,7 @@ const omap3_sysinfo sysinfo = {
--
You received this message because you are subscribed to the Google Groups "Beagle Board" group.
To post to this group, send email to beagl...@googlegroups.com.
To unsubscribe from this group, send email to beagleboard...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/beagleboard?hl=en.