forked from luck/tmp_suning_uos_patched
93c5bba575
There's no reason for us not to use BIT() & GENMASK() in asm/mips-cm.h
when declaring macros corresponding to register fields. This patch
modifies our definitions to do so.
The *_SHF definitions are removed entirely - they duplicate information
found in the masks, are infrequently used & can be replaced with use of
__ffs() where needed.
The *_MSK definitions then lose their _MSK suffix which is now somewhat
redundant, and users are modified to match.
The field definitions are moved to follow the appropriate register's
accessor functions, which helps to keep the field definitions in order &
to find the appropriate fields for a given register. Whilst here a
comment is added describing each register & including its name, which is
helpful both for linking the register back to hardware documentation &
for grepping purposes.
This also cleans up a couple of issues that became obvious as a result
of making the changes described above:
- We previously had definitions for GCR_Cx_RESET_EXT_BASE & a phony
copy of that named GCR_RESET_EXT_BASE - a register which does not
exist. The bad definitions were added by commit
|
||
---|---|---|
.. | ||
Makefile | ||
malta-amon.c | ||
malta-display.c | ||
malta-dt.c | ||
malta-dtshim.c | ||
malta-init.c | ||
malta-int.c | ||
malta-memory.c | ||
malta-platform.c | ||
malta-pm.c | ||
malta-reset.c | ||
malta-setup.c | ||
malta-time.c | ||
Platform |