[FOSS_TLK]kernel: dynamically decide to use cmdline/boot_args
[3rdparty/ote_partner/tlk.git] / include / kernel / boot_params.h
index ed448cf..8aa0482 100644 (file)
@@ -58,8 +58,22 @@ typedef struct {
        char            encrypted_keys[EKS_MAXIMUM_CODE_SIZE];          // encrypted keys
 } key_params;
 
+/* Structure for boot params */
+typedef struct boot_params {
+       uint32_t version;
+       uint64_t pmem;
+       uint64_t pmem_size;
+       uint64_t emem;
+       uint64_t emem_size;
+       uint32_t chip_uid[4];
+       uint32_t uart_id;
+       uint64_t tsec_carveout;
+       uint64_t tsec_size;
+       uint64_t dtb_load_addr;
+} boot_params_t;
+
 void save_boot_params(unsigned int, uint32_t);
-void parse_cmdline(void);
+void get_boot_params(void);
 int get_boot_args(task_t *task, uint32_t *args);
 
 #endif