MIPS: Octeon: Move code to avoid forward declaration
Move code to avoid forward declarations. Signed-off-by: Aaro Koskinen <aaro.koskinen@nsn.com> Cc: David Daney <david.daney@cavium.com> Cc: linux-mips@linux-mips.org Patchwork: https://patchwork.linux-mips.org/patch/7667/ Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
This commit is contained in:
parent
4aa16510bf
commit
653e052881
1 changed files with 19 additions and 19 deletions
|
@ -47,25 +47,6 @@ uint8_t cvmx_fuse_read_byte(int byte_addr)
|
||||||
return read_cmd.s.dat;
|
return read_cmd.s.dat;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Given the chip processor ID from COP0, this function returns a
|
|
||||||
* string representing the chip model number. The string is of the
|
|
||||||
* form CNXXXXpX.X-FREQ-SUFFIX.
|
|
||||||
* - XXXX = The chip model number
|
|
||||||
* - X.X = Chip pass number
|
|
||||||
* - FREQ = Current frequency in Mhz
|
|
||||||
* - SUFFIX = NSP, EXP, SCP, SSP, or CP
|
|
||||||
*
|
|
||||||
* @chip_id: Chip ID
|
|
||||||
*
|
|
||||||
* Returns Model string
|
|
||||||
*/
|
|
||||||
const char *octeon_model_get_string(uint32_t chip_id)
|
|
||||||
{
|
|
||||||
static char buffer[32];
|
|
||||||
return octeon_model_get_string_buffer(chip_id, buffer);
|
|
||||||
}
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Version of octeon_model_get_string() that takes buffer as argument,
|
* Version of octeon_model_get_string() that takes buffer as argument,
|
||||||
* as running early in u-boot static/global variables don't work when
|
* as running early in u-boot static/global variables don't work when
|
||||||
|
@ -427,3 +408,22 @@ const char *octeon_model_get_string_buffer(uint32_t chip_id, char *buffer)
|
||||||
sprintf(buffer, "CN%s%sp%s-%d-%s", family, core_model, pass, clock_mhz, suffix);
|
sprintf(buffer, "CN%s%sp%s-%d-%s", family, core_model, pass, clock_mhz, suffix);
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Given the chip processor ID from COP0, this function returns a
|
||||||
|
* string representing the chip model number. The string is of the
|
||||||
|
* form CNXXXXpX.X-FREQ-SUFFIX.
|
||||||
|
* - XXXX = The chip model number
|
||||||
|
* - X.X = Chip pass number
|
||||||
|
* - FREQ = Current frequency in Mhz
|
||||||
|
* - SUFFIX = NSP, EXP, SCP, SSP, or CP
|
||||||
|
*
|
||||||
|
* @chip_id: Chip ID
|
||||||
|
*
|
||||||
|
* Returns Model string
|
||||||
|
*/
|
||||||
|
const char *octeon_model_get_string(uint32_t chip_id)
|
||||||
|
{
|
||||||
|
static char buffer[32];
|
||||||
|
return octeon_model_get_string_buffer(chip_id, buffer);
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue