X-Git-Url: https://jxself.org/git/?p=linux-libre-firmware.git;a=blobdiff_plain;f=ath9k_htc%2Ftarget_firmware%2Fmagpie_fw_dev%2Ftarget%2Fcmnos%2Fk2_cmnos_clock_patch.c;h=b6816a2694ee8e682a22cbf142bfb96e11f1ec50;hp=acfcab2e433359a3e1ffe726281936dc91bce52e;hb=1ba1a88647bfe113c885f985d6e383790dec2a1f;hpb=a2fe6b1f6253377c952c224d4ec9d55b196660ce diff --git a/ath9k_htc/target_firmware/magpie_fw_dev/target/cmnos/k2_cmnos_clock_patch.c b/ath9k_htc/target_firmware/magpie_fw_dev/target/cmnos/k2_cmnos_clock_patch.c index acfcab2..b6816a2 100755 --- a/ath9k_htc/target_firmware/magpie_fw_dev/target/cmnos/k2_cmnos_clock_patch.c +++ b/ath9k_htc/target_firmware/magpie_fw_dev/target/cmnos/k2_cmnos_clock_patch.c @@ -38,7 +38,7 @@ a_uint32_t ref_clk = 0; extern a_uint32_t cticks; -// clock change +// clock change // void cmnos_clock_init_patch(a_uint32_t refclk) { @@ -46,7 +46,7 @@ void cmnos_clock_init_patch(a_uint32_t refclk) } // retrieve current clock setting -// +// a_uint32_t cmnos_refclk_speed_get_patch(void) { return ref_clk; @@ -59,7 +59,7 @@ void cmnos_delay_us_patch(int us) { a_uint32_t start_time = NOW(); unsigned int num_ticks = us*ref_clk; // system_freq == number of ticks per 1us - + while ( (NOW() - start_time) < num_ticks) { /* busy spin */ ; @@ -84,11 +84,11 @@ void cmnos_tick_patch(void) } // get current sysmem up time in milliseconds based -// +// a_uint32_t cmnos_milliseconds_patch(void) { cmnos_tick_patch(); - + return (cticks); }