Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add addw4, oryp12 #422

Merged
merged 2 commits into from
Mar 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/graphics.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ const EXTERNAL_DISPLAY_REQUIRES_NVIDIA: &[&str] = &[
"addw1",
"addw2",
"addw3",
"addw4",
"bonw15",
"gaze14",
"gaze15",
Expand All @@ -115,6 +116,7 @@ const EXTERNAL_DISPLAY_REQUIRES_NVIDIA: &[&str] = &[
"oryp9",
"oryp10",
"oryp11",
"oryp12",
"serw13",
];

Expand Down
24 changes: 24 additions & 0 deletions src/hotplug/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,18 @@ impl HotPlugDetect {
],
}),
}),
"addw4" => Ok(Self {
integrated: Integrated::Intel(Intel {
sideband: Sideband::new(0xE000_0000)?,
port: 0x6E,
pins: [
0x02, // USB-C
0x04, // HDMI
NO_PIN, // NC
NO_PIN, // NC
],
}),
}),
"bonw15" => Ok(Self {
integrated: Integrated::Intel(Intel {
sideband: Sideband::new(0xE000_0000)?,
Expand Down Expand Up @@ -336,6 +348,18 @@ impl HotPlugDetect {
],
}),
}),
"oryp12" => Ok(Self {
integrated: Integrated::Intel(Intel {
sideband: Sideband::new(0xE000_0000)?,
port: 0x6E,
pins: [
0x04, // HDMI
0x08, // Mini DisplayPort
NO_PIN, // TOOD: USB-C?
NO_PIN, // NC
],
}),
}),
"serw13" => Ok(Self {
integrated: Integrated::Intel(Intel {
sideband: Sideband::new(0xE000_0000)?,
Expand Down
Loading