[coreboot] r3723 - trunk/util/flashrom

Carl-Daniel Hailfinger c-d.hailfinger.devel.2006 at gmx.net
Mon Nov 3 12:22:23 CET 2008


On 03.11.2008 09:04, Stefan Reinauer wrote:
>
>
> On 03.11.2008, at 01:35,
>  Peter Stuge <peter at stuge.se> wrote:
>
>> svn at coreboot.org wrote:
>>> +++ trunk/util/flashrom/chipset_enable.c    2008-11-03 00:20:22 UTC
>>> (rev 3723)
>> ..
>>>    case BUS_TYPE_ICH9_SPI:
>>> -        /* TODO: Add dumping function for ICH8/ICH9, or drop the
>>> -         * whole SPIBAR dumping from chipset_enable.c - There's
>>> -         * inteltool for this task already.
>>> -         */
>>> +        tmp2 = *(uint16_t *) (spibar + 0);
>>> +        printf_debug("0x00: 0x%04x (HSFS)\n", tmp2);
>>> +        printf_debug("FLOCKDN %i, ", (tmp >> 15 & 1));
>>> +        printf_debug("FDV %i, ", (tmp >> 14) & 1);
>>> +        printf_debug("FDOPSS %i, ", (tmp >> 13) & 1);
>>
>> Would have been nice if this had gone into ichspi.c.
>
> It's not too late, Peter. Care to illustrate your idea with a patch?

Do we want to move all other chipset specific debug code to separate
files as well? Then we need ck804.c and ichold.c and...
IMHO chipset_enable.c is for stuff you want to run once per chipset:
Some debug prints, some settings. If we move such code out of
chipset_enable.c, where do we draw the line?

Regards,
Carl-Daniel

-- 
http://www.hailfinger.org/





More information about the coreboot mailing list