mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 13:22:48 +00:00
Store at91_master_clock in a global variable as opposed to a compile
time constant. This allows us to potentially change it at runtime or autodetect it early in the boot (the latter being much more likely to have a good outcome).
This commit is contained in:
parent
b11e7979ac
commit
5d5516e7b7
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187599
@ -50,6 +50,8 @@ static struct at91_softc *at91_softc;
|
||||
|
||||
static void at91_eoi(void *);
|
||||
|
||||
uint32_t at91_master_clock = AT91C_MASTER_CLOCK;
|
||||
|
||||
static int
|
||||
at91_bs_map(void *t, bus_addr_t bpa, bus_size_t size, int flags,
|
||||
bus_space_handle_t *bshp)
|
||||
|
@ -43,4 +43,6 @@ struct at91_ivar {
|
||||
struct resource_list resources;
|
||||
};
|
||||
|
||||
extern uint32_t at91_master_clock;
|
||||
|
||||
#endif /* _AT91VAR_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user