···10821082 * Pass back:10831083 * contents of the DCL0_LOW register10841084 */10851085-static int f10_early_channel_count(struct amd64_pvt *pvt)10851085+static int f1x_early_channel_count(struct amd64_pvt *pvt)10861086{10871087 int i, j, channels = 0;1088108810891089- /* If we are in 128 bit mode, then we are using 2 channels */10901090- if (pvt->dclr0 & F10_WIDTH_128) {10911091- channels = 2;10921092- return channels;10931093- }10891089+ /* On F10h, if we are in 128 bit mode, then we are using 2 channels */10901090+ if (boot_cpu_data.x86 == 0x10 && (pvt->dclr0 & F10_WIDTH_128))10911091+ return 2;1094109210951093 /*10961094 * Need to check if in unganged mode: In such, there are 2 channels,···15381540 .f1_id = PCI_DEVICE_ID_AMD_10H_NB_MAP,15391541 .f3_id = PCI_DEVICE_ID_AMD_10H_NB_MISC,15401542 .ops = {15411541- .early_channel_count = f10_early_channel_count,15431543+ .early_channel_count = f1x_early_channel_count,15421544 .get_error_address = f10_get_error_address,15431545 .read_dram_ctl_register = f10_read_dram_ctl_register,15441546 .map_sysaddr_to_csrow = f10_map_sysaddr_to_csrow,···15491551 [F15_CPUS] = {15501552 .ctl_name = "F15h",15511553 .ops = {15541554+ .early_channel_count = f1x_early_channel_count,15521555 .read_dct_pci_cfg = f15_read_dct_pci_cfg,15531556 }15541557 },