gumstix.c (bf61c8840efe60fd8f91446860b63338fb424158) gumstix.c (7b472ac75689af196d868b3f2322edb44b8096d3)
1/*
2 * linux/arch/arm/mach-pxa/gumstix.c
3 *
4 * Support for the Gumstix motherboards.
5 *
6 * Original Author: Craig Hughes
7 * Created: Feb 14, 2008
8 * Copyright: Craig Hughes

--- 126 unchanged lines hidden (view full) ---

135/* Normally, the bootloader would have enabled this 32kHz clock but many
136** boards still have u-boot 1.1.4 so we check if it has been turned on and
137** if not, we turn it on with a warning message. */
138static void gumstix_setup_bt_clock(void)
139{
140 int timeout = 500;
141
142 if (!(OSCC & OSCC_OOK))
1/*
2 * linux/arch/arm/mach-pxa/gumstix.c
3 *
4 * Support for the Gumstix motherboards.
5 *
6 * Original Author: Craig Hughes
7 * Created: Feb 14, 2008
8 * Copyright: Craig Hughes

--- 126 unchanged lines hidden (view full) ---

135/* Normally, the bootloader would have enabled this 32kHz clock but many
136** boards still have u-boot 1.1.4 so we check if it has been turned on and
137** if not, we turn it on with a warning message. */
138static void gumstix_setup_bt_clock(void)
139{
140 int timeout = 500;
141
142 if (!(OSCC & OSCC_OOK))
143 pr_warning("32kHz clock was not on. Bootloader may need to "
144 "be updated\n");
143 pr_warn("32kHz clock was not on. Bootloader may need to be updated\n");
145 else
146 return;
147
148 OSCC |= OSCC_OON;
149 do {
150 if (OSCC & OSCC_OOK)
151 break;
152 udelay(1);

--- 92 unchanged lines hidden ---
144 else
145 return;
146
147 OSCC |= OSCC_OON;
148 do {
149 if (OSCC & OSCC_OOK)
150 break;
151 udelay(1);

--- 92 unchanged lines hidden ---