summaryrefslogtreecommitdiff
path: root/tools/bddb
diff options
context:
space:
mode:
authorwdenk <wdenk>2003-06-19 23:40:20 +0000
committerwdenk <wdenk>2003-06-19 23:40:20 +0000
commit6dd652fa4d8591a32e2707a91f4582ed13011b17 (patch)
tree52d7c375a3a33d634e7c30908a75bf9616d92854 /tools/bddb
parent52f52c1494eedaeacccad6e2331f4f638b48f5ab (diff)
downloadu-boot-imx-6dd652fa4d8591a32e2707a91f4582ed13011b17.zip
u-boot-imx-6dd652fa4d8591a32e2707a91f4582ed13011b17.tar.gz
u-boot-imx-6dd652fa4d8591a32e2707a91f4582ed13011b17.tar.bz2
Patches by Murray Jensen, 17 Jun 2003:
- Hymod board database mods: add "who" field and new xilinx chip types - provide new "init_cmd_timeout()" function so code external to "common/main.c" can use the "reset_cmd_timeout()" function before entering the main loop - add DTT support for adm1021 (new file dtt/adm1021.c; config slightly different. see include/configs/hymod.h for an example (requires CONFIG_DTT_ADM1021, CONFIG_DTT_SENSORS, and CFG_DTT_ADM1021 defined) - add new "eeprom_probe()" function which has similar args and behaves in a similar way to "eeprom_read()" etc. - add 8260 FCC ethernet loopback code (new "eth_loopback_test()" function which is enabled by defining CONFIG_ETHER_LOOPBACK_TEST) - gdbtools copyright update - ensure that set_msr() executes the "sync" and "isync" instructions after the "mtmsr" instruction in cpu/mpc8260/interrupts.c - 8260 I/O ports fix: Open Drain should be set last when configuring - add SIU IRQ defines for 8260 - allow LDSCRIPT override and OBJCFLAGS initialization: change to config.mk to allow board configurations to override the GNU linker script, selected via the LDSCRIPT, make variable, and to give an initial value to the OBJCFLAGS make variable - 8260 i2c enhancement: o correctly extends the timeout depending on the size of all queued messages for both transmit and receive o will not continue with receive if transmit times out o ensures that the error callback is done for all queued tx and rx messages o correctly detects both tx and rx timeouts, only delivers one to the callback, and does not overwrite an earlier error o logic in i2c_probe now correct - add "vprintf()" function so that "panic()" function can be technically correct - many Hymod board changes
Diffstat (limited to 'tools/bddb')
-rw-r--r--tools/bddb/brlog.php2
-rw-r--r--tools/bddb/defs.php12
-rw-r--r--tools/bddb/doedlog.php3
-rw-r--r--tools/bddb/donewlog.php3
-rw-r--r--tools/bddb/edlog.php3
-rw-r--r--tools/bddb/newlog.php3
6 files changed, 23 insertions, 3 deletions
diff --git a/tools/bddb/brlog.php b/tools/bddb/brlog.php
index 6e98c9c..fa651ae 100644
--- a/tools/bddb/brlog.php
+++ b/tools/bddb/brlog.php
@@ -73,6 +73,7 @@
<tr valign=top>
<th>logno / edit</th>
<th>date</th>
+<th>who</th>
<th width="70%">details</th>
</tr>
<?php
@@ -82,6 +83,7 @@
echo "<tr>\n";
print_cell("<a href=\"edlog.php?serno=$row[serno]&logno=$row[logno]\">$row[logno]</a>");
print_cell($row['date']);
+ print_cell($row['who']);
print_cell("<pre>" . urldecode($row['details']) . "</pre>");
echo "</tr>\n";
}
diff --git a/tools/bddb/defs.php b/tools/bddb/defs.php
index 0393dbd..9361419 100644
--- a/tools/bddb/defs.php
+++ b/tools/bddb/defs.php
@@ -58,8 +58,8 @@
$zbt_nbits = array(0,19,20,21,22);
// Xilinx attributes
- $xlxtyp_vals = array('','XCV300E','XCV400E','XCV600E');
- $xlxspd_vals = array('','6','7','8');
+ $xlxtyp_vals = array('','XCV300E','XCV400E','XCV600E','XC2V2000','XC2V3000','XC2V4000','XC2V6000');
+ $xlxspd_vals = array('','6','7','8','4','5');
$xlxtmp_vals = array('','COM','IND');
$xlxgrd_vals = array('','NORMAL','ENGSAMP');
@@ -449,7 +449,13 @@
// generate a (possibly not unique) random vendor ethernet address
// (setting bit 6 in the ethernet address - motorola wise i.e. bit 0
// is the most significant bit - means it is not an assigned ethernet
- // address). Also, make sure it is NOT a multicast ethernet address.
+ // address - it is a "locally administered" address). Also, make sure
+ // it is NOT a multicast ethernet address (by setting bit 7 to 0).
+ // e.g. the first byte of all ethernet addresses generated here will
+ // have 2 in the bottom two bits (incidentally, these are the first
+ // two bits transmitted on the wire, since the octets in ethernet
+ // addresses are transmitted LSB first).
+
function gen_eth_addr($serno) {
$ethaddr_high = (mt_rand(0, 65535) & 0xfeff) | 0x0200;
diff --git a/tools/bddb/doedlog.php b/tools/bddb/doedlog.php
index db27c37..f800471 100644
--- a/tools/bddb/doedlog.php
+++ b/tools/bddb/doedlog.php
@@ -26,6 +26,9 @@
$query.=" date='$date'";
}
+ if (isset($who))
+ $query.=", who='" . $who . "'";
+
if (isset($details))
$query.=", details='" . rawurlencode($details) . "'";
diff --git a/tools/bddb/donewlog.php b/tools/bddb/donewlog.php
index b00de95..35ba125 100644
--- a/tools/bddb/donewlog.php
+++ b/tools/bddb/donewlog.php
@@ -23,6 +23,9 @@
die("date is invalid (input '$date', yyyy-mm-dd '$y-$m-$d')");
$query.=", date='$date'";
+ if (isset($who))
+ $query.=", who='" . $who . "'";
+
if (isset($details))
$query.=", details='" . rawurlencode($details) . "'";
diff --git a/tools/bddb/edlog.php b/tools/bddb/edlog.php
index f819b46..7f311bf 100644
--- a/tools/bddb/edlog.php
+++ b/tools/bddb/edlog.php
@@ -41,6 +41,9 @@
// date date
print_field("date", $row);
+ // who char(20)
+ print_field("who", $row);
+
// details text
print_field_multiline("details", $row, 60, 10, 'text_filter');
diff --git a/tools/bddb/newlog.php b/tools/bddb/newlog.php
index 5ec42ac..3f51639 100644
--- a/tools/bddb/newlog.php
+++ b/tools/bddb/newlog.php
@@ -26,6 +26,9 @@
// date date
print_field("date", array('date' => date("Y-m-d")));
+ // who char(20)
+ print_field("who", "");
+
// details text
print_field_multiline("details", array(), 60, 10, 'text_filter');