
Jens Scharsig wrote:
- add's the new temporary CONFIG_AT91_LEGACY to all board configs
- This will need for backward compatiblity, while change the SoC access to c structures. If CONFIG_AT91_LEGACY is defined, the deprecated SoC is used.
- please see README.at91-soc for details
Signed-off-by: Jens Scharsig js_at_ng@scharsoft.de
doc/README.at91-soc | 42 ++++++++++++++++++++++++++++++++++++ include/configs/afeb9260.h | 2 + include/configs/at91cap9adk.h | 2 + include/configs/at91rm9200dk.h | 2 + include/configs/at91rm9200ek.h | 2 + include/configs/at91sam9260ek.h | 2 + include/configs/at91sam9261ek.h | 2 + include/configs/at91sam9263ek.h | 2 + include/configs/at91sam9m10g45ek.h | 2 + include/configs/at91sam9rlek.h | 2 + include/configs/cmc_pu2.h | 2 + include/configs/cpu9260.h | 2 + include/configs/cpuat91.h | 2 + include/configs/csb637.h | 2 + include/configs/kb9202.h | 2 + include/configs/m501sk.h | 2 + include/configs/meesc.h | 2 + include/configs/mp2usb.h | 2 + include/configs/pm9261.h | 2 + include/configs/pm9263.h | 2 + include/configs/sbc35_a9g20.h | 2 + include/configs/tny_a9260.h | 2 + 22 files changed, 84 insertions(+), 0 deletions(-) create mode 100644 doc/README.at91-soc
diff --git a/doc/README.at91-soc b/doc/README.at91-soc new file mode 100644 index 0000000..063016e --- /dev/null +++ b/doc/README.at91-soc @@ -0,0 +1,42 @@
- New C structure AT91 SoC access
+=================================
+The gool +--------
change to 'goal'
+Currently the at91 arch uses hundreds of address defines and special +at91_xxxx_write/read functions to access the SOC. +The u-boot project prefer the better to readable access via c stuctures, +which describe the SoC peripherie.
change to 'The u-boot project perferred method is to access memory mapped hw regisister via a c structure'
+e.g. old
- *AT91C_PIOA_IDR = AT91_PMX_AA_TWD | AT91_PMX_AA_TWCK;
- *AT91C_PIOC_PUDR = AT91_PMX_AA_TWD | AT91_PMX_AA_TWCK;
- *AT91C_PIOC_PER = AT91_PMX_AA_TWD | AT91_PMX_AA_TWCK;
- *AT91C_PIOC_OER = AT91_PMX_AA_TWD | AT91_PMX_AA_TWCK;
- *AT91C_PIOC_PIO = AT91_PMX_AA_TWD | AT91_PMX_AA_TWCK;
- at91_sys_write(AT91_RSTC_CR,
AT91_RSTC_KEY | AT91_RSTC_PROCRST | AT91_RSTC_PERRST);
+e.g new
- pin = AT91_PMX_AA_TWD | AT91_PMX_AA_TWCK;
- writel(pin, &pio->pioa.idr);
- writel(pin, &pio->pioa.pudr);
- writel(pin, &pio->pioa.per);
- writel(pin, &pio->pioa.oer);
- writel(pin, &pio->pioa.sodr);
- writel(AT91_RSTC_KEY | AT91_RSTC_CR_PROCRST |
AT91_RSTC_CR_PERRST, &rstc->cr);
+The Way
Change to 'The method for updating'
+-------
+1. add's the new temporary CONFIG_AT91_LEGACY to all board configs
- that not converted to new SoC access
Change to something like 'Display a compile time warning if the board has not been converted'
+2. add new structures for SoC access +3. Convert arch, driver and boards file zu new SoC
Change from 'zu new SoC' to 'to the new c stucture based SoC acesss'
This readme is a big help Thanks Tom