diff options
author | Aaron Durbin <adurbin@chromium.org> | 2014-09-03 12:40:15 -0500 |
---|---|---|
committer | Aaron Durbin <adurbin@google.com> | 2014-10-07 21:03:25 +0200 |
commit | ffda804b52768467ea7b3394a3e2fe9039f87362 (patch) | |
tree | eb8830ed7337316f2776491ba48c27fd5d6b54eb /util/sconfig/main.c | |
parent | a296f9e3d385d2d310aae1cdfd4a20c592de1d20 (diff) |
sconfig: add cpu device type
In order to enumerate CPU devices that are non-x86 (read: no lapic)
provide a generic 'cpu' device.
Change-Id: Ifeafdad8076935c3448784e6958117002509acbf
Signed-off-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-on: http://review.coreboot.org/6824
Tested-by: build bot (Jenkins)
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-by: Ronald G. Minnich <rminnich@gmail.com>
Diffstat (limited to 'util/sconfig/main.c')
-rw-r--r-- | util/sconfig/main.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/util/sconfig/main.c b/util/sconfig/main.c index a37523c27d..1241a87fed 100644 --- a/util/sconfig/main.c +++ b/util/sconfig/main.c @@ -272,6 +272,10 @@ struct device *new_device(struct device *parent, struct device *busdev, const in new_d->path = ".type=DEVICE_PATH_CPU_CLUSTER,{.cpu_cluster={ .cluster = 0x%x }}"; break; + case CPU: + new_d->path = ".type=DEVICE_PATH_CPU,{.cpu={ .id = 0x%x }}"; + break; + case DOMAIN: new_d->path = ".type=DEVICE_PATH_DOMAIN,{.domain={ .domain = 0x%x }}"; break; |