dev: Add 'OSC' oscillator sys control reg support to VersatileExpress

The VE motherboard provides a set of system control registers through which
various motherboard and coretile registers are accessed.  Voltage regulators and
oscillator (DLL/PLL) config are examples. These registers must be impleted to
boot Linux 3.9+ kernels.
This commit is contained in:
Matt Evans
2013-10-31 13:41:13 -05:00
parent c32fbb7c00
commit d17529b046
3 changed files with 112 additions and 7 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2010 ARM Limited
* Copyright (c) 2010,2013 ARM Limited
* All rights reserved
*
* The license below extends only to copyright in the software and shall
@@ -80,8 +80,8 @@ class RealViewCtrl : public BasicPioDevice
IoSel = 0x70,
ProcId0 = 0x84,
ProcId1 = 0x88,
CfgCtrl = 0xA0,
CfgData = 0xA4,
CfgData = 0xA0,
CfgCtrl = 0xA4,
CfgStat = 0xA8,
TestOsc0 = 0xC0,
TestOsc1 = 0xC4,
@@ -105,6 +105,10 @@ class RealViewCtrl : public BasicPioDevice
*/
uint32_t flags;
/** This register contains the result from a system control reg access
*/
uint32_t scData;
public:
typedef RealViewCtrlParams Params;
const Params *