Skip to content

Commit b5c2807

Browse files
committed
soc: intel: wildcat_lake: Add soc support for WCL
This commit introduces SOC support for Wildcat Lake. Signed-off-by: S Swetha <s.swetha@intel.com>
1 parent 274519c commit b5c2807

File tree

8 files changed

+120
-0
lines changed

8 files changed

+120
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# SPDX-License-Identifier: Apache-2.0
2+
3+
zephyr_include_directories(.)
4+
5+
zephyr_cc_option(-march=goldmont)
6+
zephyr_library_sources_ifdef(CONFIG_GPIO ../common/soc_gpio.c)
7+
8+
set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "")

soc/intel/wildcat_lake/Kconfig

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Copyright (c) 2025 Intel Corporation Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SOC_WILDCAT_LAKE
5+
select X86
6+
select X86_64
7+
select CPU_ATOM
8+
select PCIE
9+
select PCIE_MSI
10+
select DYNAMIC_INTERRUPTS
11+
select X86_MMU
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Wildcat Lake SoC configuration options
2+
3+
# Copyright (c) 2025 Intel Corporation
4+
# SPDX-License-Identifier: Apache-2.0
5+
6+
if SOC_WILDCAT_LAKE
7+
8+
config PCIE_MMIO_CFG
9+
default y
10+
11+
config X86_DYNAMIC_IRQ_STUBS
12+
default 16
13+
depends on DYNAMIC_INTERRUPTS
14+
15+
endif # SOC_WILDCAT_LAKE

soc/intel/wildcat_lake/Kconfig.soc

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Copyright (c) 2025 Intel Corporation Inc.
2+
# SPDX-License-Identifier: Apache-2.0
3+
4+
config SOC_WILDCAT_LAKE
5+
bool
6+
7+
config SOC
8+
default "wildcat_lake" if SOC_WILDCAT_LAKE

soc/intel/wildcat_lake/linker.ld

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/*
2+
* Copyright (c) 2025 Intel Corp.
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
#include <zephyr/arch/x86/memory.ld>
7+
8+
#ifdef CONFIG_X86_64
9+
#include <zephyr/arch/x86/intel64/linker.ld>
10+
#else
11+
#include <zephyr/arch/x86/ia32/linker.ld>
12+
#endif /* CONFIG_X86_64 */

soc/intel/wildcat_lake/soc.h

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/*
2+
* Copyright (c) 2025 Intel Corporation
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
/**
7+
* @file
8+
* @brief Board configuration macros for the Wildcat Lake SoC
9+
*
10+
* This header file is used to specify and describe soc-level aspects for
11+
* the 'Wildcat Lake' SoC.
12+
*/
13+
14+
#ifndef __SOC_H_
15+
#define __SOC_H_
16+
17+
#include <zephyr/sys/util.h>
18+
19+
#ifndef _ASMLANGUAGE
20+
#include <zephyr/device.h>
21+
#include <zephyr/random/random.h>
22+
#endif
23+
24+
#if DT_ANY_INST_HAS_PROP_STATUS_OKAY(acpi_hid)
25+
#include "../common/soc_gpio.h"
26+
#endif
27+
28+
#ifdef CONFIG_GPIO_INTEL
29+
#include "soc_gpio.h"
30+
#endif
31+
32+
#if DT_ON_BUS(DT_CHOSEN(zephyr_console), pcie)
33+
#include <zephyr/drivers/pcie/pcie.h>
34+
#define X86_SOC_EARLY_SERIAL_PCIDEV DT_REG_ADDR(DT_CHOSEN(zephyr_console))
35+
#else
36+
#define X86_SOC_EARLY_SERIAL_MMIO8_ADDR DT_REG_ADDR(DT_CHOSEN(zephyr_console))
37+
#endif
38+
39+
#endif /* __SOC_H_ */

soc/intel/wildcat_lake/soc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
vendor: intel
2+
comment: "Intel Wildcat Lake SoC"
3+
socs:
4+
- name: wildcat_lake

soc/intel/wildcat_lake/soc_gpio.h

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
/*
2+
* Copyright (c) 2025, Intel Corporation
3+
*
4+
* SPDX-License-Identifier: Apache-2.0
5+
*/
6+
7+
/**
8+
* @file
9+
* @brief GPIO macros for the Wildcat Lake SoC
10+
*
11+
* This header file is used to specify the GPIO macros for
12+
* the Wildcat Lake SoC.
13+
*/
14+
15+
#ifndef __SOC_GPIO_H_
16+
#define __SOC_GPIO_H_
17+
18+
#define GPIO_OWNERSHIP_BIT(raw_pin) (0x0)
19+
#define GPIO_RAW_PIN(pin, pin_offset) pin
20+
#define PAD_CFG0_PMODE_MASK (0x07 << 10)
21+
#define PIN_OFFSET (0x10)
22+
23+
#endif /* __SOC_GPIO_H_ */

0 commit comments

Comments
 (0)