Dash:
[t2-trunk.git] / architecture / x86-64 / linux.conf.sh
blob1392d1642e654d89ee1151d9977688657637ee38
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3 #
4 # T2 SDE: architecture/x86-64/linux.conf.sh
5 # Copyright (C) 2004 - 2021 The T2 SDE Project
6 #
7 # More information can be found in the files COPYING and README.
8 #
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
16 cat <<- 'EOT'
17 define(`INTEL', `Intel X86 PCs')dnl
19 CONFIG_64BIT=y
21 dnl CPU configuration
22 dnl
23 EOT
25 linux_arch=MK8 # default to orig. AMD
26 for x in "generic GENERIC_CPU" \
27 "nocona MPSC" \
28 "core2 MCORE2" \
29 "hehalem MCORE2" \
30 "westmere MCORE2" \
31 "sandybridge MCORE2" \
32 "ivybridge MCORE2" \
33 "haswell MCORE2" \
34 "broadwell MCORE2" \
35 "skylake MCORE2" \
36 "skylake-avx512 MCORE2" \
37 "bonnel ATOM" \
38 "silvermont ATOM"
40 set $x
41 [[ "$SDECFG_X8664_OPT" = $1 ]] && linux_arch=$2
42 done
44 for x in GENERIC_CPU MK8 MPSC MCORE2 ATOM
46 if [ "$linux_arch" != "$x" ]
47 then echo "# CONFIG_$x is not set"
48 else echo "CONFIG_$x=y" ; fi
49 done
51 echo
52 cat <<- 'EOT'
53 CONFIG_NR_CPUS=128
55 CONFIG_HZ_1000=y
56 CONFIG_HZ=1000
58 CONFIG_TRANSPARENT_HUGEPAGE=y
59 CONFIG_HUGETLBFS=y
61 CONFIG_IA32_EMULATION=y
62 CONFIG_X86_X32=y
64 dnl Other useful stuff
65 dnl
66 include(`linux-x86.conf.m4')
67 include(`linux-common.conf.m4')
68 include(`linux-block.conf.m4')
69 include(`linux-net.conf.m4')
70 include(`linux-fs.conf.m4')
72 # CONFIG_NUMA=y
73 # CONFIG_NUMA_BALANCING=y
74 CONFIG_PREEMPT_VOLUNTARY=y
76 CONFIG_AMD_IOMMU=y
77 CONFIG_INTEL_IOMMU=y
78 CONFIG_INTEL_IOMMU_SVM=y
79 CONFIG_HYPERV_IOMMU_SVM=y
80 CONFIG_IOMMU_DEFAULT_PASSTHROUGH=y
82 dnl Support for latest low level clocks, gpio, and i2c glue
83 dnl
84 CONFIG_X86_AMD_PLATFORM_DEVICE=y
85 CONFIG_X86_INTEL_LPSS=m
86 CONFIG_I2C_DESIGNWARE_BAYTRAIL=y
87 CONFIG_PMIC_OPREGION=y
88 CONFIG_INTEL_SOC_PMIC=y
89 EOT
90 } | m4 -I $base/architecture/$arch -I $base/architecture/x86 -I $base/architecture/share