summaryrefslogtreecommitdiff
path: root/util/newconfig/config.g
diff options
context:
space:
mode:
authorGreg Watson <jarrah@users.sourceforge.net>2003-07-21 04:20:08 +0000
committerGreg Watson <jarrah@users.sourceforge.net>2003-07-21 04:20:08 +0000
commit8275bad6f640d0da5ead72984f1efe32e6172d7d (patch)
tree6bf67678b269cb6ad5ff0365acef72d362dc9607 /util/newconfig/config.g
parent54b3d233ed4a66bc9fbc8af7dd742af7d8f2aca3 (diff)
more chip stuff
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@990 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util/newconfig/config.g')
-rw-r--r--util/newconfig/config.g14
1 files changed, 7 insertions, 7 deletions
diff --git a/util/newconfig/config.g b/util/newconfig/config.g
index 3938fd8abe..2e2b04f273 100644
--- a/util/newconfig/config.g
+++ b/util/newconfig/config.g
@@ -580,7 +580,7 @@ class partobj:
if (self.chipconfig):
debug.info(debug.gencode, "gencode: chipconfig(%d)" % self.instance)
file.write("#include \"%s/chip.h\"\n" % self.dir)
- file.write("extern struct superio_control %s_control;\n" % \
+ file.write("extern struct chip_control %s_control;\n" % \
self.flatten_name)
file.write("struct %s_config %s_config_%d" % (\
self.flatten_name ,\
@@ -590,7 +590,7 @@ class partobj:
file.write("\t= {\n")
for i in self.registercode:
file.write( "\t %s" % i)
- file.write("\t}\n")
+ file.write("\t};\n")
else:
file.write(";")
file.write("\n");
@@ -616,7 +616,7 @@ class partobj:
self.flatten_name )
# generate the pointer to the isntance
# of the chip struct
- file.write(" .chip_config = (void *) &%s_config_%d,\n" %\
+ file.write(" .chip_info = (void *) &%s_config_%d,\n" %\
(self.flatten_name, self.instance ))
file.write("};\n")
@@ -1510,7 +1510,7 @@ def writeimagemakefile(image):
file.write("\t$(CC) -c $(CFLAGS) -o $@ $<\n")
#file.write("%s\n" % objrule[2])
- # special rule for chips_target.c
+ # special rule for chip_target.c
file.write("chip_%s.o: chip_%s.c\n" % (target_name, target_name))
file.write("\t$(CC) -c $(CFLAGS) -o $@ $<\n")
@@ -1632,7 +1632,7 @@ def dumptree(part, lvl):
debug.info(debug.dumptree, "DONE DUMPTREE")
def writecode(image):
- filename = os.path.join(img_dir, "chips_%s.c" % target_name)
+ filename = os.path.join(img_dir, "chip_%s.c" % target_name)
print "Creating", filename
file = open(filename, 'w+')
# gen all the forward references
@@ -1642,9 +1642,9 @@ def writecode(image):
file.write("struct chip ")
while (i <= image.numparts()):
if (i):
- file.write("cdev%d "% i)
+ file.write(", dev%d"% i)
else:
- file.write("root ")
+ file.write("root")
i = i + 1
file.write(";\n")
gencode(image.getroot(), file)