On Fri, 2009-08-21 at 14:40 +0200, Harald Gutmann wrote: > On Friday 21 August 2009 14:20:56 Cristi Magherusan wrote: > > On Fri, 2009-08-21 at 13:27 +0200, Harald Gutmann wrote: > > > On Friday 21 August 2009 00:06:44 ron minnich wrote: > > > > let's start over. can you tell me what changes you have made to the > > > > tree at this time? > > > > > > The tree itself has no changes in source. > > > I just added a few Kconfig and Makefile.inc files. > > > > > > I think it's not necessary to post the patch right now, the .config > > > should be enough to track that down, or is a full diff against svn > > > needed? > > > > > > The .config which is generated by Kconfig is attached. > > > > I think the problem is caused by your socket AM2 CPU, which is missing > > from Kbuild. > Thanks for that hint, there have been some errors in that files, but your > patch > doesn't solve the problem. > > > > > The attached patch may help. > Good point, but doesn't solve it.
I've seen you had already implemented what I sent, and my patch was wrong (just copy/pasted from socket F), sorry for this. Your big patch is ok to help us replicate your work, but can't be committed as a whole, which is what we should have as a purpose. So let's stop reinventing the wheel for each new board, and make smaller patches that add a single piece of functionality which can be commented on, fixed and committed to the tree. For example the attached patch adds support for AM2 CPUs (I fixed the 0x11 issue). There's still a debatable issue remaining, which is the inclusion of the src/cpu/amd/model_fxx/Kconfig file. Is it fine if it's done like in here? Adding it to all the CPU sockets that may need it causes errors due to double inclusions. Thanks, Cristi The patch is Signed-off by: Cristi Magherusan <cristi.magheru...@net.utcluj.ro>
diff --git a/src/cpu/amd/Kconfig b/src/cpu/amd/Kconfig index cec4916..2cd1761 100644 --- a/src/cpu/amd/Kconfig +++ b/src/cpu/amd/Kconfig @@ -1,8 +1,10 @@ #source src/cpu/amd/socket_754/Kconfig #source src/cpu/amd/socket_939/Kconfig #source src/cpu/amd/socket_940/Kconfig -#source src/cpu/amd/socket_AM2/Kconfig +source src/cpu/amd/socket_AM2/Kconfig #source src/cpu/amd/socket_AM2r2/Kconfig source src/cpu/amd/socket_F/Kconfig #source src/cpu/amd/socket_F_1207/Kconfig #source src/cpu/amd/socket_S1G1/Kconfig + +source src/cpu/amd/model_fxx/Kconfig diff --git a/src/cpu/amd/Makefile.inc b/src/cpu/amd/Makefile.inc index c63bc2b..578de4f 100644 --- a/src/cpu/amd/Makefile.inc +++ b/src/cpu/amd/Makefile.inc @@ -1 +1,2 @@ subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += socket_F +subdirs-$(CONFIG_CPU_AMD_SOCKET_AM2) += socket_AM2 diff --git a/src/cpu/amd/microcode/Makefile.inc b/src/cpu/amd/microcode/Makefile.inc new file mode 100644 index 0000000..26513df --- /dev/null +++ b/src/cpu/amd/microcode/Makefile.inc @@ -0,0 +1 @@ +obj-y += microcode.o diff --git a/src/cpu/amd/socket_AM2/Kconfig b/src/cpu/amd/socket_AM2/Kconfig new file mode 100644 index 0000000..337cc1d --- /dev/null +++ b/src/cpu/amd/socket_AM2/Kconfig @@ -0,0 +1,27 @@ +config CPU_AMD_SOCKET_AM2 + bool + default false + +config CPU_SOCKET_TYPE + hex + default 0x11 + depends on CPU_AMD_SOCKET_AM2 + +config K8_REV_F_SUPPORT + hex + default 1 + depends on CPU_AMD_SOCKET_AM2 + +#Opteron K8 1G HT Support +config K8_HT_FREQ_1G_SUPPORT + hex + default 1 + depends on CPU_AMD_SOCKET_AM2 + +#DDR2 and REG +config DIMM_SUPPORT + hex + default 0x0004 + depends on CPU_AMD_SOCKET_AM2 + + diff --git a/src/cpu/amd/socket_AM2/Makefile.inc b/src/cpu/amd/socket_AM2/Makefile.inc new file mode 100644 index 0000000..d90c4c5 --- /dev/null +++ b/src/cpu/amd/socket_AM2/Makefile.inc @@ -0,0 +1,16 @@ +obj-y += socket_AM2.o +subdirs-y += ../model_fxx + +subdirs-y += ../dualcore +subdirs-y += ../mtrr +subdirs-y += ../microcode +subdirs-y += ../../x86/tsc +subdirs-y += ../../x86/mtrr +subdirs-y += ../../x86/fpu +subdirs-y += ../../x86/mmx +subdirs-y += ../../x86/sse +subdirs-y += ../../x86/lapic +subdirs-y += ../../x86/cache +subdirs-y += ../../x86/mtrr +subdirs-y += ../../x86/pae +subdirs-y += ../../x86/smm diff --git a/src/cpu/amd/socket_F/Kconfig b/src/cpu/amd/socket_F/Kconfig index c933400..30e9080 100644 --- a/src/cpu/amd/socket_F/Kconfig +++ b/src/cpu/amd/socket_F/Kconfig @@ -29,4 +29,3 @@ config CPU_SOCKET_TYPE default 0x10 depends on CPU_AMD_SOCKET_F -source src/cpu/amd/model_fxx/Kconfig diff --git a/src/cpu/amd/socket_F/Makefile.inc b/src/cpu/amd/socket_F/Makefile.inc index bd9885c..a3be24c 100644 --- a/src/cpu/amd/socket_F/Makefile.inc +++ b/src/cpu/amd/socket_F/Makefile.inc @@ -1,14 +1,14 @@ -obj-$(CONFIG_CPU_AMD_SOCKET_F) += socket_F.o -subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += ../model_fxx -subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += ../dualcore -subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += ../mtrr -subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += ../../x86/tsc -subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += ../../x86/mtrr -subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += ../../x86/fpu -subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += ../../x86/mmx -subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += ../../x86/sse -subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += ../../x86/lapic -subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += ../../x86/cache -subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += ../../x86/mtrr -subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += ../../x86/pae -subdirs-$(CONFIG_CPU_AMD_SOCKET_F) += ../../x86/smm +obj-y += socket_F.o +subdirs-y += ../model_fxx +subdirs-y += ../dualcore +subdirs-y += ../mtrr +subdirs-y += ../../x86/tsc +subdirs-y += ../../x86/mtrr +subdirs-y += ../../x86/fpu +subdirs-y += ../../x86/mmx +subdirs-y += ../../x86/sse +subdirs-y += ../../x86/lapic +subdirs-y += ../../x86/cache +subdirs-y += ../../x86/mtrr +subdirs-y += ../../x86/pae +subdirs-y += ../../x86/smm
signature.asc
Description: This is a digitally signed message part
-- coreboot mailing list: coreboot@coreboot.org http://www.coreboot.org/mailman/listinfo/coreboot