[U-Boot] [PATCH v3 15/20] Add console command to access io space registers

Vadim Bendebury vbendeb at chromium.org
Thu Dec 6 02:25:42 CET 2012


On Wed, Dec 5, 2012 at 5:23 PM, Fabio Estevam <festevam at gmail.com> wrote:
> On Wed, Dec 5, 2012 at 10:46 PM, Simon Glass <sjg at chromium.org> wrote:
>> From: Vadim Bendebury <vbendeb at chromium.org>
>>
>> Provide u-boot console functions to access IO space registers. A no
>> thrills implementation, accessing one register at a time.
>>
>> For example:
>>     boot > iod 80
>>     0080: 00000094
>>     boot > iod.w 80
>>     0080: 0094
>>     boot > iod.b 80
>>     0080: 94
>>     boot > iow.b 0x80 12
>>     boot > iod 0x80
>>     0080: 00000012
>
> Doesn't md/mw accomplish the same?
>

No - md/mw access memory, the new commands access the IO space (which
is an x86 architecture property).

cheers,
/vb

> Regards,
>
> Fabio Estevam


More information about the U-Boot mailing list