100 Commits

Author SHA1 Message Date
Jeffrey Townsend
1f26352e94 More Module Autogen and Toolchain Cleanup.
- Remove usage of strncpy and require aim_strlcpy instead.
- Fix some broken module autogen files.
2019-07-30 19:13:47 +00:00
Jeffrey Townsend
4ad73d260b Remove parent src directory. 2019-07-13 18:00:15 +00:00
Jeffrey Townsend
8afb69e29f General Platform Module Cleanup
- Cleanup and rerun autogen definitions for each platform module.
- Add missing makefiles.
2019-07-13 17:44:54 +00:00
Jeffrey Townsend
d09d604ea2 Normalize ONLP Platform module directories.
All modules should be in a self-named directory.
2019-07-10 12:45:24 -07:00
Jeffrey Townsend
631b1f88b4 All Platform ONLP shared library and static binary builds now use a common makefile infrastructure.
The module and build dependencies for each platform shared library and static binary are
essentially the same. They have simply been copied over and over again.

This change creates a common makefile infrastructure that is used to build each platform.
This allows the dependencies of the higher layer ONLP code to be managed in a single place
as well as coordinate code configuration and link libraries.
2019-07-08 21:15:32 +00:00
Jeffrey Townsend
848832710d Simplify the platform directory names. 2019-07-05 19:50:14 +00:00
charlie.hsu
28014d4f93 [Quanta] change sfp and qsfp driver from at24c02 to oom (IX7, IX8) 2019-02-26 13:25:24 +08:00
Jeffrey Townsend
3caa838d33 Update the LY2 fan control paths after kernel upgrade. 2018-11-27 18:01:22 +00:00
charlie.hsu
3a19c91ef1 [Quanta][LY8] modify port name initial method
1. initial port_name in user-space(python)
2. change OOM driver to common module
2018-08-02 13:58:51 +08:00
Jeffrey Townsend
cb19a16bba Fix bootcmds for the LY2 after the change introduced by 68a3487365. 2018-07-30 20:51:19 +00:00
Jonathan
c57a2dba2c [Quanta-IX8] Update platform driver and ONLP:
1. Fix pca9698 address issue
2018-05-29 14:53:09 +08:00
Jonathan Tsai
b96bc435df Add Support for QuantaMesh T7032-IX7:
1. Port IX7 platform driver
2. Port IX7 ONLP: GPIO
3. Port IX7 ONLP: sys and board info
4. Port IX7 ONLP: led
5. Port IX7 ONLP: sfp
6. Set SYS_OBJECT_ID as ".7032.3700"
2018-05-10 10:31:31 +08:00
Jonathan Tsai
eb49db65e9 [Quanta-IX8] Update platform driver:
1. Add CPLD LED device driver for LED decoding
2018-05-10 10:30:01 +08:00
Jeffrey Townsend
b92192e7dc Update ignore settings. 2018-03-08 20:47:23 +00:00
Jeffrey Townsend
3ef3bb3b49 Code Module Cleanup
- Fix autogen definitions for all code modules
- Rerun autogen on all modules
2018-03-08 20:20:50 +00:00
Jeffrey Townsend
ac3aef6597 Remove autogenerated makefiles from git. 2018-03-08 17:56:11 +00:00
Jonathan Tsai
3fe92a69f1 Add Support for QuantaMesh T4048-IX8:
1. Port IX8 platform driver
2. Port IX8 ONLP: board info
3. Port IX8 ONLP: GPIO
4. Port IX8 ONLP: led
5. Port IX8 ONLP: sfp
6. Set SYS_OBJECT_ID as ".4048.3800"
2018-02-12 14:27:15 +08:00
Jonathan Tsai
bd845a518a [Quanta-LY8] Add Support for OOM:
1. Migrate device driver from opencomputeproject/oom/optoe
2. Change device driver of eeprom from 24c02 to optoe
3. Use platform data to initial port_name
4. BITMAP is set by port_name
2017-12-11 15:10:18 +08:00
Jonathan Tsai
e74f5db634 Add Support for QuantaMesh T3048-LY7:
1. Add class OnlPlatformPortConfig_48x10_4x100 at base.py
2. Port LY7 platform driver
3. Port LY7 ONLP: board info
4. Port LY7 ONLP: system led
5. Port LY7 ONLP: sfp
6. Set SYS_OBJECT_ID as ".3048.2700"
2017-10-27 12:12:24 +08:00
Jonathan Tsai
b1757efe70 [Quanta-LY6,LY8,LY9,IX1,IX2] Update ONLP:
1. Export GPIO of fan direction
2017-09-30 09:25:14 +08:00
Jeffrey Townsend
a8a4c1288d Merge pull request #222 from jonathantsai-qci/master
Add Support for QuantaMesh T7032-IX1B and Update ONLP
2017-09-29 07:33:55 -07:00
Jonathan
04f785d105 [Quanta-IX1B] Update ONLP:
Fix unexpected psu read block isuue: add retry flow
2017-09-15 11:02:02 +08:00
Jeffrey Townsend
81ea33da92 Update ignore. 2017-08-23 14:55:00 +00:00
Jeffrey Townsend
3de71b4684 Improve portability.
All sysfs files should be referenced using the search syntax.
2017-08-02 22:45:20 +00:00
Jonathan Tsai
5eb6952d87 [Quanta-LY4R,IX1B] Update ONLP:
1. Remove all AIM_LOG_MSG statements because these are always output regardless of the logging level
2017-07-19 08:18:16 +08:00
Jonathan Tsai
87cd765b8c [Quanta-IX1,LY4R] Update ONLP:
1. Add sfp functions of onlp_sfpi_control_set() and onlp_sfpi_control_get()
2017-07-10 15:42:38 +08:00
Jonathan Tsai
968d645852 Add Support for QuantaMesh T7032-IX1B:
1. Port IX1B platform driver
2. Add IX1B enum at qci_pmbus.c
3. Port IX1B ONLP: board info
4. Port IX1B ONLP: psu
5. Port IX1B ONLP: sfp
6. Port IX1B ONLP: led
7. Print "ONLP is not supported for FAN/THERMAL"
8. Set SYS_OBJECT_ID as ".7032.3102"
2017-07-10 15:38:02 +08:00
Jonathan Tsai
f08a606527 [Quanta-IX2] Add sfp functions of onlp_sfpi_control_set() and onlp_sfpi_control_get() 2017-06-27 11:13:41 +08:00
Jonathan Tsai
109eae5e96 Update Quanta SYS_OBJECT_ID for each platform 2017-06-27 11:10:38 +08:00
Jonathan Tsai
e0eff419ca [Quanta-IX2] Update CPLD from qci_cpld.c to qci_cpld_sfp28.c 2017-06-12 15:35:30 +08:00
Jonathan Tsai
9a9cb17fb7 Add Quanta IX2 Platform:
1. Port IX2 platform driver
2. Add class OnlPlatformPortConfig_48x25_8x100 at base.py
3. Port IX2 ONLP: board info
4. Port IX2 ONLP: thermal
5. Port IX2 ONLP: fan
6. Port IX2 ONLP: psu
7. Port IX2 ONLP: sfp
8. Port IX2 ONLP: modify gpio calling from low-level to onlp-lib
9. Port IX2 ONLP: led
2017-05-23 11:03:29 +08:00
Jonathan Tsai
f4c9125c2e Quanta IX1 ONLP Update:
1. [IX1] Fix unexpected module present issue: Set P3V3_ZQSFP_EN as high directly
2017-05-17 14:27:38 +08:00
Jonathan Tsai
01a3908322 Add LY4R platform:
1. [LY4R] Port platform driver
2. [LY4R] Port ONLP: board info
3. [LY4R] Port ONLP: systemled
4. [LY4R] Port ONLP: SFP
5. [LY4R] Print "ONLP is not supported for RPSU/FAN/THERMAL"
6. [LY4R] Port UEFI support
2017-04-28 15:13:14 +08:00
Jonathan Tsai
b92ca52f42 [LY6,LY8,LY9,IX1] Remove the newline in the AIM_LOG_ERROR() 2017-04-12 10:58:23 +08:00
Jonathan Tsai
877b479a1c [LY6,LY8,LY9,IX1] Change all print calls from printf() to AIM_LOG_ERROR() 2017-03-31 11:08:56 +08:00
Jonathan Tsai
3708a3b1bd Add IX1 platform:
1. [IX1] Porting platform driver
2. [IX1] Porting quanta_hwmon_ix_series.ko, qci_pmbus.ko
3. [IX1] Porting ONLP
4. [IX1] Porting LED management
2017-03-23 17:22:45 +08:00
Jeffrey Townsend
6378bafc32 Merge pull request #168 from jonathantsai-qci/master
Quanta LYX ONLP Update - LED, Quanta hwmon, ONLP APIs Call
2017-03-02 13:53:04 -08:00
Jonathan Tsai
0c7cc3b62e [LY6,LY8,LY9] Change all low-level function-call to onlp APIs 2017-02-22 13:45:18 +08:00
Jonathan Tsai
f4faf45af4 [LY6,LY8,LY9] Change file name from quanta_hwmon.c to quanta_hwmon_ly_series.c 2017-02-22 13:29:29 +08:00
Jonathan Tsai
6b777d8772 [LY6,LY9] port platform management for LED 2017-02-22 13:24:50 +08:00
Zi Zhou
8c2e2873a2 switch to kernel 3.16-lts (powerpc platform) 2017-02-21 11:31:43 -08:00
Zi Zhou
ee0ec35c60 onlp driver update for kernel 3.16-lts 2017-02-17 18:46:45 -08:00
Zi Zhou
4bbd27e7f3 ly2 kernel module and onlp driver update for kernel 3.16 2017-02-16 23:41:11 -08:00
Jeffrey Townsend
4c2a53dd85 Merge pull request #159 from jonathantsai-qci/master
Quanta LYX ONLP update
2017-02-15 12:57:14 -08:00
Jeffrey Townsend
793ddd2a01 - Add the LB9 DTB build to the platform build package.
- The LB9 DTB now comes from the platform build package rather than the kernel package.
2017-02-15 17:38:18 +00:00
Jeffrey Townsend
acfedc7a0b - Add the LY2 DTB build to the platform build package.
- The LY2 DTB now comes from the platform build package rather than the kernel package.
2017-02-15 17:37:43 +00:00
Jonathan Tsai
4c6a957563 [LY6,LY9] 1. Use search syntax to find devices files 2. Use aim_strlcpy to make sure the model and serial number strings are NULL terminated (strncpy does not NULL terminate) 2017-02-08 09:54:12 +08:00
Jonathan Tsai
0facdd03b0 [LY8,LY9] Adjust VOUT 2017-02-08 09:50:05 +08:00
Jonathan Tsai
04ce604fa7 [LY8] Port platform management for LED 2017-02-08 09:41:01 +08:00
Jonathan Tsai
79b66fddde [LY6,LY8,LY9] Separate quanta_switch into each platform 2017-02-08 08:26:59 +08:00