[coreboot] patch: beginnings of support for geode gx2, v2, and Kconfig

Uwe Hermann uwe at hermann-uwe.de
Fri Aug 28 19:00:16 CEST 2009


On Thu, Aug 27, 2009 at 10:40:04PM -0700, ron minnich wrote:
> Index: src/northbridge/amd/gx2/Kconfig
> ===================================================================
> --- src/northbridge/amd/gx2/Kconfig	(revision 0)
> +++ src/northbridge/amd/gx2/Kconfig	(revision 0)
> @@ -0,0 +1,27 @@
[...]
> +config NORTHBRIDGE_AMD_GX2
> +	bool
> +	default n
> +
> +config HAVE_HIGH_TABLES
> +	bool
> +	default y

What's the plan for HAVE_HIGH_TABLES? Some NB/SB files define it to y,
but the default is already y. Aren't all chipsets/boards supposed to
use HAVE_HIGH_TABLES=y already? Or are some not fully supported, yet?


> Index: src/northbridge/amd/gx2/northbridge.c
> ===================================================================
> --- src/northbridge/amd/gx2/northbridge.c	(revision 4596)
> +++ src/northbridge/amd/gx2/northbridge.c	(working copy)
> @@ -486,7 +486,6 @@
>  	printk_debug("gx2 north: enable_dev\n");
>  	void northbridgeinit(void);
>  	void chipsetinit(struct northbridge_amd_gx2_config *nb);
> -	void setup_realmode_idt(void);
>  	void do_vsmbios(void);
>          /* Set the operations if it is a special bus type */
>          if (dev->path.type == DEVICE_PATH_PCI_DOMAIN) {
> @@ -499,8 +498,6 @@
>  		cpubug();	
>  		chipsetinit(nb);
>  		setup_gx2();
> -		/* do this here for now -- this chip really breaks our device model */
> -		setup_realmode_idt();
>  		do_vsmbios();
>  		graphics_init();
>  		dev->ops = &pci_domain_ops;

Why this? Intentional?


> Index: src/cpu/amd/model_gx2/Kconfig
> ===================================================================
> --- src/cpu/amd/model_gx2/Kconfig	(revision 0)
> +++ src/cpu/amd/model_gx2/Kconfig	(revision 0)
> @@ -0,0 +1,3 @@
> +config CPU_AMD_GX2
> +	bool
> +	default false

Please use n (not false) for consistency, I think most of the kconfigs
use that, and also the Linux kernel IIRC.


Uwe.
-- 
http://www.hermann-uwe.de  | http://www.holsham-traders.de
http://www.crazy-hacks.org | http://www.unmaintained-free-software.org




More information about the coreboot mailing list