You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: startup.rs
    path of file: ./repos/tock/boards/nordic/nrf52_components/src
    
    the code of the file until where you have to start completion: // Licensed under the Apache License, Version 2.0 or the MIT License.
// SPDX-License-Identifier: Apache-2.0 OR MIT
// Copyright Tock Contributors 2022.

//! Component for starting up nrf52 platforms.
//! Contains 3 components, NrfStartupComponent, NrfClockComponent,
//! and UartChannelComponent, as well as two helper 
    
    fn finalize(self, _s: Self::StaticInput) -> Self::Output {
        // Start all of the clocks. Low power operation will require a better
        // approach than this.
        self.clock.low_stop();
        self.clock.high_stop();

        self.clock
            .low_set_source(nrf52::clock::LowClockSource::XTAL);
        self.clock.low_start();
        self.clock.high_start();
        while !self.clock.low_started() {}
        while !self.clock.high_started() {}
    }