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 support for Raspberry Pi #54

Merged
merged 1 commit into from
Feb 28, 2024
Merged

add support for Raspberry Pi #54

merged 1 commit into from
Feb 28, 2024

Conversation

Miochyann
Copy link
Contributor

Added some scripts to support Raspberry Pi

Copy link
Contributor

@coolyjg coolyjg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

some code about rtc configuration is missing. See #35 for what is lost. And it would be better if copyright declarations are added.

}

pub mod time {
pub use crate::platform::aarch64_common::generic_timer::*;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add:

    #[cfg(feature = "rtc")]
    pub use crate::platform::aarch64_common::pl031::*;

See #35

pub fn platform_init() {
#[cfg(feature = "irq")]
super::aarch64_common::gic::init_primary();
super::aarch64_common::generic_timer::init_percpu();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add:

    #[cfg(feature = "rtc")]
    super::aarch64_common::pl031::init();

@coolyjg coolyjg merged commit d4e8099 into syswonder:dev Feb 28, 2024
10 checks passed
@coolyjg coolyjg mentioned this pull request Mar 4, 2024
@coolyjg coolyjg added this to the Kernel Module Expansion milestone Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants