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:
Warner Losh 2009-01-22 21:54:26 +00:00
parent b11e7979ac
commit 5d5516e7b7
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=187599
2 changed files with 4 additions and 0 deletions

View File

@ -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)

View File

@ -43,4 +43,6 @@ struct at91_ivar {
struct resource_list resources;
};
extern uint32_t at91_master_clock;
#endif /* _AT91VAR_H_ */