When the pciscan cammand was called the usb-ohci HcInterruptStatus register WDH
bit would be set,but the code do not clear it.
Change-Id: I3f83895ebac16ee64b5dd3341385d46080b2a6c9
1.Pmon can boot from SPI flash SST25VF032B.
2.The NVRAM_OFFS is defined as 0x7f000,
the gzrom.bin size should less than 0x7f000.
3.If add the nand flash function, the gzrom.bin
size will be out of 0x7f000.
4.The network card mac addr should be saved
into SPI flash, and acquired from SPI flash.
Change-Id: Id1f3e642a750ddeeb23f3b726e3f67a1ac855340
Target:LS2G + 1A + DDR3
1.Nandflash can be erased, read, written.
2.Could save kernel into nandflash.
3.Could load kernel form nandflash.
Target:2G5+1A+DDR2
Change-Id: Ic102439551c7cd90bba574aab477d8a502ff458c
1.Add zloader.2g5ddr2_1a and Target/Bonito2g5ddr2
2.Port the new MC initialization code for 2j5.(ARB_LEVEL cannot pass compiling now).
3.Modify the start.S for the difference between 2g3 and 2g5:
* The jr instructions can only use the ra register
* Hardware initialise scache
* Shut down the store fill buffer for scache coherent
Change-Id: I7d2946ea02ed95763688202d750e9644bae14807
Target:2G5+1A+DDR2
1.
Targets/Bonito3a2h/Bonito/loongson3_HT_init_2h.S
Targets/Bonito3a82h/Bonito/loongson3_HT_init_2h.S
use window 5(no use before) for pcie graphic card in this patch
2.
pmon/cmds/pcicmds.c
sys/dev/pci/pciconf.c
sys/dev/pci/pcireg.h
sys/kern/subr_autoconf.c
sys/linux/io.h
x86emu/int10/generic.c
x86emu/int10/helper_exec.c
x86emu/int10/xf86int10.c
these file are basic code that modified in this path
3.
Targets/Bonito3a2h/Bonito/loongson3_HT_init_2h.S
Targets/Bonito3a2h/Bonito/tgt_machdep.c
Targets/Bonito3a2h/conf/Bonito.3a2h
Targets/Bonito3a2h/pci/ls2h_pci.c
Targets/Bonito3a2h/pci/pci_machdep.c
Targets/Bonito3a82h/Bonito/loongson3_HT_init_2h.S
Targets/Bonito3a82h/Bonito/tgt_machdep.c
Targets/Bonito3a82h/conf/Bonito.3a82h
Targets/Bonito3a82h/pci/ls2h_pci.c
Targets/Bonito3a82h/pci/pci_machdep.c
these files have only relate to 3a2h and 3a82h
Change-Id: I4a182bcbb8ca83f3fd34028145d362e7d2e683f0
1.change the 1a pci dma window size from 192MB to 2GB,and start
address at 0x8000000
2.fix up the code of dma address convert for OHCI,sata,1a gmac
3.fix up the parameter of DMA64 option which be tranfered to kernel
Change-Id: I943e3aac77c4cdbd04bb6a28058a3f423b74b998
Target:LS2G1A
The speed of programming flash pmon is very slow,
because the south bridge 1A hasn't been stopped.
2.Modify sys/dev/usb/usb_storage.c
Fixup the ohci_storage code bug about pioneer DVD-ROM.
According to the Change-Id: Iba56042f1d3596aa40bd85e05c908c4b2663ecd8
and Change-Id: I11b499266503fbdb2091484e5e18e9372beecf40 from lixuefeng.
Change-Id: I76d536e9cf1a43beb0bf3e07d2ee66c681918de7
Target:LS2G1A
1.add reboot funtion by 2g gpio60 to be write low
2.add poweroff function by 1a s5 mode
3.add sata funtion
Change-Id: I09caeb9691d49024c7706ce8e7e6bbfafd9306a2
Target:LS2G1A
1:add Targets / Bonito2g1a director
2:add zloader .2 g1a director
3:add LOONGSON2G1A configure option
4:add start_2g1a.S and modify some config window
5:fixup some problem to support 2 g1a in start_2g1a.S
6:disable some funtions, then the pmon can run on command line
Change-Id: I19ee7a6d90c7efda3d6e986d12903da20ccc6ad5
Target:LS2G1A
the ohci_storage code will retry to load the initrd,which result in the spl value be changed to 7.
then the usb keyboard code will not respose the input from keyboard.
Change-Id: Iba56042f1d3596aa40bd85e05c908c4b2663ecd8
Target:2G5536
1.the Pioneer usb drive need about 30s to resume from sleeping, 10 times retry is
not enough for this unusual long time, just to entend to 30
2.when reading date from the Pioneer usb DVD-ROM,the host musb sent USB_STOR_TRANSPORT_GOOD
command to resume the DVD-ROM from sleeping
Change-Id: I11b499266503fbdb2091484e5e18e9372beecf40
Target:2G5536
1.Add Targets/Bonito2g5536 directory
2.Add zloader.2g5536 directory
3.Add Makefile.2g5536 file
4.Add usb and ps2 keyboard functions
5.Modify 2g5536 codes to support gcc4.4
6.Modify gmac code in sys/dev/gmac for net device
Change-Id: I73c343fb4b08a50cb515cd7cbefaf624b6065498
Target:2G5536
1. Read GPIO to get the board version.
2. when it can't get MAC address from eeprom,
a random MAC address will be used.
Change-Id: If334e94dbb3dcacfea6b2f91d874a228ef99d753
Signed-off-by: Liu Shaozong <liushaozong@loongson.cn>
Fill the uuid's last six bytes with the mac address.
Change-Id: I606745b2a5bda413d39c5ab2d3c6fc3b44fb3f9b
Signed-off-by: Liu Shaozong <liushaozong@loongson.cn>
Now ls3c2h platform support added, SPI flash/AHCI sata/Gmac/LPC/DC
are all OK, however there are still some work to do:
1.The command "ifaddr eth0" can't work, but "ifaddr syn0" works;
2.It hasn't been test with Dimms on con5 and con7;
3.CPU Frequency aren't calculated by RTC, it's fixed by program.
4.It cost ls3c a long time to wait Vide Ram intilized by ls2h, the
time should be shrunken largely.
Target: Bonito3c2h
Fix a bug of the 9260-8i RAID controller sometimes cannot adaptation.
Add a delay in PCI setup, it can rightly work. I think, it needs more
times to initialization itself in different versions firmware.
If have more than two verital device based RAID controller, the other
device cannot work except the last one.
In disk attach function, use the device_lookup macro, the other device
can working rightly.
Target: All
Now on 2GQ2H board you can judge NIC work mode is 100Mbps or 1000Mbps by
see network port led color display.(100Mbps LED is green 1000Mbps LED is
orange)
Target:Bonito2gq2h
Original code exchange the device id of sata1 and sata2 that controlled by
pciide0 because of the position mistakes, but the device id of sata5 and ide that
controlled by pciide1 were exchanged either, so which caused the bug as
"http://www.loongson.cn/dev/bugzilla/show_bug.cgi?id=412" described.
Now the device id of sata5 and ide won't be exchanged.
Targets: Bonito3a780e Bonito3b780e Bonito3b1500
Before: The timeout value for sata harddisk was 1000ms, that was too short for
some sata harddisks. It caused the problem as Bug 524 described as
http://www.loongson.org/dev/bugzilla/show_bug.cgi?id=524 showes.
Now: The timeout value is 2000ms, it is long enough for all sata harddisks.
Test: Disconnect power for 30s, then connect power and start up, repeat it for
20 times at least.
Targets: all
Original code can not read the correct id sometimes, now we delay a period of time before reading the id,
it is OK. The bug as "http://www.loongson.org/dev/bugzilla/show_bug.cgi?id=547" described
won't appear any more.
Targets: Bonito3b780e
Original code using the BMC, PMON can not boot into the graphical interface. Now we handle BMC's
built-in graphics card to make it go right branch.
Targets: Bonito3aserver
When the discrete graphic in COM21 slot,use it firstly
and the intergrate graphic can not work.
If nothing in pcie-slot(COM21),use the intergrate graphic.
pmon/cmds/bootparam.c: In this file, use the special->resource[0] to
pass the sharevram and vramsize to the kernel.And you must use special->resource[0]
to pass the two values.
NOTICE:
1, This function only work well for ati-card and nvida card do not be supportted.
Now,HD4500,HD4350 and HD5750 have been tested. They are OK.
2, When you open the CONFIG_UMA to use UMA modle in PMON, you can not use the discrete graphic.
Target:Bonito3a780e,Bonito3b780e,Bonito3c780e
1.Previously adding the USB model, it will be happended that the OHCI driver
can not work normally in kernel. In this patch, it stops the ohci when
executing the command go.
2.Trim the file usb-ohci.c
Target: 3a+2h