[LinuxBIOS] r2735 - trunk/LinuxBIOSv2/src/mainboard/agami/aruma

svn at openbios.org svn at openbios.org
Thu Jul 12 17:56:03 CEST 2007


Author: stepan
Date: 2007-07-12 17:56:02 +0200 (Thu, 12 Jul 2007)
New Revision: 2735

Modified:
   trunk/LinuxBIOSv2/src/mainboard/agami/aruma/Config.lb
   trunk/LinuxBIOSv2/src/mainboard/agami/aruma/Options.lb
   trunk/LinuxBIOSv2/src/mainboard/agami/aruma/cache_as_ram_auto.c
   trunk/LinuxBIOSv2/src/mainboard/agami/aruma/mainboard.c
Log:
some agami i2c merges

Signed-off-by: Stefan Reinauer <stepan at coresystems.de>
Acked-by: Stefan Reinauer <stepan at coresystems.de>



Modified: trunk/LinuxBIOSv2/src/mainboard/agami/aruma/Config.lb
===================================================================
--- trunk/LinuxBIOSv2/src/mainboard/agami/aruma/Config.lb	2007-07-12 13:13:56 UTC (rev 2734)
+++ trunk/LinuxBIOSv2/src/mainboard/agami/aruma/Config.lb	2007-07-12 15:56:02 UTC (rev 2735)
@@ -241,9 +241,7 @@
 
 dir /pc80
 
-if CONFIG_CHIP_NAME
-	config chip.h
-end
+config chip.h
 
 # config for agami/aruma
 chip northbridge/amd/amdk8/root_complex
@@ -323,42 +321,52 @@
 				device pci 1.1 on end
 				device pci 1.2 on end
 				device pci 1.3 on 
-					chip drivers/generic/generic
-						#phillips pca9545 smbus mux
-						device i2c 70 on 
-							# analog_devices adm1026	
-							chip drivers/generic/generic
-								device i2c 2c on end
+                                        chip drivers/i2c/i2cmux2 # pca9545 smbus mux
+                                                device i2c 71 on     #pca9545 channel0
+                                                        chip drivers/i2c/adm1026
+                                                                device i2c 2d on end
+                                                        end
+                                                end
+						device i2c 71 on     #pca9545 channel1
+                                                        chip drivers/generic/generic # fan board / pstray behind another mux
+                                                                device i2c 2d on end
+                                                        end
+                                                end
+                                        end
+                                        chip drivers/i2c/i2cmux2 # pca9543 smbus mux
+                                                device i2c 73 on     #pca9543 channel0
+							chip drivers/generic/generic #dimm 0-0-0
+								device i2c 50 on end
 							end
+							chip drivers/generic/generic #dimm 0-0-1
+								device i2c 51 on end
+							end 
+							chip drivers/generic/generic #dimm 0-1-0
+								device i2c 52 on end
+							end 
+							chip drivers/generic/generic #dimm 0-1-1
+								device i2c 53 on end
+							end 
 						end
-						device i2c 70 on end
-						device i2c 70 on end
-						device i2c 70 on end
+
+                                                device i2c 73 on     #pca9543 channel1
+							chip drivers/generic/generic #dimm 1-0-0
+								device i2c 50 on end 
+							end
+							chip drivers/generic/generic #dimm 1-0-1
+								device i2c 51 on end
+							end 
+							chip drivers/generic/generic #dimm 1-1-0
+								device i2c 52 on end
+							end 
+							chip drivers/generic/generic #dimm 1-1-1
+								device i2c 53 on end
+							end 
+						end
+					end # chip end
+					chip drivers/generic/generic # ICS950405AF
+						device i2c 69 on end
 					end
-#					chip drivers/generic/generic #dimm 0-0-0
-#						device i2c 50 on end
-#					end
-#					chip drivers/generic/generic #dimm 0-0-1
-#						device i2c 51 on end
-#					end 
-#					chip drivers/generic/generic #dimm 0-1-0
-#						device i2c 52 on end
-#					end 
-#					chip drivers/generic/generic #dimm 0-1-1
-#						device i2c 53 on end
-#					end 
-#					chip drivers/generic/generic #dimm 1-0-0
-#						device i2c 54 on end 
-#					end
-#					chip drivers/generic/generic #dimm 1-0-1
-#						device i2c 55 on end
-#					end 
-#					chip drivers/generic/generic #dimm 1-1-0
-#						device i2c 56 on end
-#					end 
-#					chip drivers/generic/generic #dimm 1-1-1
-#						device i2c 57 on end
-#					end 
 				end
 				device pci 1.5 off end
 				device pci 1.6 on end

Modified: trunk/LinuxBIOSv2/src/mainboard/agami/aruma/Options.lb
===================================================================
--- trunk/LinuxBIOSv2/src/mainboard/agami/aruma/Options.lb	2007-07-12 13:13:56 UTC (rev 2734)
+++ trunk/LinuxBIOSv2/src/mainboard/agami/aruma/Options.lb	2007-07-12 15:56:02 UTC (rev 2735)
@@ -93,7 +93,15 @@
 # 256k
 default FALLBACK_SIZE=0x40000
 
+
 ##
+## Set this.
+##
+
+default CONFIG_CHIP_NAME=1
+
+
+##
 ## Build code for the fallback boot
 ##
 default HAVE_FALLBACK_BOOT=1

Modified: trunk/LinuxBIOSv2/src/mainboard/agami/aruma/cache_as_ram_auto.c
===================================================================
--- trunk/LinuxBIOSv2/src/mainboard/agami/aruma/cache_as_ram_auto.c	2007-07-12 13:13:56 UTC (rev 2734)
+++ trunk/LinuxBIOSv2/src/mainboard/agami/aruma/cache_as_ram_auto.c	2007-07-12 15:56:02 UTC (rev 2735)
@@ -257,6 +257,10 @@
 	memreset_setup();
 	sdram_initialize(nodes, ctrl);
 
+	/* Reset SMBus switches to access the ADM1026 */
+        smbus_send_byte(SMBUS_SWITCH1, 0x0);
+        smbus_send_byte(SMBUS_SWITCH2, 0x0);
+
 	post_cache_as_ram();
 
 }

Modified: trunk/LinuxBIOSv2/src/mainboard/agami/aruma/mainboard.c
===================================================================
--- trunk/LinuxBIOSv2/src/mainboard/agami/aruma/mainboard.c	2007-07-12 13:13:56 UTC (rev 2734)
+++ trunk/LinuxBIOSv2/src/mainboard/agami/aruma/mainboard.c	2007-07-12 15:56:02 UTC (rev 2735)
@@ -97,7 +97,7 @@
 }
 #endif
 
-#if 0
+#if 1
 static void handle_smbus_error(int value, const char *msg)
 {
 	if (value >= 0) {
@@ -118,7 +118,7 @@
 	}
 }
 
-#define ADM1026_DEVICE 0x2c /* 0x2e or 0x2d */
+#define ADM1026_DEVICE 0x2d /* 0x2e or 0x2c */
 #define ADM1026_REG_CONFIG1 0x00
 #define CFG1_MONITOR     0x01
 #define CFG1_INT_ENABLE  0x02
@@ -235,7 +235,7 @@
 		cpu_volts, delta);
 }
 
-#define SMBUS_MUX 0x70
+#define SMBUS_MUX 0x71
 
 static void do_verify_cpu_voltages(void)
 {
@@ -250,7 +250,7 @@
 	if (!smbus_dev) {
 		die("SMBUS controller not found\n");
 	}
-	
+
 	/* Find the smbus mux */
 	mux_path.type         = DEVICE_PATH_I2C;
 	mux_path.u.i2c.device = SMBUS_MUX;
@@ -309,31 +309,22 @@
 {
 	root_dev_init(dev);
 
-	do_verify_cpu_voltages();
+	printk_info("Initializing mainboard components... ");
+	// do_verify_cpu_voltages();
+	printk_info("ok\n");
 
 	printk_info("Initializing mainboard specific functions... ");
 	fixup_aruma();
 	printk_info("ok\n");
 }
 
-static struct device_operations mainboard_operations = {
-	.read_resources   = root_dev_read_resources,
-	.set_resources    = root_dev_set_resources,
-	.enable_resources = root_dev_enable_resources,
-	.init             = mainboard_init,
-#if !DEBUG
-	.scan_bus         = root_dev_scan_bus,
-#else
-	.scan_bus         = scan_root_bus,
-#endif
-	.enable           = 0,
-};
-
 static void enable_dev(struct device *dev)
 {
-	dev->ops = &mainboard_operations;
+	dev->ops->init = mainboard_init;
 }
+
 struct chip_operations mainboard_agami_aruma_ops = {
+	CHIP_NAME("AGAMI Aruma Mainboard")
 	.enable_dev = enable_dev, 
 };
 





More information about the coreboot mailing list