Skip to content

Commit df56687

Browse files
committed
Add FrameworkDesktopAmdAiMax300
Signed-off-by: Daniel Schaefer <dhs@frame.work>
1 parent 76c1d10 commit df56687

4 files changed

Lines changed: 8 additions & 0 deletions

File tree

framework_lib/src/ccgx/device.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@ impl PdPort {
5656
| Platform::Framework16Amd7080,
5757
PdPort::Right23,
5858
) => 0x40,
59+
// TODO: It only has a single PD controller
60+
(Platform::FrameworkDesktopAmdAiMax300, _) => 0x08,
5961
// Framework Intel Platforms (CCG5 and CCG6)
6062
(_, PdPort::Left01) => 0x08,
6163
(_, PdPort::Right23) => 0x40,
@@ -87,6 +89,8 @@ impl PdPort {
8789
| Platform::Framework13AmdAi300
8890
PdPort::Right23,
8991
) => 2,
92+
// TODO: It only has a single PD controller
93+
(Platform::FrameworkDesktopAmdAiMax300, _) => 1,
9094
// (_, _) => Err(EcError::DeviceError(format!(
9195
// "Unsupported platform: {:?} {:?}",
9296
// platform, self

framework_lib/src/chromium_ec/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,7 @@ pub fn has_mec() -> bool {
132132
| Platform::Framework16Amd7080
133133
| Platform::IntelCoreUltra1
134134
| Platform::Framework13AmdAi300
135+
| Platform::FrameworkDesktopAmdAiMax300
135136
)
136137
}
137138

framework_lib/src/smbios.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,7 @@ pub fn get_platform() -> Option<Platform> {
267267
"Laptop 13 (AMD Ryzen AI 300 Series)" => Some(Platform::Framework13AmdAi300),
268268
"Laptop 13 (Intel Core Ultra Series 1)" => Some(Platform::IntelCoreUltra1),
269269
"Laptop 16 (AMD Ryzen 7040 Series)" => Some(Platform::Framework16Amd7080),
270+
"Desktop (AMD Ryzen AI Max 300 Series)" => Some(Platform::FrameworkDesktopAmdAiMax300),
270271
_ => None,
271272
};
272273

framework_lib/src/util.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ pub enum Platform {
3131
Framework13AmdAi300,
3232
/// Framework 16 - AMD Ryzen 7080 Series
3333
Framework16Amd7080,
34+
/// Framework Desktop - AMD Ryzen AI Max 300
35+
FrameworkDesktopAmdAiMax300,
3436
/// Generic Framework device
3537
/// pd_addrs, pd_ports, has_mec
3638
GenericFramework((u16, u16), (u8, u8), bool),

0 commit comments

Comments
 (0)