Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Z
Zephyr RTOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Luis Gerhorst
Zephyr RTOS
Commits
2fc7c654
Commit
2fc7c654
authored
4 years ago
by
Luis Gerhorst
Browse files
Options
Downloads
Patches
Plain Diff
Remove arm_timer printk, bcm2835-system-timer has size 0x20
parent
adeb8eb0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
boards/arm/qemu_raspi3/qemu_raspi3.dts
+1
-1
1 addition, 1 deletion
boards/arm/qemu_raspi3/qemu_raspi3.dts
drivers/timer/bcm2835_arm_timer.c
+0
-3
0 additions, 3 deletions
drivers/timer/bcm2835_arm_timer.c
with
1 addition
and
4 deletions
boards/arm/qemu_raspi3/qemu_raspi3.dts
+
1
−
1
View file @
2fc7c654
...
...
@@ -63,7 +63,7 @@
/* https://github.com/s-matyukevich/raspberry-pi-os/blob/master/docs/lesson03/rpi-os.md#timer-initialization */
timer@3f003000 {
compatible = "brcm,bcm2835-system-timer";
reg = <0x3f003000 0x
100
0>;
reg = <0x3f003000 0x
2
0>;
interrupts = <1 0>, <1 1>, <1 2>, <1 3>;
/* This could be a reference to BCM2835_CLOCK_TIMER,
* but we don't have the driver using the common clock
...
...
This diff is collapsed.
Click to expand it.
drivers/timer/bcm2835_arm_timer.c
+
0
−
3
View file @
2fc7c654
...
...
@@ -29,7 +29,6 @@
#define ARM_TIMER_IRQ (64+0)
static
void
put32
(
intptr_t
addr
,
uint32_t
value
)
{
printk
(
"%s(%p, %x)
\n
"
,
__func__
,
(
void
*
)
addr
,
value
);
sys_write32
(
value
,
addr
);
}
...
...
@@ -61,7 +60,6 @@ uint32_t z_clock_elapsed(void)
int
z_clock_driver_init
(
const
struct
device
*
device
)
{
printk
(
"%s
\n
"
,
__func__
);
IRQ_CONNECT
(
ARM_TIMER_IRQ
,
0
,
bcm2835_arm_timer_irq_handler
,
NULL
,
0
);
for
(
int
i
=
0
;
i
<
(
64
+
8
);
i
++
)
{
irq_enable
(
i
);
...
...
@@ -72,5 +70,4 @@ int z_clock_driver_init(const struct device *device)
// system timer.
put32
(
ARM_TIMER_LOAD
,
k_ticks_to_cyc_floor32
(
1
));
put32
(
ARM_TIMER_CTRL
,
CTRL_ENABLE
|
CTRL_INT_ENABLE
|
CTRL_23BIT
);
printk
(
"%s done
\n
"
,
__func__
);
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment