If you are using an existing configuration that other drivers are already using,
no extra steps are needed.

For example for `fuchsia.power.SuspendEnabled`, this configuration is
provided through the [power subsystem assembly](https://cs.opensource.google/fuchsia/fuchsia/+/main:/src/lib/assembly/platform_configuration/src/subsystems/power.rs).

## Adding a new configuration

To add a new configuration, identify which platform subsystem it should belong
to by looking in the [subsystems directory](https://cs.opensource.google/fuchsia/fuchsia/+/main:/src/lib/assembly/platform_configuration/src/subsystems/). If the subsystem
already exists, then add it in that subsystem.
Otherwise discuss your use case with the
[Fuchsia Assembly team](https://cs.opensource.google/fuchsia/fuchsia/+/main:/src/lib/assembly/OWNERS) to find the best location.

    builder.set_config_capability(
        "fuchsia.gizmo.Configuration",
        Config::new(ConfigValueType::Bool, true),
    )?;

### Routing a new configuration

Route this configuration into the driver collections.

1. Route the configuration to bootstrap in the [Root component](https://cs.opensource.google/fuchsia/fuchsia/+/main:/src/sys/root/root.cml).
   The route should be:

       from: "#config",
       to: "#bootstrap",

2. Route the configuration in the various bootstrap shards for drivers.
   The route should be `from: "parent"` and:

   - [Boot drivers shard](https://cs.opensource.google/fuchsia/fuchsia/+/main:/src/devices/bin/driver_framework/meta/driver_framework.bootstrap_shard.cml) `to: "#boot-drivers",`
   - [Base drivers shard](https://cs.opensource.google/fuchsia/fuchsia/+/main:/src/devices/bin/driver_framework/meta/base_drivers.bootstrap_shard.cml) `to: "#base-drivers",`

[](https://issues.fuchsia.dev/issues/new?component=1439230&template=1881640&description=Issue+on:+https://fuchsia.dev/docs/development/drivers/driver_guides/configuration/providing_configuration.md "Report a bug or suggest improvements on this page") [](https://cs.opensource.google/fuchsia/fuchsia/+/main:docs/development/drivers/driver_guides/configuration/providing_configuration.md "View the source code of this page") [](https://ci.android.com/edit?repo=fuchsia/fuchsia/main&file=docs/development/drivers/driver_guides/configuration/providing_configuration.md&cloneRepo=fuchsia/fuchsia:refs/heads/main&fullPath=fuchsia/docs/development/drivers/driver_guides/configuration/providing_configuration.md "Edit the source code of this page")