Thread:DRA829 中讨论的其他器件
工具/软件:
您好:
我想确定我的单位是否为 HS 或 HS-TCA FS 可直接从 Linux 用户空间迁移。 具体而言、我需要我的应用程序知道器件是否装有保险丝。
是否有通过 Linux 接口直接读取此信息的方法?
此致、
Magnus
This thread has been locked.
If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.
工具/软件:
您好:
我想确定我的单位是否为 HS 或 HS-TCA FS 可直接从 Linux 用户空间迁移。 具体而言、我需要我的应用程序知道器件是否装有保险丝。
是否有通过 Linux 接口直接读取此信息的方法?
此致、
Magnus
您好、Magnus、
器件类型 (HS-MMR/HS-SE) 可从 FS 寄存器中读取
1/。 检测器件类型时生成 U-boot 代码
https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/arch/arm/mach-k3/common.c?h=11.01.16#n335
https://git.ti.com/cgit/ti-u-boot/ti-u-boot/tree/arch/arm/mach-k3/include/mach/hardware.h?h=11.01.16#n94
2/。 读取@u-boot 提示符示例
- HS- FS
=> MD.l 0x44234100 1
44234100:00000a0a
- HS-SE
=> MD.l 0x44234100 1
44234100:0000000a
此致、
- Hong
您好、Magnus、
您可以使用 Linux 的 devmem2 吗? 我刚才在 DRA829 平台上尝试了:
root@AS-P-3-243610421:~# devmem2 0x44234100 /dev/mem opened. Memory mapped at address 0xffff93d35000. Read at address 0x44234100 (0xffff93d35100): 0x00000A0A
我在上述 FS 器件上运行。
/BO
您好、Magnus、
我在我的最后一个回复中列出了 u-boot 代码和样例运行、以供您参考 MMR addr 等。
#define K3_SEC_MGR_SYS_STATUS 0x44234100 #define SYS_STATUS_DEV_TYPE_HS 0xa #define SYS_STATUS_SUB_TYPE_SHIFT 8 #define SYS_STATUS_SUB_TYPE_MASK (0xf << 8) #define SYS_STATUS_SUB_TYPE_VAL_FS 0xa
希望它们对您的用例有所帮助。
此致、
- Hong