Move clock comments to lagarto_ox.h

This commit is contained in:
Rodrigo Arias 2024-09-05 17:12:35 +02:00
parent 2f48ad5f40
commit 75ea21f9fe
2 changed files with 6 additions and 4 deletions

View File

@ -19,11 +19,9 @@
#address-cells = <1>; #address-cells = <1>;
#size-cells = <0>; #size-cells = <0>;
// The RTC timer is clocked at the CPU frequency / 1525, so
// around 32786.88 Hz
timebase-frequency = <RTC_CLOCK_FREQUENCY>; timebase-frequency = <RTC_CLOCK_FREQUENCY>;
CPU0: cpu@0 { CPU0: cpu@0 {
clock-frequency = <CPU_CLOCK_FREQUENCY>; /* 50 MHz */ clock-frequency = <CPU_CLOCK_FREQUENCY>;
device_type = "cpu"; device_type = "cpu";
reg = <0>; reg = <0>;
status = "okay"; status = "okay";

View File

@ -1,4 +1,8 @@
#define CPU_CLOCK_FREQUENCY 50000000 // 50 MHz /* CPU is at 50 MHz */
#define CPU_CLOCK_FREQUENCY 50000000
/* The RTC timer is clocked at the CPU frequency / 1525, so
* around 32786.88 Hz */
#define RTC_CLOCK_FREQUENCY 32786 #define RTC_CLOCK_FREQUENCY 32786
#define UART_SPEED 115200 #define UART_SPEED 115200