- List SMSC LPC47N227 runtime register block as supported.

- Add missing contributor in README.

- Cosmetic fixes.

Signed-off-by: Uwe Hermann <uwe@hermann-uwe.de>
Acked-by: Uwe Hermann <uwe@hermann-uwe.de>



git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4029 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
This commit is contained in:
Uwe Hermann 2009-03-25 17:38:40 +00:00
parent 951c63f2a5
commit 83da8dcf60
3 changed files with 12 additions and 11 deletions

View File

@ -89,6 +89,7 @@ David Hendricks <david.hendricks@gmail.com>
Frieder Ferlemann <Frieder.Ferlemann@web.de> Frieder Ferlemann <Frieder.Ferlemann@web.de>
Idwer Vollering <idwer_v@hotmail.com> Idwer Vollering <idwer_v@hotmail.com>
Josh Profitt <zorn169@gmail.com> Josh Profitt <zorn169@gmail.com>
Michał Mirosław <mirq-linux@rere.qmqm.pl>
Rasmus Wiman <rasmus@wiman.org> Rasmus Wiman <rasmus@wiman.org>
Robinson P. Tryon <bishop.robinson@gmail.com> Robinson P. Tryon <bishop.robinson@gmail.com>
Ronald Hoogenboom <hoogenboom30@zonnet.nl> Ronald Hoogenboom <hoogenboom30@zonnet.nl>

View File

@ -655,6 +655,7 @@ static void probe_idregs_smsc_helper(uint16_t port, uint8_t idreg,
uint8_t revreg) uint8_t revreg)
{ {
uint8_t id, rev; uint8_t id, rev;
uint16_t runtime_base;
const char *info = (idreg == 0x20) ? "(idregs=0x20/0x21) " const char *info = (idreg == 0x20) ? "(idregs=0x20/0x21) "
: "(idregs=0x0d/0x0e) "; : "(idregs=0x0d/0x0e) ";
@ -681,18 +682,16 @@ static void probe_idregs_smsc_helper(uint16_t port, uint8_t idreg,
LDN_SEL); LDN_SEL);
if (extra_dump) { if (extra_dump) {
uint16_t runtime_base;
switch (id) { switch (id) {
case 0x5a: case 0x5a: /* LPC47N227 */
runtime_base = regval(port, 0x30) << 4; runtime_base = regval(port, 0x30) << 4;
if (runtime_base) if (runtime_base)
dump_io(runtime_base, 16); dump_io(runtime_base, 16);
else else
printf("Runtime Register Block not mapped on this SuperIO.\n"); printf("Runtime Register Block not mapped on this Super I/O.\n");
break; break;
default: default:
printf("No extra registers known for this chip\n"); printf("No extra registers known for this chip.\n");
} }
} }
@ -708,4 +707,5 @@ void probe_idregs_smsc(uint16_t port)
void print_smsc_chips(void) void print_smsc_chips(void)
{ {
print_vendor_chips("SMSC", reg_table); print_vendor_chips("SMSC", reg_table);
printf("SMSC LPC47N227 runtime register block\n\n");
} }

View File

@ -161,13 +161,13 @@ void dump_io(uint16_t iobase, uint16_t length)
{ {
uint16_t i; uint16_t i;
printf("Dumping %d IO mapped registers at base 0x%04x:\n", printf("Dumping %d I/O mapped registers at base 0x%04x:\n",
length, iobase); length, iobase);
for (i=0; i<length; i++) for (i = 0; i < length; i++)
printf ("%02x ", i); printf("%02x ", i);
printf("\n"); printf("\n");
for (i=0; i<length; i++) for (i = 0; i < length; i++)
printf ("%02x ", INB(iobase +i)); printf("%02x ", INB(iobase + i));
printf("\n"); printf("\n");
} }