summaryrefslogtreecommitdiff
path: root/src/mainboard/technologic
diff options
context:
space:
mode:
Diffstat (limited to 'src/mainboard/technologic')
-rw-r--r--src/mainboard/technologic/Kconfig2
-rw-r--r--src/mainboard/technologic/ts5300/chip.h2
-rw-r--r--src/mainboard/technologic/ts5300/devicetree.cb4
-rw-r--r--src/mainboard/technologic/ts5300/irq_tables.c2
-rw-r--r--src/mainboard/technologic/ts5300/mainboard.c14
-rw-r--r--src/mainboard/technologic/ts5300/romstage.c46
6 files changed, 35 insertions, 35 deletions
diff --git a/src/mainboard/technologic/Kconfig b/src/mainboard/technologic/Kconfig
index 32967fd3e5..5756361863 100644
--- a/src/mainboard/technologic/Kconfig
+++ b/src/mainboard/technologic/Kconfig
@@ -1,7 +1,7 @@
choice
prompt "Mainboard model"
depends on VENDOR_TECHNOLOGIC
-
+
source "src/mainboard/technologic/ts5300/Kconfig"
endchoice
diff --git a/src/mainboard/technologic/ts5300/chip.h b/src/mainboard/technologic/ts5300/chip.h
index 97f92dd915..ceb8af100a 100644
--- a/src/mainboard/technologic/ts5300/chip.h
+++ b/src/mainboard/technologic/ts5300/chip.h
@@ -1,5 +1,5 @@
extern struct chip_operations mainboard_ops;
struct mainboard_config {
-
+
};
diff --git a/src/mainboard/technologic/ts5300/devicetree.cb b/src/mainboard/technologic/ts5300/devicetree.cb
index 65809cb2f4..a0f05791af 100644
--- a/src/mainboard/technologic/ts5300/devicetree.cb
+++ b/src/mainboard/technologic/ts5300/devicetree.cb
@@ -1,7 +1,7 @@
chip cpu/amd/sc520
- device pci_domain 0 on
+ device pci_domain 0 on
device pci 0.0 on end
-
+
# register "com1" = "{1}"
# register "com1" = "{1, 0, 0x3f8, 4}"
end
diff --git a/src/mainboard/technologic/ts5300/irq_tables.c b/src/mainboard/technologic/ts5300/irq_tables.c
index 9b49747ead..22d5820a62 100644
--- a/src/mainboard/technologic/ts5300/irq_tables.c
+++ b/src/mainboard/technologic/ts5300/irq_tables.c
@@ -1,4 +1,4 @@
-/* This file was generated by getpir.c, do not modify!
+/* This file was generated by getpir.c, do not modify!
(but if you do, please run checkpir on it to verify)
* Contains the IRQ Routing Table dumped directly from your memory, which BIOS sets up
*
diff --git a/src/mainboard/technologic/ts5300/mainboard.c b/src/mainboard/technologic/ts5300/mainboard.c
index 4b9ce16bf8..58333b8f88 100644
--- a/src/mainboard/technologic/ts5300/mainboard.c
+++ b/src/mainboard/technologic/ts5300/mainboard.c
@@ -17,10 +17,10 @@ static void irqdump(void)
int i;
int irqlist[] = {0xd00, 0xd02, 0xd03, 0xd04, 0xd08, 0xd0a,
0xd14, 0xd18, 0xd1a, 0xd1b, 0xd1c,
- 0xd20, 0xd21, 0xd22, 0xd28, 0xd29,
+ 0xd20, 0xd21, 0xd22, 0xd28, 0xd29,
0xd30, 0xd31, 0xd32, 0xd33,
- 0xd40, 0xd41, 0xd42, 0xd43,0xd44, 0xd45, 0xd46,
- 0xd50, 0xd51, 0xd52, 0xd53,0xd54, 0xd55, 0xd56, 0xd57,0xd58, 0xd59, 0xd5a,
+ 0xd40, 0xd41, 0xd42, 0xd43,0xd44, 0xd45, 0xd46,
+ 0xd50, 0xd51, 0xd52, 0xd53,0xd54, 0xd55, 0xd56, 0xd57,0xd58, 0xd59, 0xd5a,
-1};
mmcr = (void *) 0xfffef000;
@@ -44,7 +44,7 @@ static void enable_dev(struct device *dev) {
/* from fuctory bios */
/* NOTE: the following interrupt settings made interrupts work
- * for hard drive, and serial, but not for ethernet
+ * for hard drive, and serial, but not for ethernet
*/
printk(BIOS_ERR, "Setting up PIC\n");
@@ -63,7 +63,7 @@ static void enable_dev(struct device *dev) {
mmcr->pic.rtcmap = 0x03;
mmcr->pic.ferrmap = 0x00;
mmcr->pic.intpinpol = 0x100;
-
+
mmcr->pic.gp0imap = 0x00;
mmcr->pic.gp1imap = 0x02;
mmcr->pic.gp2imap = 0x07;
@@ -83,7 +83,7 @@ static void enable_dev(struct device *dev) {
mmcr->sysarb.ctl = 0x00;
mmcr->sysarb.menb = 0x1f;
mmcr->sysarb.prictl = 0x40000f0f;
-
+
/* this is bios setting, depends on sysarb above */
mmcr->hostbridge.ctl = 0x0;
mmcr->hostbridge.tgtirqctl = 0x0;
@@ -125,7 +125,7 @@ static void enable_dev(struct device *dev) {
mmcr->gpctl.gprdoff = 0x02;
mmcr->gpctl.gpwrw = 0x07;
mmcr->gpctl.gpwroff = 0x02;
-
+
//mmcr->reset.sysinfo = 0xdf;
//mmcr->reset.rescfg = 0x5;
/* their IRQ table is wrong. Just hardwire it */
diff --git a/src/mainboard/technologic/ts5300/romstage.c b/src/mainboard/technologic/ts5300/romstage.c
index 4379c2457d..d0f0d4c61c 100644
--- a/src/mainboard/technologic/ts5300/romstage.c
+++ b/src/mainboard/technologic/ts5300/romstage.c
@@ -52,7 +52,7 @@ void setup_pars(void)
static void identify_ts9500(void)
{
unsigned i, val;
-
+
TS9500_LED_ON;
print_err("TS-9500 add-on found:\n");
@@ -61,23 +61,23 @@ static void identify_ts9500(void)
print_err(" DIP");
print_err_char(i+0x31);
print_err(": ");
- if((val&(1<<i))!=0)
- print_err("on\n");
+ if((val&(1<<i))!=0)
+ print_err("on\n");
else
- print_err("off\n");
+ print_err("off\n");
}
print_err("\n");
-
+
val=inb(0x19a);
-
+
for (i=6; i<8; i++) {
print_err(" JP");
print_err_char(i+0x30-5);
print_err(": ");
- if((val&(1<<i))!=0)
- print_err("on\n");
+ if((val&(1<<i))!=0)
+ print_err("on\n");
else
- print_err("off\n");
+ print_err("off\n");
}
print_err("\n");
@@ -103,33 +103,33 @@ static void identify_system(void)
print_err(" SRAM option: ");
if((val&1)==0) print_err("not ");
print_err("installed\n");
-
+
print_err(" RS-485 option: ");
if((val&2)==0) print_err("not ");
print_err("installed\n");
val=inb(0x76);
print_err(" Temp. range: ");
- if((val&2)==0) print_err("commercial\n");
+ if((val&2)==0) print_err("commercial\n");
else print_err("industrial\n");
-
+
print_err("\n");
-
+
val=inb(0x77);
for (i=1; i<8; i++) {
print_err(" JP");
print_err_char(i+0x30);
print_err(": ");
- if((val&(1<<i))!=0)
- print_err("on\n");
+ if((val&(1<<i))!=0)
+ print_err("on\n");
else
- print_err("off\n");
+ print_err("off\n");
}
print_err("\n");
/* Detect TS-9500 */
val=inb(0x19d);
- if(val==0x5f)
+ if(val==0x5f)
identify_ts9500();
}
@@ -144,18 +144,18 @@ static void main(unsigned long bist)
{
volatile int i;
unsigned val;
-
+
TS5300_LED_ON;
-
+
// Let the hardware settle a bit.
for(i = 0; i < 100; i++)
;
-
+
setupsc520();
uart_init();
console_init();
-
-
+
+
print_err("Technologic Systems TS5300 - http://www.embeddedx86.com/\n");
staticmem();
print_err("Memory initialized: 32MB\n");
@@ -170,7 +170,7 @@ static void main(unsigned long bist)
ram_check(0x00000000, 0x000a0000);
ram_check(0x000b0000, 0x02000000);
#endif
-
+
TS5300_LED_OFF;
}