Lines Matching +full:1000 +full:- +full:10000

1 // SPDX-License-Identifier: GPL-2.0-only
5 * Copyright 2012-2015 Cisco Systems, Inc. and/or its affiliates.
11 #include "cobalt-cpld.h"
17 return cobalt_bus_read32(cobalt->bar1, ADRS(offset)); in cpld_read()
22 return cobalt_bus_write32(cobalt->bar1, ADRS(offset), val); in cpld_write()
36 …cobalt_info("CPLD HSMA Clk Osc register (read/write) - Must set wr trigger to load default values\… in cpld_info_ver3()
67 tmp = (rd * 33 * 1000) / (483 * 10); in cpld_info_ver3()
68 cobalt_info("\t\tVDD 3V3: %u,%03uV\n", tmp / 1000, tmp % 1000); in cpld_info_ver3()
70 tmp = (rd * 74 * 2197) / (27 * 1000); in cpld_info_ver3()
71 cobalt_info("\t\tADC ch3 5V: %u,%03uV\n", tmp / 1000, tmp % 1000); in cpld_info_ver3()
73 tmp = (rd * 74 * 2197) / (47 * 1000); in cpld_info_ver3()
74 cobalt_info("\t\tADC ch4 3V: %u,%03uV\n", tmp / 1000, tmp % 1000); in cpld_info_ver3()
76 tmp = (rd * 57 * 2197) / (47 * 1000); in cpld_info_ver3()
77 cobalt_info("\t\tADC ch5 2V5: %u,%03uV\n", tmp / 1000, tmp % 1000); in cpld_info_ver3()
79 tmp = (rd * 2197) / 1000; in cpld_info_ver3()
80 cobalt_info("\t\tADC ch6 1V8: %u,%03uV\n", tmp / 1000, tmp % 1000); in cpld_info_ver3()
82 tmp = (rd * 2197) / 1000; in cpld_info_ver3()
83 cobalt_info("\t\tADC ch7 1V5: %u,%03uV\n", tmp / 1000, tmp % 1000); in cpld_info_ver3()
85 tmp = (rd * 2197) / 1000; in cpld_info_ver3()
86 cobalt_info("\t\tADC ch8 0V9: %u,%03uV\n", tmp / 1000, tmp % 1000); in cpld_info_ver3()
258 n1 = multipliers[i_best].n1 - 1; in cobalt_cpld_set_freq()
259 hsdiv = multipliers[i_best].hsdiv - 4; in cobalt_cpld_set_freq()
280 while (retries--) { in cobalt_cpld_set_freq()
286 usleep_range(10000, 15000); in cobalt_cpld_set_freq()
296 usleep_range(10000, 15000); in cobalt_cpld_set_freq()
300 usleep_range(10000, 15000); in cobalt_cpld_set_freq()
311 usleep_range(10000, 15000); in cobalt_cpld_set_freq()
314 usleep_range(10000, 15000); in cobalt_cpld_set_freq()
320 if (2 - retries) in cobalt_cpld_set_freq()
321 cobalt_info("Needed %d retries\n", 2 - retries); in cobalt_cpld_set_freq()