powerpc/amiga: Hide CPLD date and time printing behind bootverbose

There's no need to see the CPLD build date and time every boot.
This commit is contained in:
Justin Hibbits 2020-01-20 04:01:35 +00:00
parent d6e13f3b4d
commit f3f43ab1f0
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=356904

View File

@ -164,15 +164,17 @@ cpld_attach(device_t dev)
return (ENXIO);
}
mtx_init(&sc->sc_mutex, "cpld", NULL, MTX_DEF);
date = (cpld_read(sc, CPLD_REG_DATE_UW) << 16) |
cpld_read(sc, CPLD_REG_DATE_LW);
time = (cpld_read(sc, CPLD_REG_TIME_UW) << 16) |
cpld_read(sc, CPLD_REG_TIME_LW);
if (bootverbose) {
date = (cpld_read(sc, CPLD_REG_DATE_UW) << 16) |
cpld_read(sc, CPLD_REG_DATE_LW);
time = (cpld_read(sc, CPLD_REG_TIME_UW) << 16) |
cpld_read(sc, CPLD_REG_TIME_LW);
device_printf(dev, "Build date: %04x-%02x-%02x\n", (date >> 16) & 0xffff,
(date >> 8) & 0xff, date & 0xff);
device_printf(dev, "Build time: %02x:%02x:%02x\n", (time >> 16) & 0xff,
(time >> 8) & 0xff, time & 0xff);
device_printf(dev, "Build date: %04x-%02x-%02x\n",
(date >> 16) & 0xffff, (date >> 8) & 0xff, date & 0xff);
device_printf(dev, "Build time: %02x:%02x:%02x\n",
(time >> 16) & 0xff, (time >> 8) & 0xff, time & 0xff);
}
tmp = cpld_read(sc, CPLD_REG_HWREV);
device_printf(dev, "Hardware revision: %d\n", tmp);