Editing Syscon Hardware
Jump to navigation
Jump to search
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then publish the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
Syscon is, together with | Syscon is, together with Aeolia, one of the main chips responsible for taking care of the functioning of APU, peripherals, etc. | ||
It is actually internally codenamed '''Colwick''' on the ps4 and the chip's structure is the same as one of a Renesas RL78. | |||
= Memory Layout = | = Memory Layout = | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
! Offset !! Size !! Description !! Notes | ! Offset !! Size !! Description !! Notes | ||
|- | |- | ||
| 0x00000 || 0x20000 || Code | | 0x00000 || 0x20000 || Code Area || | ||
|- | |||
| 0x20000 || 0xD0000 || Reserved || OCD Rom here | |||
|- | |- | ||
| | | 0xF0000 || 0x800 || SFR Area || | ||
|- | |- | ||
| | | 0xF0800 || 0x800 || Reserved || | ||
|- | |- | ||
| | | 0xF1000 || 0x1000 || Data Area || | ||
|- | |- | ||
| | | 0xF2000 || 0xCF00 || Mirror || Mirror of a portion of code area | ||
|- | |- | ||
| | | 0xFEF00 || 0xFE0 || RAM || | ||
|- | |- | ||
| | | 0xFFEE0 || 0x20 || GPR || | ||
|- | |- | ||
| | | 0xFFF00 || 0x100 || SFR 2nd Area || | ||
|- | |- | ||
|} | |} | ||
= Commands = | = Commands = | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
Line 56: | Line 40: | ||
| 0x22 || Block Erase || Erases a specified area in the flash memory. || | | 0x22 || Block Erase || Erases a specified area in the flash memory. || | ||
|- | |- | ||
| 0x40 || Programming || Writes data to a specified area in the flash memory. || | | 0x40 || Programming || Writes data to a specified area in the flash memory.|| | ||
|- | |- | ||
| 0x13 || Verify || Compares the contents in a specified area in the flash memory with data transmitted from the programmer. || | | 0x13 || Verify || Compares the contents in a specified area in the flash memory with data transmitted from the programmer.|| | ||
|- | |- | ||
| 0x32 || Block Blank Check || Checks the erase status of a specified block in the flash memory. || | | 0x32 || Block Blank Check || Checks the erase status of a specified block in the flash memory.|| | ||
|- | |- | ||
| 0xC0 || Silicon Signature || Acquires 78K0R/Kx3 information (part number, flash memory configuration, etc.). || | | 0xC0 || Silicon Signature || Acquires 78K0R/Kx3 information (part number, flash memory configuration, etc.).|| | ||
|- | |- | ||
| 0xC5 || Version Get || Acquires version information of the 78K0R/Kx3 and firmware. || | | 0xC5 || Version Get || Acquires version information of the 78K0R/Kx3 and firmware.|| | ||
|- | |- | ||
| 0xB0 || Checksum || Acquires checksum data of a specified area. || | | 0xB0 || Checksum || Acquires checksum data of a specified area.|| | ||
|- | |||
| 0xA0 || Security Set || Sets security information.|| | |||
|- | |- | ||
|} | |} | ||
= Statuses = | = Statuses = | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
! Command ID !! Name !! Description !! Notes | ! Command ID !! Name !! Description !! Notes | ||
|- | |- | ||
| | | 04|| Command number error|| Error returned if a command not supported is received || | ||
|- | |- | ||
| | | 05|| Parameter error|| Error returned if command information (parameter) is invalid || | ||
|- | |- | ||
| | | 06|| Normal acknowledgment (ACK) || Normal acknowledgment || | ||
|- | |- | ||
| | | 07|| Checksum error|| Error returned if data in a frame transmitted from the programmer is abnormal || | ||
|- | |- | ||
| | | 0F|| Verify error|| Error returned if a verify error has occurred upon verifying data transmitted from the programmer || | ||
|- | |- | ||
| | | 10|| Protect error|| Error returned if an attempt is made to execute processing that is prohibited by the Security Set command || | ||
|- | |- | ||
| | | 15|| Negative acknowledgment (NACK) || Negative acknowledgment | ||
|- | |- | ||
| | | 1A|| MRG10 error || Erase verify error || | ||
|- | |- | ||
| | | 1B|| MRG11 error || Internal verify error or blank check error during data write || | ||
|- | |- | ||
| | | 1C|| Write error || Write error || | ||
|- | |||
| FF|| Processing in progress (BUSY) || Busy response || | |||
|- | |- | ||
|} | |} | ||
Line 114: | Line 99: | ||
! Name !! Description !! Notes | ! Name !! Description !! Notes | ||
|- | |- | ||
| SOH || | | SOH || Command Frame Header || 0x01 Always | ||
|- | |- | ||
| STX || | | STX || Data Frame Header || 0x02 Always | ||
|- | |- | ||
| LEN || | | LEN || Length of info || In Command Frame: length of COM + command info length/ In Data frame: Data info length | ||
|- | |- | ||
| COM || | | COM || Command number || | ||
|- | |- | ||
| SUM || | | SUM || Checksum || checksum of command (initial byte (0x00) - LEN - COM - INFO ) / (initial byte (0x00) - LEN - DAT) | ||
|- | |- | ||
| ETB || | | ETB || Footer of data frame || 0x17 Always | ||
|- | |- | ||
| | | ETX || Command frame footer || 0x03 Always | ||
| | |||
| | |||
|- | |- | ||
|} | |} | ||
== | = Pinout (100pin) = | ||
{| class="wikitable sortable" | {| class="wikitable sortable" | ||
|- | |- | ||
Line 408: | Line 126: | ||
| 3 || P140 || VR-VRDY2 | | 3 || P140 || VR-VRDY2 | ||
|- | |- | ||
| 4 || P120 || power switch (USBHUB) | | 4 || P120 ||power switch(USBHUB) | ||
|- | |- | ||
| 5 || P47 || VR-VRHOT_ICRIT | | 5 || P47 || VR-VRHOT_ICRIT | ||
|- | |- | ||
| 6 || P46 || power switch (BUZZER) | | 6 || P46 || power switch(BUZZER) | ||
|- | |- | ||
| 7 || P45 || NC | | 7 || P45 || NC | ||
|- | |- | ||
| 8 || P44 || VR-PWROK + APU-PWROK | | 8 || P44 || VR-PWROK + APU-PWROK | ||
|- | |- | ||
| 9 || P43 || APU-RESET# | | 9 || P43 || APU-RESET# | ||
Line 422: | Line 140: | ||
| 10 || P42 || (HDR-A SPI-CS) | | 10 || P42 || (HDR-A SPI-CS) | ||
|- | |- | ||
| 11 || P41 || power switch (PSU-7) | | 11 || P41 || power switch(PSU-7) | ||
|- | |- | ||
| 12 || P40 || TOOL0 -> HDR-A pin 22 (open circuit between pin and header) | | 12 || P40 || TOOL0 -> HDR-A pin 22 (open circuit between pin and header) | ||
Line 428: | Line 146: | ||
| 13 || RESET# || -> HDR-A pin 24 | | 13 || RESET# || -> HDR-A pin 24 | ||
|- | |- | ||
| 14 || P124 || pulldown? | | 14 || P124 ||pulldown? | ||
|- | |- | ||
| 15 || P123 || power switch (PSU-5) | | 15 || P123 ||power switch(PSU-5) | ||
|- | |- | ||
| 16 || P137 || testpoint? | | 16 || P137 ||testpoint? | ||
|- | |- | ||
| 17 || P122 || -> HDR-A pin 28 (4bit input-only, port 12) | | 17 || P122 ||-> HDR-A pin 28 (4bit input-only, port 12) | ||
|- | |- | ||
| 18 || P121 || -> HDR-A pin 29 (4bit input-only, port 12) | | 18 || P121 ||-> HDR-A pin 29 (4bit input-only, port 12) | ||
|- | |- | ||
| 19 || REGC || cap to GND | | 19 || REGC ||cap to GND | ||
|- | |- | ||
| 20 || Vss || GND | | 20 || Vss || GND | ||
Line 458: | Line 176: | ||
| 28 || P31 || FAN-CTL | | 28 || P31 || FAN-CTL | ||
|- | |- | ||
| 29 || P64 || power switch (HDMI-0 + APU-4) | | 29 || P64 || power switch(HDMI-0 + APU-4) | ||
|- | |- | ||
| 30 || P65 || LED | | 30 || P65 || LED | ||
Line 474: | Line 192: | ||
| 36 || P74 || | | 36 || P74 || | ||
|- | |- | ||
| 37 || P73 || power switch (USBBRIDGE + HDD) | | 37 || P73 || power switch(USBBRIDGE + HDD) | ||
|- | |- | ||
| 38 || P72 || -> HDR-A pin 12 (HDR-A SPI-SO) | | 38 || P72 || -> HDR-A pin 12 (HDR-A SPI-SO) | ||
Line 482: | Line 200: | ||
| 40 || P70 || -> HDR-A pin 10 (HDR-A SPI-CLK) | | 40 || P70 || -> HDR-A pin 10 (HDR-A SPI-CLK) | ||
|- | |- | ||
| 41 || P06 || power switch (PSU-1) | | 41 || P06 || power switch(PSU-1) | ||
|- | |- | ||
| 42 || P05 || | | 42 || P05 || | ||
Line 498: | Line 216: | ||
| 48 || P84 || pulldown? | | 48 || P84 || pulldown? | ||
|- | |- | ||
| 49 || P85 || power switch (PSU-2) | | 49 || P85 || power switch(PSU-2) | ||
|- | |- | ||
| 50 || P86 || power switch (APU-0) + PSW-APU-3 pin 3 | | 50 || P86 || power switch(APU-0) + PSW-APU-3 pin 3 | ||
|- | |- | ||
| 51 || P87 || VR-EN + power switch (APU-1) | | 51 || P87 || VR-EN + power switch(APU-1) | ||
|- | |- | ||
| 52 || P30 || NC testpoint | | 52 || P30 || NC testpoint | ||
Line 508: | Line 226: | ||
| 53 || EVdd1 || Vcc | | 53 || EVdd1 || Vcc | ||
|- | |- | ||
| 54 || P50 || power switch (SB-1 + SB-2 + DDR3) | | 54 || P50 || power switch(SB-1 + SB-2 + DDR3) | ||
|- | |- | ||
| 55 || P51 || power switch (SB-0) (6pin near | | 55 || P51 || power switch(SB-0) (6pin near wifi + 8pin between SC/SB) | ||
|- | |- | ||
| 56 || P52 || testpoint? | | 56 || P52 || testpoint? | ||
|- | |- | ||
| 57 || P53 || VR-SM_CLK | | 57 || P53 || VR-SM_CLK | ||
|- | |- | ||
| 58 || P54 || VR-SM_DIO | | 58 || P54 || VR-SM_DIO | ||
|- | |- | ||
| 59 || P55 || power switch (APU-2) | | 59 || P55 || power switch(APU-2) | ||
|- | |- | ||
| 60 || P56 || | | 60 || P56 || | ||
Line 540: | Line 258: | ||
| 69 || P10 || SB-TP4 (SPI-CS) | | 69 || P10 || SB-TP4 (SPI-CS) | ||
|- | |- | ||
| 70 || P101 || power switch (VR) | | 70 || P101 ||power switch(VR) | ||
|- | |- | ||
| 71 || P110 || | | 71 || P110 || | ||
Line 546: | Line 264: | ||
| 72 || P111 || | | 72 || P111 || | ||
|- | |- | ||
| 73 || P146 || NC | | 73 || P146 ||NC | ||
|- | |- | ||
| 74 || P147 || power switch (HDMI-1) | | 74 || P147 ||power switch(HDMI-1) | ||
|- | |- | ||
| 75 || P100 || power switch (PSU-0) | | 75 || P100 ||power switch(PSU-0) | ||
|- | |- | ||
| 76 || P156 || pulldown? | | 76 || P156 ||pulldown? | ||
|- | |- | ||
| 77 || P155 || pulldown? | | 77 || P155 ||pulldown? | ||
|- | |- | ||
| 78 || P154 || PSW-APU-2 pin 1 + PSW-APU-3 pin 1 | | 78 || P154 || PSW-APU-2 pin 1 + PSW-APU-3 pin 1 | ||
|- | |- | ||
| 79 || P153 || -> HDR-G pin 11 | | 79 || P153 ||-> HDR-G pin 11 | ||
|- | |- | ||
| 80 || P152 || -> HDR-G pin 15 | | 80 || P152 ||-> HDR-G pin 15 | ||
|- | |- | ||
| 81 || P151 || power switch (PSU-3) | | 81 || P151 ||power switch(PSU-3) | ||
|- | |- | ||
| 82 || P150 || | | 82 || P150 ||WIFI reset? | ||
|- | |- | ||
| 83 || P27 || NC testpoint | | 83 || P27 || NC testpoint | ||
Line 582: | Line 300: | ||
| 90 || P20 || | | 90 || P20 || | ||
|- | |- | ||
| 91 || P130 || power switch (PSU-6) (P130 is tied to sc-internal RESET) | | 91 || P130 ||power switch(PSU-6) (P130 is tied to sc-internal RESET) | ||
|- | |- | ||
| 92 || P102 || | | 92 || P102 || | ||
|- | |- | ||
| 93 || P04 || i2c ( | | 93 || P04 || i2c (pcie clockgen smbus?) | ||
|- | |- | ||
| 94 || P03 || -> HDR-F pin 1 (i2c ( | | 94 || P03 || -> HDR-F pin 1 (i2c (pcie clockgen smbus?)) | ||
|- | |- | ||
| 95 || P02 || -> HDR-F pin 2 (XXX did | | 95 || P02 || -> HDR-F pin 2 (XXX did i fuckup the HDR-F mapping here?) | ||
|- | |- | ||
| 96 || P01 || | | 96 || P01 || | ||
Line 600: | Line 318: | ||
| 99 || P144 || | | 99 || P144 || | ||
|- | |- | ||
| 100 | | 100 || P143 || | ||
|- | |- | ||
|} | |} | ||