AMD Geode cpus: apply un-written naming rules
Kconfig directives to select chip drivers for compile literally match the chip directory names capitalized and underscored. Rename directories and Kconfig as follows: model_lx -> geode_lx model_gx1 -> geode_gx1 model_gx2 -> geode_gx2 Change-Id: Ib8bf1e758b88f9efed1cf8b11c76b796388e7147 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/613 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
This commit is contained in:
committed by
Stefan Reinauer
parent
50759ed4ff
commit
7916f4cef6
@ -16,9 +16,9 @@ source src/cpu/amd/socket_S1G1/Kconfig
|
||||
|
||||
source src/cpu/amd/model_fxx/Kconfig
|
||||
source src/cpu/amd/model_10xxx/Kconfig
|
||||
source src/cpu/amd/model_gx1/Kconfig
|
||||
source src/cpu/amd/model_gx2/Kconfig
|
||||
source src/cpu/amd/model_lx/Kconfig
|
||||
source src/cpu/amd/geode_gx1/Kconfig
|
||||
source src/cpu/amd/geode_gx2/Kconfig
|
||||
source src/cpu/amd/geode_lx/Kconfig
|
||||
|
||||
source src/cpu/amd/sc520/Kconfig
|
||||
|
||||
|
@ -8,9 +8,9 @@ subdirs-$(CONFIG_CPU_AMD_SOCKET_AM2R2) += socket_AM2r2
|
||||
subdirs-$(CONFIG_CPU_AMD_SOCKET_AM3) += socket_AM3
|
||||
subdirs-$(CONFIG_CPU_AMD_SOCKET_ASB2) += socket_ASB2
|
||||
subdirs-$(CONFIG_CPU_AMD_SOCKET_C32) += socket_C32
|
||||
subdirs-$(CONFIG_CPU_AMD_GX1) += model_gx1
|
||||
subdirs-$(CONFIG_CPU_AMD_GX2) += model_gx2
|
||||
subdirs-$(CONFIG_CPU_AMD_LX) += model_lx
|
||||
subdirs-$(CONFIG_CPU_AMD_GEODE_GX1) += geode_gx1
|
||||
subdirs-$(CONFIG_CPU_AMD_GEODE_GX2) += geode_gx2
|
||||
subdirs-$(CONFIG_CPU_AMD_GEODE_LX) += geode_lx
|
||||
subdirs-$(CONFIG_CPU_AMD_SC520) += sc520
|
||||
subdirs-$(CONFIG_CPU_AMD_SOCKET_S1G1) += socket_S1G1
|
||||
|
||||
|
@ -17,16 +17,17 @@
|
||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
##
|
||||
|
||||
config CPU_AMD_GX1
|
||||
config CPU_AMD_GEODE_GX1
|
||||
bool
|
||||
|
||||
if CPU_AMD_GEODE_GX1
|
||||
|
||||
config DCACHE_RAM_BASE
|
||||
hex
|
||||
default 0xc0000
|
||||
depends on CPU_AMD_GX1
|
||||
|
||||
config DCACHE_RAM_SIZE
|
||||
hex
|
||||
default 0x01000
|
||||
depends on CPU_AMD_GX1
|
||||
|
||||
endif # CPU_AMD_GEODE_GX1
|
@ -22,7 +22,7 @@ subdirs-y += ../../x86/tsc
|
||||
subdirs-y += ../../x86/lapic
|
||||
subdirs-y += ../../x86/cache
|
||||
subdirs-y += ../../x86/smm
|
||||
driver-y += model_gx1_init.c
|
||||
driver-y += geode_gx1_init.c
|
||||
|
||||
cpu_incs += $(src)/cpu/amd/model_gx1/cpu_setup.inc
|
||||
cpu_incs += $(src)/cpu/amd/model_gx1/gx_setup.inc
|
||||
cpu_incs += $(src)/cpu/amd/geode_gx1/cpu_setup.inc
|
||||
cpu_incs += $(src)/cpu/amd/geode_gx1/gx_setup.inc
|
@ -73,7 +73,7 @@ unsigned long addr;
|
||||
}
|
||||
#endif
|
||||
|
||||
static void model_gx1_init(device_t dev)
|
||||
static void geode_gx1_init(device_t dev)
|
||||
{
|
||||
#if 0
|
||||
gx1_cpu_setup();
|
||||
@ -87,7 +87,7 @@ static void model_gx1_init(device_t dev)
|
||||
};
|
||||
|
||||
static struct device_operations cpu_dev_ops = {
|
||||
.init = model_gx1_init,
|
||||
.init = geode_gx1_init,
|
||||
};
|
||||
|
||||
static struct cpu_device_id cpu_table[] = {
|
@ -17,10 +17,10 @@
|
||||
## Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||
##
|
||||
|
||||
config CPU_AMD_GX2
|
||||
config CPU_AMD_GEODE_GX2
|
||||
bool
|
||||
|
||||
if CPU_AMD_GX2
|
||||
if CPU_AMD_GEODE_GX2
|
||||
|
||||
config CPU_SPECIFIC_OPTIONS
|
||||
def_bool y
|
||||
@ -55,5 +55,4 @@ config VSA_FILENAME
|
||||
help
|
||||
The path and filename of the file to use as VSA.
|
||||
|
||||
endif # CPU_AMD_GX2
|
||||
|
||||
endif # CPU_AMD_GEODE_GX2
|
@ -3,7 +3,7 @@ subdirs-y += ../../x86/lapic
|
||||
subdirs-y += ../../x86/cache
|
||||
subdirs-y += ../../x86/smm
|
||||
|
||||
driver-y += model_gx2_init.c
|
||||
driver-y += geode_gx2_init.c
|
||||
ramstage-y += cpubug.c
|
||||
|
||||
cpu_incs += $(src)/cpu/amd/model_gx2/cache_as_ram.inc
|
||||
cpu_incs += $(src)/cpu/amd/geode_gx2/cache_as_ram.inc
|
@ -16,9 +16,9 @@ static void vsm_end_post_smi(void)
|
||||
);
|
||||
}
|
||||
|
||||
static void model_gx2_init(device_t dev)
|
||||
static void geode_gx2_init(device_t dev)
|
||||
{
|
||||
printk(BIOS_DEBUG, "model_gx2_init\n");
|
||||
printk(BIOS_DEBUG, "geode_gx2_init\n");
|
||||
|
||||
/* Turn on caching if we haven't already */
|
||||
x86_enable_cache();
|
||||
@ -28,11 +28,11 @@ static void model_gx2_init(device_t dev)
|
||||
|
||||
vsm_end_post_smi();
|
||||
|
||||
printk(BIOS_DEBUG, "model_gx2_init DONE\n");
|
||||
printk(BIOS_DEBUG, "geode_gx2_init DONE\n");
|
||||
};
|
||||
|
||||
static struct device_operations cpu_dev_ops = {
|
||||
.init = model_gx2_init,
|
||||
.init = geode_gx2_init,
|
||||
};
|
||||
|
||||
static struct cpu_device_id cpu_table[] = {
|
@ -1,7 +1,7 @@
|
||||
config CPU_AMD_LX
|
||||
config CPU_AMD_GEODE_LX
|
||||
bool
|
||||
|
||||
if CPU_AMD_LX
|
||||
if CPU_AMD_GEODE_LX
|
||||
|
||||
config CPU_SPECIFIC_OPTIONS
|
||||
def_bool y
|
||||
@ -36,4 +36,4 @@ config VSA_FILENAME
|
||||
help
|
||||
The path and filename of the file to use as VSA.
|
||||
|
||||
endif # CPU_AMD_LX
|
||||
endif # CPU_AMD_GEODE_LX
|
@ -3,7 +3,7 @@ subdirs-y += ../../x86/lapic
|
||||
subdirs-y += ../../x86/cache
|
||||
subdirs-y += ../../x86/smm
|
||||
|
||||
driver-y += model_lx_init.c
|
||||
driver-y += geode_lx_init.c
|
||||
ramstage-y += cpubug.c
|
||||
|
||||
cpu_incs += $(src)/cpu/amd/model_lx/cache_as_ram.inc
|
||||
cpu_incs += $(src)/cpu/amd/geode_lx/cache_as_ram.inc
|
@ -38,9 +38,9 @@ static void vsm_end_post_smi(void)
|
||||
".byte 0x0f, 0x38\n" "pop %ax\n");
|
||||
}
|
||||
|
||||
static void model_lx_init(device_t dev)
|
||||
static void geode_lx_init(device_t dev)
|
||||
{
|
||||
printk(BIOS_DEBUG, "model_lx_init\n");
|
||||
printk(BIOS_DEBUG, "geode_lx_init\n");
|
||||
|
||||
/* Turn on caching if we haven't already */
|
||||
x86_enable_cache();
|
||||
@ -56,11 +56,11 @@ static void model_lx_init(device_t dev)
|
||||
outb(0x02, 0x92);
|
||||
printk(BIOS_DEBUG, "A20 (0x92): %d\n", inb(0x92));
|
||||
|
||||
printk(BIOS_DEBUG, "CPU model_lx_init DONE\n");
|
||||
printk(BIOS_DEBUG, "CPU geode_lx_init DONE\n");
|
||||
};
|
||||
|
||||
static struct device_operations cpu_dev_ops = {
|
||||
.init = model_lx_init,
|
||||
.init = geode_lx_init,
|
||||
};
|
||||
|
||||
static struct cpu_device_id cpu_table[] = {
|
Reference in New Issue
Block a user