soc: am65x: Add resource information
Add Resource management unique types for AM65x
Generated from SYSFW 2020.08
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add Resource management unique types for AM65x
Generated from SYSFW 2020.08
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
cmd: dump: Add support for dump rm command
Add support for following dump commands to print the resource
allocation for all utypes. Allow to filter on specified
type / subtype
$> k3conf dump rm
$> k3conf dump rm <type>
$> k3conf dump rm <type> <subtype>
Also allow to filter on given host_id with -h option
Update the help accordingly
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add support for following dump commands to print the resource
allocation for all utypes. Allow to filter on specified
type / subtype
$> k3conf dump rm
$> k3conf dump rm <type>
$> k3conf dump rm <type> <subtype>
Also allow to filter on given host_id with -h option
Update the help accordingly
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
cmd: show: Add support for show rm command
Add support for following show commands to print the
resources type, subtype id and names.
$> k3conf show rm
$> k3conf show rm <dev_id>
Update the help accordingly
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add support for following show commands to print the
resources type, subtype id and names.
$> k3conf show rm
$> k3conf show rm <dev_id>
Update the help accordingly
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
tisci: Add support for querying resource range
Add support for command ti_sci_cmd_get_range which returns
the assigned range of resources for a certain host.
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add support for command ti_sci_cmd_get_range which returns
the assigned range of resources for a certain host.
Signed-off-by: Nikhil Devshatwar <nikhil.nd@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: j7200: Add clocks information
Add TISCI clock information for J7200 devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI clock information for J7200 devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: j7200: Add Devices info
Add TISCI device information for J7200 devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI device information for J7200 devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: j7200: Add processors info
Add TISCI Processors information for J7200 devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI Processors information for J7200 devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: j7200: Add sec proxy info
Add TISCI Secure proxy info for J7200 devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI Secure proxy info for J7200 devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: j7200: Add host id information
Add TISCI Host Id information for AM65x sr2 devices.
Also assign this data to sci_info based on SoC detection.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI Host Id information for AM65x sr2 devices.
Also assign this data to sci_info based on SoC detection.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
socinfo: Add device identification for J7200 SoC
Add support for J7200 device identification
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add support for J7200 device identification
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
common: socinfo: Use JTAD_ID register for device identification
JTAG ID register is defined by IEEE 1149.1 for device identification.
Use this JTAG ID register for identifying AM65x[0] and J721E[1] devices
instead of using SoC specific registers. While at it rename AM654 to
AM65x as specified in TRM.
[0] http://www.ti.com/lit/ug/spruid7e/spruid7e.pdf
[1] http://www.ti.com/lit/ug/spruil1a/spruil1a.pdf
Reported-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
JTAG ID register is defined by IEEE 1149.1 for device identification.
Use this JTAG ID register for identifying AM65x[0] and J721E[1] devices
instead of using SoC specific registers. While at it rename AM654 to
AM65x as specified in TRM.
[0] http://www.ti.com/lit/ug/spruid7e/spruid7e.pdf
[1] http://www.ti.com/lit/ug/spruil1a/spruil1a.pdf
Reported-by: Grygorii Strashko <grygorii.strashko@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: am65x_sr2: Add clocks information
Add TISCI clock information for AM65x SR2 devices. Data derived from
sysfw 2020.02 Documentation.
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI clock information for AM65x SR2 devices. Data derived from
sysfw 2020.02 Documentation.
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: am65x_sr2: Add Devices info
Add TISCI device information for AM65x SR2 devices. Data derived from
sysfw 2020.02 Documentation.
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI device information for AM65x SR2 devices. Data derived from
sysfw 2020.02 Documentation.
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: am65x_sr2: Add processors info
Add TISCI Processors information for AM65x SR2 devices. Data derived from
sysfw 2020.02 Documentation.
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI Processors information for AM65x SR2 devices. Data derived from
sysfw 2020.02 Documentation.
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: am65x_sr2: Add sec proxy info
Add TISCI Secure proxy info for AM65x sr2 devices. Data derived from
sysfw 2020.02 Documentation.
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI Secure proxy info for AM65x sr2 devices. Data derived from
sysfw 2020.02 Documentation.
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: am65x_sr2: Add host id information
Add TISCI Host Id information for AM65x sr2 devices. Data derived from
sysfw 2020.02 Documentation.
Also assign this data to sci_info based on SoC detection.
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI Host Id information for AM65x sr2 devices. Data derived from
sysfw 2020.02 Documentation.
Also assign this data to sci_info based on SoC detection.
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
socinfo: Rename PG to SR
As per Data Manual new silicon revisions are mentioned as SRs. Use the
same to represent silicon revision enum
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
As per Data Manual new silicon revisions are mentioned as SRs. Use the
same to represent silicon revision enum
Tested-by: Dave Gerlach <d-gerlach@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: j721e: Add the missing clock ids for each device
First clock for each device is missed by auto generation. Add the first
clock id and update the clock names to latest sysfw documentation.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
First clock for each device is missed by auto generation. Add the first
clock id and update the clock names to latest sysfw documentation.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: am65x: Add the missing clock ids for each device
First clock for each device is missed by auto generation. Add the first
clock id and update the clock names to latest sysfw documentation.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
First clock for each device is missed by auto generation. Add the first
clock id and update the clock names to latest sysfw documentation.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: j721e: Update to 2019.12 sysfw documentaion
Update SoC information using sysfw 2019.12 Docs.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Update SoC information using sysfw 2019.12 Docs.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: am65x: Update to 2019.12 sysfw documentaion
Update SoC information using sysfw 2019.12 Docs.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Update SoC information using sysfw 2019.12 Docs.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
common: socinfo: Fix nomenclature on Silicon Revisions
Data manual mentions the new silicon revisions as SR instead of PG.
Use the same nomenclature inside U-Boot as well.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Data manual mentions the new silicon revisions as SR instead of PG.
Use the same nomenclature inside U-Boot as well.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc_info: Add user argument to provide host id
User might want to spoof a host_id than using the default
host id. So provide a command line argument to pass host id.
Be careful while using this argument, firewalls are enabled.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
User might want to spoof a host_id than using the default
host id. So provide a command line argument to pass host id.
Be careful while using this argument, firewalls are enabled.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
sec_proxy: Get thread ids from host id
Use the host_id info passed by user to retrieve the tx and rx
secure proxy thread ids.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Use the host_id info passed by user to retrieve the tx and rx
secure proxy thread ids.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Bump up version to 0.1
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
readme: Add initial information
Add initial README file
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add initial README file
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
cmd: read/write: Add support for read and write operations
Add support for 32 bit read and write operations.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add support for 32 bit read and write operations.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
cmd: set: Add support for set command
Add support for set command that allows for configuring frequency
for a clock.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add support for set command that allows for configuring frequency
for a clock.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
cmd: disable: Add support for disable command
Add support for disable command that supports for disabling
a device or a clock.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add support for disable command that supports for disabling
a device or a clock.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
cmd: enable: Add support for enable command
Adds support for enable commads that allows for enabling a device
or a clock.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Adds support for enable commads that allows for enabling a device
or a clock.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
cmd: cpuinfo: Add support for printing cpuinfo
Add support for --cpuinfo argument that prints the host processor
info and the running frequency.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add support for --cpuinfo argument that prints the host processor
info and the running frequency.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
cmd: dump: Add support for dump command
Add support for dump command that supports the following args:
- k3conf dump device- Prints device status of all the TISCI devices
- k3conf dump device <dev_id>: Prints the corresponding device id status
- k3conf dump clock: Prints clock status all the available TISCI clocks
- k3conf dump clock <dev_id>: Prints the available clock status for
corresponding device id
- k3conf dump processor: Prints status of all the available TISCI processors
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add support for dump command that supports the following args:
- k3conf dump device- Prints device status of all the TISCI devices
- k3conf dump device <dev_id>: Prints the corresponding device id status
- k3conf dump clock: Prints clock status all the available TISCI clocks
- k3conf dump clock <dev_id>: Prints the available clock status for
corresponding device id
- k3conf dump processor: Prints status of all the available TISCI processors
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
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>
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>
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>
Print the following along with k3conf version in a tabular format:
- K3CONF
- SOC
- TISCI
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
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>
Fetched the library from omapconf
https://github.com/omapconf/omapconf/blob/master/common/autoadjust_table.c
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: j721e: Add clocks information
Add TISCI cocks information for J721e devices
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI cocks information for J721e devices
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: am65x: Add clocks information
Add TISCI clock information for AM65x devices
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI clock information for AM65x devices
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: j721e: Add Devices info
Add TISCI device information for J721e devices
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI device information for J721e devices
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: am65x: Add Devices info
Add TISCI device information for AM65x devices
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add TISCI device information for AM65x devices
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: j721e: Add processors info
Add Processors information for J721e devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add Processors information for J721e devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
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>
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>
soc: j721e: Add sec proxy info
Add Sec proxy information for J721e devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add Sec proxy information for J721e devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: am65x: Add sec proxy info
Add Sec proxy information for AM65x devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Add Sec proxy information for AM65x devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: j721e: Add host id information
Host Id information of J721e devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Host Id information of J721e devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
soc: am65x: Add host id information
Host Id information of AM65x devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
Host Id information of AM65x devices.
Signed-off-by: Lokesh Vutla <lokeshvutla@ti.com>
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>
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>
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>
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>
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>
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>