k3conf/k3conf.git
21 months agocmd: show: Add support for show command
Lokesh Vutla [Thu, 22 Aug 2019 14:09:55 +0000 (19:39 +0530)]
cmd: show: Add support for show command

Add support for show command that supports following args:
- k3conf show hosts: Prints all the available TISCI hosts
- k3conf show threads: Prints all the available TISCI secure proxy threads
- k3conf show device: Prints all the available TISCI devices
- k3conf show device <dev_id>: Prints the corresponding device id information
- k3conf show clock: Prints all the available TISCI clocks
- k3conf show clock <dev_id>: Prints the clocks for corresponding device id
- k3conf show processor: Prints all the available TISCI processors

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agok3conf: Glorify verion info prints
Lokesh Vutla [Thu, 22 Aug 2019 19:10:17 +0000 (00:40 +0530)]
k3conf: Glorify verion info prints

Print the following along with k3conf version in a tabular format:
- K3CONF
- SOC
- TISCI

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agocommon: Add support for printing tables
Lokesh Vutla [Thu, 22 Aug 2019 12:22:58 +0000 (17:52 +0530)]
common: Add support for printing tables

Fetched the library from omapconf
https://github.com/omapconf/omapconf/blob/master/common/autoadjust_table.c

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agosoc: j721e: Add clocks information
Lokesh Vutla [Thu, 22 Aug 2019 09:52:46 +0000 (15:22 +0530)]
soc: j721e: Add clocks information

Add TISCI cocks information for J721e devices

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agosoc: am65x: Add clocks information
Lokesh Vutla [Thu, 22 Aug 2019 09:49:01 +0000 (15:19 +0530)]
soc: am65x: Add clocks information

Add TISCI clock information for AM65x devices

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agosoc: j721e: Add Devices info
Lokesh Vutla [Thu, 22 Aug 2019 09:19:20 +0000 (14:49 +0530)]
soc: j721e: Add Devices info

Add TISCI device information for J721e devices

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agosoc: am65x: Add Devices info
Lokesh Vutla [Thu, 22 Aug 2019 09:15:29 +0000 (14:45 +0530)]
soc: am65x: Add Devices info

Add TISCI device information for AM65x devices

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agosoc: j721e: Add processors info
Lokesh Vutla [Thu, 22 Aug 2019 06:28:52 +0000 (11:58 +0530)]
soc: j721e: Add processors info

Add Processors information for J721e devices.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agosoc: am65x: Add processors info
Lokesh Vutla [Thu, 22 Aug 2019 06:19:33 +0000 (11:49 +0530)]
soc: am65x: Add processors info

Add Processors information for AM65x devices.

dev_id, clk_id in ti_sci_processors_info is hand edited.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agosoc: j721e: Add sec proxy info
Lokesh Vutla [Thu, 22 Aug 2019 04:38:29 +0000 (10:08 +0530)]
soc: j721e: Add sec proxy info

Add Sec proxy information for J721e devices.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agosoc: am65x: Add sec proxy info
Lokesh Vutla [Thu, 22 Aug 2019 04:36:03 +0000 (10:06 +0530)]
soc: am65x: Add sec proxy info

Add Sec proxy information for AM65x devices.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agosoc: j721e: Add host id information
Lokesh Vutla [Wed, 21 Aug 2019 13:52:38 +0000 (19:22 +0530)]
soc: j721e: Add host id information

Host Id information of J721e devices.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agosoc: am65x: Add host id information
Lokesh Vutla [Wed, 21 Aug 2019 13:40:57 +0000 (19:10 +0530)]
soc: am65x: Add host id information

Host Id information of AM65x devices.

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agotisci: Add support for handling clocks
Lokesh Vutla [Wed, 21 Aug 2019 05:47:46 +0000 (11:17 +0530)]
tisci: Add support for handling clocks

Add support for following tisci commands for handling clocks:
- ti_sci_cmd_get_clk
- ti_sci_cmd_put_clk
- ti_sci_cmd_get_clk_state
- ti_sci_cmd_set_clk_freq
- ti_sci_cmd_get_clk_freq

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agotisci: Add support for handling devices
Lokesh Vutla [Tue, 20 Aug 2019 15:07:32 +0000 (20:37 +0530)]
tisci: Add support for handling devices

Add support for the following tisci commands for handling devices:
- ti_sci_cmd_enable_device
- ti_sci_cmd_disable_device
- ti_sci_get_device_status

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
21 months agok3conf: Initial commit
Lokesh Vutla [Sun, 18 Aug 2019 06:47:24 +0000 (12:17 +0530)]
k3conf: Initial commit

Add base build infrastructure with the following support:
- Commands: --help, --version
- SoC detection: AM654, J721E
- TISCI version detection using default host

Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>