summaryrefslogtreecommitdiff
path: root/usr
diff options
context:
space:
mode:
authorvenki <none@none>2006-07-18 23:26:53 -0700
committervenki <none@none>2006-07-18 23:26:53 -0700
commite32cd585e45b9f19db8e971dfa93046993fced0f (patch)
tree73ca9554cd51ab6c4ca61bf558f0997987325dc5 /usr
parent13506d1eefbbc37e2f12a0528831d9f6d4c361d7 (diff)
downloadillumos-gate-e32cd585e45b9f19db8e971dfa93046993fced0f.tar.gz
6436993 prtfru does not show PSU frudata after it is unplugged and re-inserted
Diffstat (limited to 'usr')
-rw-r--r--usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c9
-rw-r--r--usr/src/cmd/picl/plugins/sun4u/seattle/frudr/fru_PS0.info10
-rw-r--r--usr/src/cmd/picl/plugins/sun4u/seattle/frudr/fru_PS1.info10
3 files changed, 20 insertions, 9 deletions
diff --git a/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c b/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
index 36f2063542..08aff14102 100644
--- a/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
+++ b/usr/src/cmd/picl/plugins/sun4u/mpxu/frudr/piclfrudr.c
@@ -172,6 +172,7 @@ static picld_plugin_reg_t my_reg_info = {
#define PSU2_NAME "PSU2"
#define PSU3_NAME "PSU3"
#define PS_DEVICE_NAME "power-supply-fru-prom"
+#define PSU_COMPATIBLE "i2c-at24c64"
/*
* Seattle/Boston PSU defines
@@ -184,6 +185,7 @@ static picld_plugin_reg_t my_reg_info = {
#define SEATTLE_PS1_ADDR 0x6e
#define SEATTLE_PS0_UNITADDR "0,6c"
#define SEATTLE_PS1_UNITADDR "0,6e"
+#define SEATTLE_PSU_COMPATIBLE "i2c-at34c02"
#define BOSTON_PSU_I2C_BUS_DEV "/devices/i2c@1f,520000:devctl"
#define BOSTON_PSU_DEV \
"/devices/i2c@1f,520000/power-supply-fru-prom@0,%x"
@@ -196,6 +198,7 @@ static picld_plugin_reg_t my_reg_info = {
#define BOSTON_PS1_UNITADDR "0,32"
#define BOSTON_PS2_UNITADDR "0,52"
#define BOSTON_PS3_UNITADDR "0,72"
+#define BOSTON_PSU_COMPATIBLE "i2c-at34c02"
/*
* disk defines
@@ -2664,6 +2667,7 @@ create_i2c_node(char *ap_id)
devctl_hdl_t bus_hdl;
devctl_hdl_t dev_hdl;
char dev_path[MAXPATHLEN];
+ char *compatible;
/* create seeprom node */
nd_reg[0] = 0;
@@ -2673,12 +2677,15 @@ create_i2c_node(char *ap_id)
case PLAT_SEATTLE1U:
case PLAT_SEATTLE2U:
bus_hdl = devctl_bus_acquire(SEATTLE_PSU_I2C_BUS_DEV, 0);
+ compatible = SEATTLE_PSU_COMPATIBLE;
break;
case PLAT_BOSTON:
bus_hdl = devctl_bus_acquire(BOSTON_PSU_I2C_BUS_DEV, 0);
+ compatible = BOSTON_PSU_COMPATIBLE;
break;
default:
bus_hdl = devctl_bus_acquire(PSU_I2C_BUS_DEV, 0);
+ compatible = PSU_COMPATIBLE;
break;
}
@@ -2687,7 +2694,7 @@ create_i2c_node(char *ap_id)
/* device definition properties */
ddef_hdl = devctl_ddef_alloc(PS_DEVICE_NAME, 0);
- (void) devctl_ddef_string(ddef_hdl, "compatible", "i2c-at24c64");
+ (void) devctl_ddef_string(ddef_hdl, "compatible", compatible);
(void) devctl_ddef_string(ddef_hdl, "device_type", "seeprom");
(void) devctl_ddef_int_array(ddef_hdl, "reg", 2, nd_reg);
diff --git a/usr/src/cmd/picl/plugins/sun4u/seattle/frudr/fru_PS0.info b/usr/src/cmd/picl/plugins/sun4u/seattle/frudr/fru_PS0.info
index 015d6e99df..eb71c413f2 100644
--- a/usr/src/cmd/picl/plugins/sun4u/seattle/frudr/fru_PS0.info
+++ b/usr/src/cmd/picl/plugins/sun4u/seattle/frudr/fru_PS0.info
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -73,12 +73,14 @@ id("%Z%%M% %I% %E% SMI")
VERSION 1.1
VERBOSE 1
-/* create a /platform node for the seeprom */
+/*
+ * create /platform seeprom node properties
+ */
name:/platform/i2c@1f,530000/power-supply-fru-prom@0,6c
- PROP binding-name string r 0 "i2c-at24c64"
+ PROP binding-name string r 0 "i2c-at34c02"
PROP driver-name string r 0 "seeprom"
PROP devfs-path string r 0 "/i2c@1f,530000/power-supply-fru-prom"
- PROP compatible string r 0 "i2c-at24c64"
+ PROP compatible string r 0 "i2c-at34c02"
PROP device_type string r 0 "fru-prom"
PROP UnitAddress string r 0 "0,6c"
diff --git a/usr/src/cmd/picl/plugins/sun4u/seattle/frudr/fru_PS1.info b/usr/src/cmd/picl/plugins/sun4u/seattle/frudr/fru_PS1.info
index bce215f460..308cc774bc 100644
--- a/usr/src/cmd/picl/plugins/sun4u/seattle/frudr/fru_PS1.info
+++ b/usr/src/cmd/picl/plugins/sun4u/seattle/frudr/fru_PS1.info
@@ -20,7 +20,7 @@
*/
/*
- * Copyright 2005 Sun Microsystems, Inc. All rights reserved.
+ * Copyright 2006 Sun Microsystems, Inc. All rights reserved.
* Use is subject to license terms.
*/
@@ -73,12 +73,14 @@ id("%Z%%M% %I% %E% SMI")
VERSION 1.1
VERBOSE 1
-/* create a /platform node for the seeprom */
+/*
+ * create /platform seeprom node properties
+ */
name:/platform/i2c@1f,530000/power-supply-fru-prom@0,6e
- PROP binding-name string r 0 "i2c-at24c64"
+ PROP binding-name string r 0 "i2c-at34c02"
PROP driver-name string r 0 "seeprom"
PROP devfs-path string r 0 "/i2c@1f,530000/power-supply-fru-prom"
- PROP compatible string r 0 "i2c-at24c64"
+ PROP compatible string r 0 "i2c-at34c02"
PROP device_type string r 0 "fru-prom"
PROP UnitAddress string r 0 "0,6e"