diff options
author | lonkaars <loek@pipeframe.xyz> | 2024-05-12 13:23:03 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2024-05-12 13:23:03 +0200 |
commit | 480640799470b4465d62348aaf73154423ddb896 (patch) | |
tree | aa2a54f304277ff976781f93abed1a407ef0ac19 /1/config.h | |
parent | 11181adc990dd71f7c7c27b0486bd05744654a33 (diff) |
implement simple printf "0" or "1" > /dev/lork input + add some registers to config.h
Diffstat (limited to '1/config.h')
-rw-r--r-- | 1/config.h | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -2,3 +2,14 @@ #define DRV_NAME "lork" +#include <linux/types.h> + +// values from <https://www.ti.com/lit/ug/spruh73q/spruh73q.pdf> + +typedef uint32_t ti_am335x_word_t; + +// p. 180: "Control Module" +#define TI_AM335X_CM_ADDR ((ti_am335x_word_t*) 0x44E1_0000) +// p. 1459: "conf_gpmc_a3" +#define TI_AM335X_CM_GPMC_A3_ADDR ((ti_am335x_word_t*) TI_AM3358_CM_ADDR + 0x84Ch) + |