11. Porting I2C driver to a new SOC
2----------------------------------
3In order to enable driver on a new platform, following steps need to be taken:
4 - add following line to .dsc file:
5   OpenPlatformPkg/Drivers/I2c/MvI2cDxe/MvI2cDxe.inf
6 - add following line to .fdf file:
7   INF OpenPlatformPkg/Drivers/I2c/MvI2cDxe/MvI2cDxe.inf
8 - add PCDs with relevant values to .dsc file:
9     gMarvellTokenSpaceGuid.PcdI2cSlaveAddresses|{ 0x50, 0x57 }
10   (addresses of I2C slave devices on bus)
11     gMarvellTokenSpaceGuid.PcdI2cSlaveBuses|{ 0x0, 0x0 }
12   (buses to which accoring slaves are attached)
13     gMarvellTokenSpaceGuid.PcdI2cBusCount|2
14   (number of SoC's I2C buses)
15     gMarvellTokenSpaceGuid.PcdI2cBaseAddresses|L"0xF2701000;0xF2701100"
16   (base addresses of I2C controller buses)
17     gMarvellTokenSpaceGuid.PcdI2cClockFrequency|200000000
18   (I2C host controller clock frequency)
19     gMarvellTokenSpaceGuid.PcdI2cBaudRate|100000
20   (baud rate used in I2C transmission)
21